Legacy ITONICS Cloud API
Reference for version 1 of the ITONICS Cloud API, still supported for existing integrations.
The legacy ITONICS Cloud API is version 1 (V1) of the ITONICS Cloud API. It retrieves elements, element types, and files from a workspace, for example to analyze them in a business intelligence tool, but it can't create or change anything.
Status of V1
Note: V1 remains available and is currently supported, but ITONICS will deprecate it in the future. Use V2 for all new integrations, and review existing V1 integrations and move them to V2.
Version 2 (V2) is the latest version: it also creates, updates, and deletes elements and works with comments, ratings, files, pages, and users. See Overview of the ITONICS Cloud API. This article describes V1 for existing integrations.
Authentication
Every V1 request is authenticated with an API key of the type External Integration, sent in the Authorization header. V1 and V2 use the same keys. See Create an integration API key.
Anyone who has the key can read all information in its workspaces, also the content of properties that are hidden in the element configuration. The key is valid as soon as it's created, until it's deactivated, deleted, or rotated.
Request URL
A V1 request names your ITONICS domain, the SpaceURI of one workspace, an endpoint, and an optional filter:
https://{your-domain}/rest/external/odata/v1/{spaceUri}/{endpoint}?$filter={query}
Your domain is the address you open ITONICS at, for example your-tenant.itonics.io. A request reaches one workspace, so a key for several workspaces needs one request per workspace. How to find the SpaceURI is explained in Work with SpaceURI and ElementURI.
Endpoints
| Endpoint | What it returns |
|---|---|
| /Elements | The elements of the workspace. Supports filters, sorting, and pagination. |
| /ElementTypes | Every element type of the workspace with its properties. Takes no query parameters. |
| /File/{fileUri} | Downloads a file. In an element from /Elements, an attachment property's value holds the file's full URL. |
/ElementTypes returns the element types in this format:
TypeScript
export interface ODataElementTypesResponse {
context: string;
elementTypes: Array<ODataElementTypes>;
count: number;
}
export interface ODataElementTypes {
uri: string;
version: number;
name: string;
description: string;
fields: Array<ODataField>;
}
export interface ODataField {
uri: string;
version: number;
name: string;
type: string;
properties: Array<ODataFieldProperty>;
}
export interface ODataFieldProperty {
uri: string;
value: string;
}Filter elements
A filter on /Elements names a property, an operator, and a value. For example, this request returns all elements of the element type Idea:
https://{your-domain}/rest/external/odata/v1/{spaceUri}/Elements?$filter=elementType eq 'Idea'
| Operator | Meaning | Example |
|---|---|---|
| eq | Equals | elementType eq 'Idea' |
| ne | Doesn't equal | elementType ne 'Risk' |
| contains | Contains the text | contains(elementType,'tech'): element types whose name contains "tech" |
| gt | Greater than, or after a date | createdOn gt '2023-06-25 16:00' |
| ge | Greater than or equal, or at or after a date | createdOn ge '2023-06-03 12:00' |
| lt | Less than, or before a date | createdOn lt '2023-06-25 16:00' |
| le | Less than or equal, or at or before a date | createdOn le '2023-06-25 16:00' |
| Property | Meaning | Example |
|---|---|---|
| elementType | Element type | elementType eq 'Idea' |
| createdBy | Creator, by email address | createdBy eq 'jane.doe@example.com' |
| updatedBy | Last editor, by email address | updatedBy ne 'jane.doe@example.com' |
| createdOn | Creation date and time | createdOn gt '2023-06-25 16:00' |
| updatedOn | Date and time of the last update | updatedOn gt '2023-04-05 16:12' |
| status | Publication status: published, draft, or archived | status eq 'draft' |
| label | Title | contains(label,'Technology') |
For other properties, use the property names and values from your workspace's element configuration. Combine filters with and, or, and not, for example createdOn gt '2024-06-01 00:00' and elementType eq 'Idea' for all ideas created after June 1, 2024. V1 follows the OData URI conventions, which list more operators. Add &rawFieldValues=1 to get the stored values, which matters for rich text properties.
Sort and page results
$orderbysorts the results, ascending by default, for example$filter=elementType eq 'Technology'&$orderby=label asc.- Results come in batches of 100 by default. When there are more, the response has a
nextLinkwith a$skiptoken. Request that link to get the next batch. $topsets how many results to retrieve, for example$filter=status eq 'archived'&$top=100.
Use V1 data in BI tools
The setups for Power BI and Looker Studio work with V2. To move a V1 report, follow Connect Power BI or Sync data and embed custom reports from BI tools.