Skip to main content
The GraphQL API gives you one endpoint for almost everything you can do in Studio. You pick the fields you need, and one request can combine data from several parts of Occtoo, such as a source and its entries.
Behind the endpoint, a gateway combines four services into one schema: configuration, data layer, destinations, and media. You do not need to know which service owns a field. The schema has about 77 queries and 143 mutations.

Authentication

Send an Application access token as a bearer token:
Request the token with your tenant ID as the audience. The tenant comes from the token; you cannot choose it in the request. Each field needs a scope, such as read:sources to read sources or write:cards to change managed tags. The scope names are the same as in the REST APIs. A field called without its scope returns an error in the response’s errors list.
You can load the schema without a token. Every request for data needs one. Without a token, data fields fail with the error code AUTH_NOT_AUTHENTICATED.

Explore the schema

  • Browse every query, mutation and type in the reference under Queries, Mutations and Types in this section.
  • Open https://api.occtoo.com/graphql in a browser to use Nitro, an interactive GraphQL editor. Add your Authorization header in Nitro to run queries.
  • Download the schema as SDL from https://api.occtoo.com/graphql/schema.graphql.
  • Use introspection from any GraphQL client or code generator.
Every type, field and argument has a description. Read them in Nitro or in the SDL; they explain ids, defaults and limits for each field.

Areas

Every query and mutation belongs to one area. The area is a @tag on the field, so you can find all fields of an area in the SDL or let a tool group them for you. Only node and nodes have no area.

Next steps

Getting started

Send your first query and mutation.

Conventions

Ids, paging, filtering, sorting and errors.