Shotstash
API referenceREST referenceGraph Q L

Run a GraphQL query (GET)

GraphQL over GET for queries only (query and variables in the URL). The schema and every operation are documented in schema.graphql at the repository root; each root field declares its own auth (public or Bearer session).

Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.

GET
/api/graphql

GraphQL over GET for queries only (query and variables in the URL). The schema and every operation are documented in schema.graphql at the repository root; each root field declares its own auth (public or Bearer session).

Query Parameters

query*string

The GraphQL document.

variables?

Operation variables.

operationName?string

Which operation of the document to run.

Response Body

GraphQL result (errors are inside the body)

application/json
  1. response
data?|

The result, shaped by the query.

errors?array<>

Errors; each carries extensions.code.

curl -X GET "https://example.com/api/graphql?query=string"
{  "data": {    "property1": null,    "property2": null  },  "errors": [    {      "property1": null,      "property2": null    }  ]}