Skip to main content

Overview

The Elementum API provides programmatic access to the resources published in the OpenAPI specification: records, attachments, users, groups, apps, automations, and the other operations listed below. This guide covers authentication, base URLs, filtering, pagination, and the endpoint list from that specification.

Elementum API Specification

Open the live Swagger UI for every endpoint, parameter, and schema.

API Status

Check the current status of our API services and get notified of any issues.

Authentication

API access is at the user level. Create a client ID and client secret for a user, then exchange those credentials for a Bearer token. Send the token on every API request except the token request itself. The token response includes expires_in, the number of seconds until that token expires.

Step 1: Create API credentials

  1. Sign in to Elementum in your web browser
  2. Open the User Settings menu and go to the OAuth section
  3. Select Create New Token, choose API Access, and click Generate Token
  4. Save the generated Client ID and Client Secret immediately — they are shown only once and cannot be retrieved later
Store your Client ID and Client Secret securely. They provide access to your Elementum data. Do not expose them in frontend applications or public repositories.

Step 2: Obtain a Bearer token

Request an access token with OAuth 2.0 client credentials. The token endpoint is on the API host root, not under /v1.
  • Endpoint: POST https://api.elementum.io/oauth/token (EU: https://api.eu.elementum.io/oauth/token)
  • Content-Type: application/json
  • Body: JSON with grant_type, client_id, and client_secret. grant_type must be client_credentials.
Example with cURL:
A successful request returns 201 Created with access_token, token_type (Bearer), and expires_in. Send the access token on later requests as Authorization: Bearer {access_token}. Records created or updated via the API are attributed to the API user. Request a new token when the current one expires. Use the expires_in value from the response.

Step 3: Make authenticated API calls

Include the access token in the Authorization header:
Replace YOUR_ACCESS_TOKEN, the record type, and the namespace with your values. See Record types and namespaces and the endpoint reference below.

Base URL

Resource endpoints are relative to this base URL: https://api.elementum.io/v1
For users in the EU region, use the EU endpoint: https://api.eu.elementum.io/v1The access-token operation is the exception. Call POST /oauth/token on the host root (https://api.elementum.io/oauth/token), not under /v1.

Core Concepts

Record types and namespaces

Record operations use a recordType and an alias.
  • recordType is apps, elements, tasks, or transactions.
  • alias is that record type’s namespace or its UUID.
Where to find the alias:
  • In the Create Record modal for that record type
  • In Admin — aliases can be set in the Create Definition (or equivalent) modals for the app, element, or task
Record collection paths include a /records segment:
  • List or create: /{recordType}/{alias}/records
  • One record: /{recordType}/{alias}/records/{id}
Related items, attachments, watchers, and comments use the record id on the record-type path, without the /records segment. Example: /{recordType}/{alias}/{id}/attachments.

File attachments

Attachment operations add a file, add a URL link, download file content, or delete an attachment.
  • Maximum file size: 250MB per file
  • Add an attachment: POST /{recordType}/{alias}/{id}/attachments with multipart/form-data. The file field name is file. A successful upload returns 202 Accepted.
  • Add a link: POST /{recordType}/{alias}/{id}/attachments/url-links with a JSON body. url is required. description is optional.
  • Download content: GET /{recordType}/{alias}/{id}/attachments/{attachmentId}/content
Example:
See Add an attachment for the request shape, and the endpoint reference below for the full attachment list.

Filtering results

These operations accept an RSQL string in the filter query parameter: Get the list of records, List users in your organization, List agents under an app, and List skills under an app. The operators and examples below are the ones published on the filter parameter in the OpenAPI specification.

Operators

Combining filters

  • AND: semicolon (;). Example: Created At!=null;Created At=ge=2021-01-01T07:58:30.000Z. In URLs, encode ; as %3b.
  • OR: comma (,). Example: Created At!=null,Created At=ge=2021-01-01T07:58:30.00Z. In URLs, encode , as %2c.
AND operators take precedence over OR operators in filter expressions. URL-encode special characters when passing filters in query parameters.

Pagination

These list operations accept first, after, last, and before: records, watchers, comments, users, groups, users in a group, agents, skills, views, and tables.

Error handling

The API uses standard HTTP status codes.

Rate limiting

The API enforces rate limiting. When the limit is exceeded, the response status is 429 Too Many Requests.

Endpoint reference

Paths below are relative to https://api.elementum.io/v1 (EU: https://api.eu.elementum.io/v1), except Request an access token, which is POST /oauth/token on the host root. Groups follow the tag order in the OpenAPI specification. Summaries match the operation summaries in Swagger UI. Request bodies, parameters, and response schemas are on the Swagger UI page.

Access Token

Manage access tokens using OAuth 2.0 standards.

Agents

Manage AI agents.

Apps

Compose and manage apps.

Attachments

Manage the attachments of a record.

Automations

Manage automations.

Comments

Manage the conversation of a record.

Flows

Manage flows.

Groups

Manage groups and group membership.

Domains

Manage organization domains.

Records

Manage your records. Manage the related items of a record.

Search Tables

Manage search tables (snowflake and linked).

Skills

Manage agent skills.

Tables

Manage tables: schemas, fields, joins, and join mappings.

Users

Manage users in your organization.

Views

Manage app views.

Watchers

Manage the watchers of a record.

Best practices and important notes

  • Field names and picklist values match the record type definition in Admin. Use the exact names and values from your app.
  • Date and date-time values use ISO 8601 with a UTC (Z) offset, as in the filter examples: 2022-03-15T07:58:30.000Z.
  • Record creation must include the required fields for that record type.
  • Related items are added one item at a time. The body is a single object with a required id and an optional alias.
  • URL-encode special characters in filter strings when using query parameters.
  • Read expires_in on the token response and request a new token when the current one expires.

Versioning

The current version is v1, specified in the URL of resource requests: https://api.elementum.io/v1/{endpoint}