You can run queries on real Scope data using any HTTP compliant client (HTTP Client) or GraphQL integrated development environment (GraphQL IDE). GraphQL IDEs are typically easier to work with because they include docs, syntax highlighting, and validation errors.
...
Scope GraphQL Explorer is an instance of GraphiQL (a GraphQL IDE) that is available in-browser at https://cms.scopear.com/api/v3/graphql/explorer.
Note |
---|
Note: Scope has temporarily disabled the Explorer, but you can still explore the graph using a local GraphiQL client, or any other similar client (see below). |
Using GraphiQL
To use the GraphiQL app, download and install it from https://www.electronjs.org/apps/graphiql.
...
Get an OAuth token.
Launch GraphiQL.
In the upper-right corner of GraphiQL, click Edit HTTP Headers.
In the upper-right corner of the modal dialog, click + Add Header.
In the Key field, enter
Authorization
. In the Value field, enterToken token=<token>
, where<token>
is your generated OAuth token.Click the checkmark to the right of the token to save it.
In the upper-right corner of the modal dialog, click + Add Header.
In the Key field, enter
PrivateAccessCode
. In the Value field, enterToken token=YWRtaW4xMjU6c2VjcmV0MTI1
, whereYWRtaW4xMjU6c2VjcmV0MTI1
is a literal value (used to enable early access to the Scope GraphQL API).Click the checkmark to the right of the token to save it.
To return to the editor, click outside of the Edit HTTP Headers modal.
In the GraphQL Endpoint field, enter
https://cms.scopear.com/api/v3/graphql
.In the Method dropdown menu, select POST.
Note: For more information about why POST
is the method, see "Communicating with GraphQL."
You can test your access by querying yourself:
...
“Permanent” API tokens that never expire.
“Temporary” Session based tokens that expire after a relatively short period of time, 30 days (or “sign-out”, whichever is earlier).
To obtain a permanent API token:
...