Skip to main content
This page walks you through two queries and one mutation. You need an Application with the scopes used below.

Get a token

Request an Application access token with your tenant ID as the audience. For the examples on this page, ask for read:sources and write:cards.

Send a request

Send every query and mutation as a POST to https://api.occtoo.com/graphql with a JSON body. Put the GraphQL document in query and any variables in variables.
You can also paste the documents below into Nitro at https://api.occtoo.com/graphql.

List your sources

dataSources lists the sources of your tenant, archived ones included. This query keeps only live sources that hold data entries:
The id is a global id. See Ids for how it relates to the raw source id products.

Read source entries

sourceEntries reads the entries of one source, with typed property values. It takes the raw source id. This query finds entries whose brand is Acme, most recently updated first:
value is a union. Its member type follows the property’s data type, such as TextValue, IntegerValue, DecimalValue, BooleanValue, TimestampValue, ListValue, LocalizedTextValue or LocalizedListValue. Select a fragment for each type you expect.

Create a managed tag list

Mutations take one input argument and return a payload. The payload holds the result and an errors list for expected failures.
If the name is already in use, managedTagsList is null and errors explains why. Always select errors in mutations. See Errors.