Get a token
Request an Application access token with your tenant ID as the audience. For the examples on this page, ask forread:sources and write:cards.
Send a request
Send every query and mutation as aPOST to https://api.occtoo.com/graphql with a JSON body. Put the GraphQL document in query and any variables in variables.
List your sources
dataSources lists the sources of your tenant, archived ones included. This query keeps only live sources that hold data entries:
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 oneinput argument and return a payload. The payload holds the result and an errors list for expected failures.
managedTagsList is null and errors explains why. Always select errors in mutations. See Errors.