Address and calls
All calls go tohttps://api.docusnap365.com/api/v1. The API works with assets only and has seven endpoints:
Parameters, schemas and examples of each endpoint are in the API reference in the sidebar.
Keys and permissions
Every call carries an API key in thex-api-key header. No other headers and no prior sign-in are needed. Owners and administrators create keys under Administration › Integrations › API Keys; see Manage API keys.
When you create a key, you choose the access. Read is enough for the reading endpoints; POST /asset and POST /asset/bulk require Read and Write. A key without the required access receives the response 403. If the key is missing (API_KEY_MISSING) or is invalid, expired or revoked (API_KEY_INVALID), the API responds with 401. If the key cannot be checked, it responds with 503 API_KEY_VALIDATION_UNAVAILABLE; a retry can succeed.
A key belongs to a user, and that user’s rights apply: what the user does not see in the interface, the API does not return either. Missing rights do not raise an error—they yield a smaller result set. If you see less than expected, check the user’s rights first, then the query. An asset the user cannot see behaves like a nonexistent one: GET /asset/{id} and POST /assets/expand respond with 404.
Assets and types
An asset consists of its core data and, on request, its details. Every reading endpoint returns the core data: among othersid, name, schemaId, objectType, parentId, the assignment to organization, location, platform and domain, as well as status, origin and the creation and modification information. Everything else is not part of the core data and comes through expands.
Every asset has a type, schemaId in the API. The type determines which data the asset carries. The types with their fields are in the data model. To create an asset you need the schemaId of the matching type.
Reading and querying
GET /assets returns the first 50 assets. Pass select and search as a JSON array:
search takes entries of the form field=value and finds what contains the value, ignoring case. Several entries apply together. With select, each asset in the response contains only the selected fields, and id only if it is selected. select works the same way on GET /asset/{id}; this endpoint rejects search with 400.
POST /assets/query is the way for filters, sorting and field selection. All parts of the query are optional:
data. in the filter of the query ends with 400 UNKNOWN_PATH. You read the captured data of a type through an expand and evaluate it in your own application.
The value must fit the field and the operator.
In and NotIn require an array, the other operators with a value require a single value; otherwise the API responds with 400 FIELD_TYPE_MISMATCH.
In arrayFilter, paths are relative to the list element, such as name; only the comparison operators are allowed there. ArrayAny and ArrayAll require an arrayFilter, ArrayContains requires a value.
Loading details
An expand loads part of the details for each asset. There are four, with fixed names:
An expand has its own
select, filter, sort and limit (1 to 1000, default 50). select also picks individual values of the data, such as data.serialNumber. Which values a type has is in the data model. A filter on schemaId in the query speeds up the resolution of the data. paths. filter, sort and limit apply per asset for object_essentials, object_blocks and children; for object_data, which has one entry, select and filter apply. The filter of an expand restricts only the expand, never the assets: an asset without a matching entry stays in the response, without that expand.
POST /assets/query and POST /assets/expand reject an unknown expand name with 400; the response names the valid names.
Where the details appear in the response depends on select. With select, each expand appears under its name directly on the asset, object_data as an object, the others as a list. Without select, all expands appear together under expands, each as a list. If a query with select requests expands, id is always on the asset, even if it is not selected.
POST /assets/expand loads one expand for a single asset. parentId and expandName are required. With a cursor from incompleteExpands or nextCursor, the call continues where the cursor was issued; select, filter, sort and limit in the body then do not apply.
Paging with the cursor
Every reading response exceptGET /asset/{id} has the same shape:
POST /cursor/continue returns the next page with { "cursor": "<nextCursor>" }. The cursor is bound to the subscription and the user and expires after one hour; after that, start the query again. Treat it as an opaque value. The cursor field in POST /assets/query accepts the same cursor; the other parts of the query then do not apply.
Follow-up pages have the same shape as the first page, with the same selection and the same expands; there, too, incompleteExpands names the expands that exceed their limit.
The next page starts after the sort values of the last asset returned. If the value of a sort field changes between two pages, an asset can be missing or appear a second time.
Creating and updating
POST /asset writes one asset, POST /asset/bulk up to 100 in one transaction. Docusnap365 decides itself whether it already knows the asset: if so, it is updated, otherwise created. The API answers 201 for a newly created asset and 200 for an updated one.
Without
objectData, object.id is required and the asset is updated. A more complete existing record that must not be overwritten, and a record with too few identity values, are rejected.
The response names the ID of the asset (id, idPair.dbId), whether it was created (isCreate) and whether it succeeded (isSuccess, otherwise errorMessage).
For POST /asset/bulk, results returns one result per entry in the order of the request, matched through idPair.fakeId, plus successCount and failedCount. An entry without object, with a missing or too long name, or with a completenessLevel outside 0 to 100 aborts the whole call with 400; the path in the response names the index of the entry. More than 100 entries are rejected with 400 TOO_MANY_IDS. A protected asset, or one with too few identity values, is skipped and carries its errorMessage and its error (INGEST_OBJECT_PROTECTED or INGEST_INSUFFICIENT_IDENTITY_VALUES) in results; the other entries are written.
Errors
API errors arrive asapplication/problem+json according to RFC 9457 with status, errorCode, detail, instance and a traceId. Evaluate errorCode in your application; detail is a technical English sentence that can change and is not shown to end users. When you contact support, include the traceId.
Rejections when writing, such as a protected asset, are problem responses too. Only a skipped entry in a 200 result of POST /asset/bulk carries its reason as errorMessage and error in the entry. Evaluate errorCode, not the sentence in detail or errorMessage; display those at most.
Quota
Every call to one of the seven endpoints counts one request against the subscription’s quota (API & MCP Requests); the REST API and MCP share this quota. The request counts even if it fails afterwards, for example on an unknown field or an expired cursor. Requests that already fail on a missing or invalid key (401, 503), missing access (403), an unknown endpoint (404), or an unreadable body or a limit outside 1 to 1000 (400 VALIDATION_FAILED) are not counted.
Additional requests are not reset with the period; the included ones are. When both are used up, the API responds with 429 and does not execute the request; rejected requests count as well.
With a limited quota, all responses, including error responses, carry these headers:
With an unlimited quota, these headers are absent.
Related
- The API reference (in the sidebar under API Reference)—all endpoints with parameters, schemas and examples
- Data model—types, fields, properties
- Manage API keys—create keys, permissions, expiry
- AI Connections—quota usage