i-doit enables external access to the IT documentation via an application programming interface (API). With the API data can be read, created, updated and deleted. Thus the API offers similar functions like the Web GUI but the additional benefit is that you can automate them without any problems.

Technical Background

The API of i-doit provides typical CRUD functionalities. With this, files can be

  • Created
  • Read
  • Updated and
  • Deleted.

For this, a client (for example, in the form of a script) sends a request to the server (i-doit) in order to execute a method on the server. This approach is called Remote Procedure Call (RPC). The result of the method is returned to the client as a response. In this communication the API of i-doit is based on the JSON-RPC protocol, version 2.0. HTTP is used as higher protocol and the JavaScript Object Notation (JSON) is used as exchange format. A request is send to the server in the JSON format per HTTP POST. The response is also made in JSON format.

API queries can take place in an asynchronous way without losing the relation between requests and responses. The utilized programming language can be chosen freely.

API instead of database

It's strongly recommended to prefer the API to database manipulations at all times. SQL statements bypass all sorts of internal processes. If a data record is manipulated via SQL per INSERT, UPDATE or DELETE, this could risk data integrity and could even disable i-doit.



The API is configured via the Web GUI of i-doit and can be found at Administration → Interfaces / external data → JSON-RPC API.


Removing HTML tags from description fields is only possible at i-doit version 1.15.2 with API version 1.11.3 installed.

Please note that the logging of API requests will create a file in the install path of i-doit at log/ for each request. This may lead to increased requirements of memory space in case the API is used intensively.


You can access the API of i-doit by activating a special URL. Add src/jsonrpc.php to the basic URL:

Authentication and Authorization

You need an API key so that requests will be processed by the API. Additionally, you can activate the function that a dedicated user account is activated for log-in. Permissions for this account can be set as usual. Otherwise all permissions are available through the API. Another advantage is the fact that a dedicated user can be set per third-party system/ script; this makes it easier to keep track of the data flow.

It may prove useful to use the API method idoit.login for a single authentication if a lot of requests (meaning thousands) are sent from a client. Otherwise it is possible that too many sessions are created in a very small time frame but are not terminated. This could result in the fact that i-doit stops working until the sessions have been terminated.


Please see this article for detailled information about each method.

idoit.addonsDisplay installed i-doit add-ons
idoit.constantsQuery constants
idoit.licenseDisplay licensed objects and add-ons
idoit.searchSearch in i-doit
idoit.versionDisplay the version of i-doit
cmdb.category.readCreate a category entry
cmdb.category.updateUpdate a category entry
cmdb.category.deleteDelete a category entry
cmdb.category.quickpurgeQuickpurge a category entry
cmdb.category.purgePurge a category entry
cmdb.category.recycleRecycle a category entry
cmdb.category.archiveArchive a category entry
cmdb.category.get_category_infoDocumentation follows
cmdb.category.saveCreate/Update a category entry
cmdb.category.createCreate a category entry (deprecated)
cmdb.category.get_category_idDocumentation follows
cmdb.category.getCategoryProcessorDocumentation follows
cmdb.category.validateRequestDocumentation follows
cmdb.category.get_category_suffixDocumentation follows
cmdb.category.validateSetRequestDocumentation follows
cmdb.category_infoRead the attributes of a category
cmdb.condition.readDocumentation follows follows
cmdb.dialog.readRead the values of a dialogue field
cmdb.dialog.createCreate the values of a dialogue field
cmdb.dialog.updateUpdate the values of a dialogue field
cmdb.dialog.deleteDelete the values of a dialogue field
cmdb.dialog.dialog_routineDocumentation follows
cmdb.filter.readDocumentation follows
cmdb.filter.getUpdatedIPsDocumentation follows
cmdb.filter.getValidObjectsDocumentation follows
cmdb.impact.readRecursive query of all object relations
cmdb.location_tree.readRead location path
cmdb.logbook.readRead logbook entry
cmdb.logbook.createCreate logbook entry
cmdb.object.readRead an object
cmdb.object.createCreate aobject
cmdb.object.updateUpdate an object
cmdb.object.quickpurgeQuickpurge aobject
cmdb.object.recycleRecycle aobject
cmdb.object.archiveArchive an object
cmdb.object.deleteDelete aobject
cmdb.object.purgePurge an object
cmdb.object.markAsMassChangeTemplateDocumentation follows
cmdb.object.markAsTemplateDocumentation follows
cmdb.object_type_groups.readRead which object types are assigned to which object type groups
cmdb.object_type_categories.readRead which categories are configured to which object types
cmdb.object_types.readQuery object types
cmdb.objects.readRead object
cmdb.objects.getCategoryDataDocumentation follows
cmdb.objects.getCategoryConstantsByObjectTypeIdDocumentation follows
cmdb.objects_by_relation.readRead objects by relation type
cmdb.reports.readExecute a report
cmdb.reports.remove_idDocumentation follows
cmdb.status.readDocumentation follows
cmdb.status.saveDocumentation follows
cmdb.status.deleteDocumentation follows
cmdb.workstation_components.readDocumentation follows
console.commands.listCommandsDocumentation follows
console.auth.cleanupDocumentation follows
console.document.compileDocumentation follows
console.dynamicgroups.syncDocumentation follows
console.import.csvDocumentation follows
console.ldap.syncDocumentation follows
console,logbook.archiveDocumentation follows
console.notifications,sendDocumentation follows follows follows
console.settings.allDocumentation follows
console.system.autoincrementDocumentation follows


With a simple example we create a new object of the type Server with the object title "My little server" via the API.

Request to server:


    "jsonrpc": "2.0",
    "method": "cmdb.object.create",
    "params": {
        "type": "C__OBJTYPE__SERVER",
        "title": "My little server",
        "apikey": "c1ia5q"
    "id": 1

Via cURL you can send this request for test purposes:


curl \
--data '{"jsonrpc":"2.0","method":"cmdb.object.create","params":{"type":"C__OBJTYPE__SERVER","title":"My little server","apikey":"c1ia5q"},"id":1}' \
--header "Content-Type: application/json" \


Server response:


    "jsonrpc": "2.0",
    "result": {
        "id": "3351",
        "message": "Object was successfully created",
        "success": true
    "id": 1


Categories in the IT Documentation

A helpful listing of all categories and attributes used in i-doit is provided by a special URL:

For example, this listing shows you which name is used to access categories and attributes and which data types are expected by these attributes.

Clients and Libraries

There are numerous projects and products applying the API by i-doit. We would like to introduce some clients and libraries:

NameWebsiteProgramming languageLicense

i-doit API client
i-doit CLI


Should a client or a library be missing in this article, we appreciate a short message to

Documentation for Download

You can download a documentation maintained by the developers as PDF file. (out-dated)


1.12.22021-08-09[Improvement] New parameters "offset" and "limit" for the "" method
[Bug] Virtual Switches > Creating Port Groups generates SQL error message
[Bug]  Cluster members cannot be assigned via API using the category C__CATG__CLUSTER_MEMBERSHIPS
[Bug] The API can not create sub-categories in 'cmdb.object.create' context
[Bug] Layer 3 nets cannot be assigned with API validation enabled in Layer 2 nets
[Bug] When the layer 3 net is changed the layer 3 net is assigned to itself under layer 2 net assignment
[Bug] The category SLA (C__CATG__SLA) cannot be described via the API / With API validation switched off the category is emptied
[Bug] Dialog+ fields with 'PropertyFactory' definition can not be written
1.12.12021-01-18[Bug] cmdb.category.quickpurge cannot be used with custom categories
[Bug] API version 1.12 can no longer be used in the open variant of i-doit
1.122021-01-14[Bug] API: It is not possible to create a volume license via the API if "type": "volume license" is used
[Bug] Saving the "Layer-2 Nets" category deletes ip helper
[Bug] Contact assignment of a group of people will be deleted if it is updated via the API
1.11.32020-12-01[Bug] Assign cable with fibers/leads while saving connection
[Bug] Limit assignment categories to one entry while creating
[Bug] Do not connect root location while creating cluster membership
[Bug] Do not create wrong output after removing cable connection
[Bug] Cannot assign objects to category "locally assigned objects" (requires i-doit 1.15.1)
[Bug] The category C__CATG__IMAGE is not read correctly via the API
[Bug] The category C__CATG__IMAGE cannot be written correctly
[Bug] The dates of the category contract information cannot be set via the API
[Bug] Category > Assigned Subscriptions C__CATG__ASSIGNED_SUBSCRIPTIONS key uuid cannot be set via string only via int
[Bug] Read Methods: Do not output HTML tags in description fields
[Bug] Objects can only be created via the API if the right to all object types is granted
[Bug] Ports cannot be uniquely referenced via the API
[Bug] Empty string supplied via API
1.11.22020-06-24[Bug] API method: cmdb.object overrides the rights system
[Bug] Updates via the API (save method) sets arbitrary entries in the Virtual Host category
[Bug] Do not connect root location while creating cluster membership

[Bug] Objects that are changed via the API should also be locked for this period (Read > Update).

[Bug] Permission system error when using a user to change user-defined categories

[Bug] Data record of the standard_gateway always shows an ID

[Bug] When updating the category 'General' all tags are removed

[Bug] Report displays HTML in the result
[Improvement] Add RPC to handle the CMDB status

[Improvement] Filling virtual custom category properties results in an error

[Improvement] Create, read, update and delete template objects and mass change template objects

[Bug] In the "Local Mass Storage" category, models cannot be created using the API.

[Bug] When updating the model, a Dialog+ value is created/displayed with the ID of the model.

[Bug] Update of a CPU title changes the frequency

[Bug] Improved handling of sorting of hight units when using API

[Bug] API "Categories and properties" page displays no content

[Bug] Saving the WAN category writes wrong values for router and net

[Bug] No salutation returns wrong value in JSON-API

[Bug] Missing values in the API method "cmdb.category_info"
[Bug] Assignment of devices to segments in slots not possible

[Bug] Validating requests breaks altering attributes
[Bug] Read entries by state "normal" unless otherwise noted

[Bug] Select value in a dialog+ attribute by its constant

[Bug] Fix SQL error when linking two connectors

[Bug] Object deletion with provided status (C__RECORD_STATUS__DELETED) will result in an infinite loop

[Bug] object state is mandatory although it should be optional

[Bug] Response in new format

[Bug] Use new license form

[Bug] Deleting an unknown entry ID results in success

[Bug] Create objects with defined SYSID via API

[Bug] API does not return all IP addresses of the IP list

[Bug] Read data from the drive category

[Bug] Purge assigned Groups via API

[Bug] Revert changes of the "salutation" property
[Bug] Authentication with LDAP not possible
[Bug] SQL injection vulnerability during login
[Improvement] Enable validation of API requests via expert setting
[Improvement] Do not allow different API keys within a batch request
[Improvement] Throw error when same ID is used within a batch request
[Improvement] API Key is required, user credentials are optional but include rights management
[Improvement] Create or update category entries with
[Improvement] Read licence information via API
[Improvement] Human-readable internal logging
[Improvement] Filter category entries by status
[Improvement] Recycle category entry
[Improvement] Purge category entry
[Improvement] Delete category entry
[Improvement] Archive category entry
[Improvement] Mark object as mass change template
[Improvement] Mark object as template
[Improvement] Recylce object
[Improvement] Purge object
[Improvement] Delete object
[Improvement] Archive object
[Improvement] Create object with category entries
[Improvement] Read objects with category entries
[Improvement] Do not return integer value as string in a response anymore
[Improvement] Describe in the Web GUI handling with categories and attributes
[Improvement] Call console commands via API
[Improvement] Fetch information about installed add-ons
[Improvement] Read all constants
[Improvement] Create, read, update and delete template objects and mass change template objects
[Change] cmdb.category.create and .update are deprecated
[Bug] cmdb.category.create: Unable to add license key to category "software assignment"
[Bug] Category "managed devices" returned wrong values
[Bug] Wrong object relations and duplicates in category "C__CATS_NET_TYPE__IPV4"
[Bug] API delivers a null array with no assignment for key zone, but an object with an assignment
[Bug] Unknown attributes will be ignoriert
[Bug] Invalid values do not throw exception
[Bug] Server does not send notifcation for request without an "id"
[Bug] returns entries for empty categories
[Bug] Cables remain unused when connections are created with the API
[Bug] Application priority is not being saved
[Bug] API: Timeout is not being reset after every request
[Bug] Error when editing manfactor/model via API
[Bug] API: Fibre connections cannot be read
[Bug] When givin an ID as string it is possible that the resulting data will be wrong
[Bug] Connecting ports with the API uses wrong objects as cables
[Bug]  throws SQL error for variable reports
[Bug]           Method cmdb.reports throws PHP warning
[Bug]           After creating an object, a reindex is substantial to find an object via the search
[Bug]           Unable to create entries in category C__CATS__ORGANIZATION_CONTACT_ASSIGNMENT
[Bug]           API ignores language parameter
[Improvement]   Searching for objects by attributes and values
[Improvement]   Enforce user rights for API calls
[Improvement]   Create object via "cmdb.object.create" with optional template
[Bug]           Unable to upload file
[Bug]           Logbook title is empty when saving a custom category
[Bug]           User-defined dialog plus contents select via API
[Bug]           Unable to read passwords
[Bug]           Method 'cmdb.object.create' creates object id's partly as string, partly as integer
[Bug]           Database error when trying to delete an object, which does not exist anymore, via the API
[Bug]           Dialog Plus fields that have a dependency on another attribute have not been created.
[Bug]           Self-defined Dialog+ fields won't be displayed after creating them
[Bug]           Created dialog entries receive status 1 instead of 2 (normal)
[Bug]           cmdb.object.delete ignores parameter "status"
[Bug]           cmdb.category.create throws database error for category "model"

Since version 1.8.1 the API is released as an add-on. Pre-releases were bundled with i-doit.