API endpoint reference
All endpoints of the ITONICS Cloud API, with filters, paging, rich text, and file uploads.
The ITONICS Cloud API has endpoints for elements, their activity, files, pages, and users, listed here by what they work with. For every parameter, request body, and response, and to try a request with your API key, see the ITONICS API documentation.
Base URL and authentication
Most endpoints start with your domain and the SpaceURI of one workspace:
https://{your-domain}/rest/external/odata/v2/{spaceUri}/{endpoint}
Send your API key in the Authorization header of every request. The key's permissions decide which endpoints and actions work in each workspace. How to get a key and the workspace's SpaceURI is explained in Create an integration API key.
Elements and element types
| Endpoint | Methods | What it does |
|---|---|---|
| /elements | GET, POST, PATCH, DELETE | Lists, creates, updates, and deletes elements. |
| /elements/{elementUri} | GET | Returns one element by its ElementURI. |
| /elementtypes | GET, POST | Lists the element types of the workspace with their properties, and creates element types. |
In responses, each property value comes with its type, label, and value. Custom properties are named by their field URI; to map field URIs to property names, use the properties that /elementtypes returns for each element type.
Comments, ratings, likes, and watchers
These endpoints work on one element: /elements/{elementUri}/….
| Endpoint | Methods | What it does |
|---|---|---|
| /comments | GET, POST, PATCH, DELETE | Lists, adds, updates, and removes the element's comments. |
| /ratings | GET, POST, PATCH, DELETE | Lists every user's ratings of the element with value, rater, note, and date, and creates, updates, or removes ratings on behalf of users, identified by user URI or email address. Archived ratings are left out unless you ask for them. |
| /likes | GET, POST, DELETE | Lists, adds, and removes likes. |
| /watches | GET, POST, DELETE | Lists, adds, and removes watchers. |
Creating or updating elements, adding likes, and creating, updating, or deleting ratings notify users as they do in ITONICS. To skip the notification, set skipNotification to true in the request.
Files and attachments
| Endpoint | Methods | What it does |
|---|---|---|
| /files | POST, PUT | Requests an upload URL for a new file, then uploads the file to it. |
| /files/{fileUri} | GET | Returns the file's details with a download URL. |
| /files/{fileUri}/avatar | GET | Returns a user's profile picture with a download URL. |
| /elements/{elementUri}/attachments | GET, POST, DELETE | Lists, attaches, and detaches the element's files. |
Files are uploaded in two steps:
- Send a POST to
/fileswith the file name and content type. The response returns a fileUri for the new file and an upload block with a pre-signed URL. - Send the file with a PUT to that URL soon after, because the URL expires. Send only the
Content-Typeheader: nox-amz-aclheader, even though the upload block lists it, and no ITONICS Authorization header or cookies.
The file must match the name and content type you declared, and its type must be allowed (see Supported file formats and sizes); otherwise it's discarded. A success response from the upload URL doesn't confirm the file was stored: ITONICS checks each file for viruses and its type first. Until then, GET /files/{fileUri} returns an error, so repeat that request until it succeeds. Images are stored as WebP, so their file name and type change.
Once a file is ready, use its fileUri as a property value, for example as the header image of an element, or attach it with /attachments. There's no endpoint to delete a file: detaching it or clearing a header image only removes the reference.
Pages, users, and roles
| Endpoint | Methods | What it does |
|---|---|---|
| /views | GET, POST, PATCH, DELETE | Lists, creates, updates, and deletes pages. Other views aren't available through the API. |
| /views/{viewUri} | GET | Returns one page. |
| /users | GET, POST, PATCH, DELETE | Lists the users of the workspace, and creates, updates, and deletes users in the organization, up to 10 per request. New users join this workspace unless the request names other workspaces. |
| /users/{userUri} | GET | Returns one user of the workspace. |
| /users/remove | DELETE | Removes users from this workspace only. They stay in the organization and in their other workspaces. |
| /roles | GET | Lists the roles of the workspace. |
Two endpoints don't belong to a workspace, so their URL has no SpaceURI:
https://{your-domain}/rest/external/odata/v2/organization/userslists all users of the organization, also those who aren't in any workspace yet. The key needs the organization permission View organization user list.https://{your-domain}/rest/external/odata/v2/api-key/permissionslists the permissions of the calling key (see the last section).
Filter elements
Add $filter to a GET on /elements to request only the elements you need. A filter names a key, an operator, and a value, for example $filter=elementType eq 'Idea'. Combine filters with and and or, and group them with parentheses. A filter with an unknown key or a syntax error, such as a missing quote, is rejected with error 400.
| Key | Operators | Example |
|---|---|---|
| elementType | eq, ne, contains (element type name) | elementType ne 'Risk' |
| status | eq, ne, contains (published, draft, archived) | status eq 'draft' |
| label (title) | contains, startsWith | contains(label,'Technology') |
| summary | contains, startsWith | startsWith(summary,'Electric') |
| createdBy, updatedBy | eq, ne (email address) | createdBy eq 'jane.doe@example.com' |
| createdOn, updatedOn | gt, ge, lt, le (date as 'YYYY-MM-DD HH:MM') | createdOn ge '2024-06-01 00:00' and createdOn lt '2024-07-01 00:00' |
| uri | eq, ne | uri eq 'RZ8kq2mF7sGhT0a' |
| tags | eq, ne (matches when the tag is present) | tags eq 'asia' |
eq: equals;ne: doesn't equal.gt: greater than, or after a date;ge: greater than or equal, or at or after a date.lt: less than, or before a date;le: less than or equal, or at or before a date.contains: the value appears anywhere in the text.startsWith: the text begins with the value, ignoring case.
Custom properties are filtered by their field URI with the key properties/{fieldUri}, for example properties/fEVHVi163zAaKHV eq 'Article'.
| Property type | Operators | Matched by |
|---|---|---|
| Select, multi-select, hierarchical select | eq, ne | Option label; a multi-value property matches when the option is present. |
| Date | eq, ne, gt, ge, lt, le | Date as 'YYYY-MM-DD HH:MM'. |
| Number | eq, ne, gt, ge, lt, le | The number. |
| User | eq, ne | Email address or user URI; a multi-value property matches when the user is present. |
| Relation | eq, ne | ElementURI of the related element. |
| Rating | eq, ne, gt, ge, lt, le | Average rating value. |
| Text | startsWith | Start of the text. Rich text can't be filtered. |
Sort, select, and page results
$orderbysorts the results, ascending by default, for example$orderby=label asc.$selectreturns only the fields you name. The URI is always included.$topsets how many results a response holds: 100 at most, also by default.- When there are more results, the response has a
nextLink. Request that link to get the next batch, until there's none. $skipskips a number of results.$skipand$toptogether can't go beyond 10,000; for more, follownextLink.$format=xmlreturns XML instead of JSON.rawFieldValues=truereturns the stored values, such as URIs and raw rich text, instead of readable labels.
Write rich text values
Rich text properties accept plain HTML or Base64-encoded HTML. HTML that can run or embed external content, such as <iframe> or <script>, is blocked by a security filter in front of ITONICS with error 403, before it reaches the API. To write such content, encode the HTML in Base64 and put base64: in front of it:
JSON
"value": "base64:PGlmcmFtZSBzcmM9Imh0dHBzOi8vZXhhbXBsZS5jb20vcGFuZWwiPjwvaWZyYW1lPg=="
Plain HTML without such elements can be sent as is. To read rich text back in its stored form, use rawFieldValues=true.
Check what an API key can do
Send a GET to https://{your-domain}/rest/external/odata/v2/api-key/permissions with the key you want to check. The response lists each workspace the key can reach, with its SpaceURI, name, and the key's permissions there. Use it to check what an integration can access before you share a key, or that a key has exactly the permissions a workflow needs.