Stigg GraphQL API
How to use the Stigg API on the server-side
The GraphQL endpoint
#
The GraphQL API has a single endpoint:
The endpoint remains constant no matter what operation you perform.
Retrieving the server API Key
#
In the Stigg Cloud Console, go to Settings > Account > Environments .
Copy the Server API key of the relevant environment.
Discovering the GraphQL API
#
GraphQL explorer
#
You can run queries on real Stigg data using our GraphQL Explorer, an integrated development environment in your browser that includes docs, syntax highlighting, and validation errors.
GraphQL introspection
#
GraphQL is introspective. This means you can query a GraphQL schema for details about itself. You can run an introspection query by passing your Server API key as a query parameter:
For example, running the following curl, will get all the available root types:
Next
- Queries
addonAssociatedEntities