Skip to content
English
  • There are no suggestions because the search field is empty.

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

Element and element type endpoints
EndpointMethodsWhat it does
/elementsGET, POST, PATCH, DELETELists, creates, updates, and deletes elements.
/elements/{elementUri}GETReturns one element by its ElementURI.
/elementtypesGET, POSTLists 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}/….

Comment, rating, like, and watcher endpoints
EndpointMethodsWhat it does
/commentsGET, POST, PATCH, DELETELists, adds, updates, and removes the element's comments.
/ratingsGET, POST, PATCH, DELETELists 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.
/likesGET, POST, DELETELists, adds, and removes likes.
/watchesGET, POST, DELETELists, 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

File and attachment endpoints
EndpointMethodsWhat it does
/filesPOST, PUTRequests an upload URL for a new file, then uploads the file to it.
/files/{fileUri}GETReturns the file's details with a download URL.
/files/{fileUri}/avatarGETReturns a user's profile picture with a download URL.
/elements/{elementUri}/attachmentsGET, POST, DELETELists, attaches, and detaches the element's files.

Files are uploaded in two steps:

  1. Send a POST to /files with the file name and content type. The response returns a fileUri for the new file and an upload block with a pre-signed URL.
  2. Send the file with a PUT to that URL soon after, because the URL expires. Send only the Content-Type header: no x-amz-acl header, 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

Page, user, and role endpoints
EndpointMethodsWhat it does
/viewsGET, POST, PATCH, DELETELists, creates, updates, and deletes pages. Other views aren't available through the API.
/views/{viewUri}GETReturns one page.
/usersGET, POST, PATCH, DELETELists 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}GETReturns one user of the workspace.
/users/removeDELETERemoves users from this workspace only. They stay in the organization and in their other workspaces.
/rolesGETLists 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/users lists 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/permissions lists 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.

Element keys you can filter by
KeyOperatorsExample
elementTypeeq, ne, contains (element type name)elementType ne 'Risk'
statuseq, ne, contains (published, draft, archived)status eq 'draft'
label (title)contains, startsWithcontains(label,'Technology')
summarycontains, startsWithstartsWith(summary,'Electric')
createdBy, updatedByeq, ne (email address)createdBy eq 'jane.doe@example.com'
createdOn, updatedOngt, 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'
urieq, neuri eq 'RZ8kq2mF7sGhT0a'
tagseq, 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'.

Custom properties you can filter by
Property typeOperatorsMatched by
Select, multi-select, hierarchical selecteq, neOption label; a multi-value property matches when the option is present.
Dateeq, ne, gt, ge, lt, leDate as 'YYYY-MM-DD HH:MM'.
Numbereq, ne, gt, ge, lt, leThe number.
Usereq, neEmail address or user URI; a multi-value property matches when the user is present.
Relationeq, neElementURI of the related element.
Ratingeq, ne, gt, ge, lt, leAverage rating value.
TextstartsWithStart of the text. Rich text can't be filtered.

Sort, select, and page results

  • $orderby sorts the results, ascending by default, for example $orderby=label asc.
  • $select returns only the fields you name. The URI is always included.
  • $top sets 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.
  • $skip skips a number of results. $skip and $top together can't go beyond 10,000; for more, follow nextLink.
  • $format=xml returns XML instead of JSON.
  • rawFieldValues=true returns 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.