Skip to main content
The Clarus REST and GraphQL API is described by an OpenAPI specification. Download it and import it into your preferred API client to get a ready-made request for every documented endpoint.

Download the OpenAPI spec

clarus-api.json — the full Clarus API specification.
You’ll need to be signed in to these docs to download the spec.
You can also point your tool at the spec’s URL instead of a saved file, so it stays up to date as the API evolves. Right-click the download link above and copy the link address to get the full URL.

Before you start

Whichever tool you use, every request needs two things (see Authentication & Access):
  • An OAuth 2.0 bearer token in the Authorization header.
  • Your tenant X-Clarus-Subdomain header.
Set both once at the collection or environment level so they apply to every request.

Import into your tool

1

Import the spec

In Postman, click Import, then drop in the clarus-api.json file (or paste the spec’s URL).
2

Generate the collection

Postman creates a collection with a request for every endpoint, grouped by tag.
3

Set authentication

On the collection’s Authorization tab, choose Bearer Token and paste your access token. Add an X-Clarus-Subdomain header — a collection variable works well so you can switch tenants easily.
4

Send a request

Open any request, fill in the body if needed, and click Send.
Requests sent from these tools act with the permissions of the token you use and the subdomain you set — exactly like calling the API directly. The API can read and change data, so be careful which requests you run against a live tenant.
The spec covers REST mutation endpoints and GraphQL list queries. For retrieving data with GraphQL, see Polling for updates.