Making Requests#
All API requests are HTTP POST requests to the GraphQL endpoint with a JSON body.
Endpoint#
Required headers#
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | Header | Required | Bearer YOUR_API_KEY |
Content-Type | Header | Required | application/json |
Request body#
| Name | Type | Required | Description |
|---|---|---|---|
query | String | Required | Your GraphQL query or mutation |
variables | Object | Optional | Key/value map of variables referenced in the query |
Using variables#
Always use variables instead of string interpolation to prevent injection and improve query caching:
Response format#
Successful responses return HTTP 200 with:
Errors are returned in an errors array alongside (or instead of) data. See
Error Handling for details.