API playground - ION Manual

Authenticate

To run a query, first set your access token in the Authorization header field at the top of the playground:

Authorization: Bearer <your-token>

There are two ways to get a token:

The playground stores tokens locally in your browser and sends them only to the ION API.

Quick start

Run this query first to confirm your token works:

query Me {
  me {
    id
    name
    email
    organization {
      id
      domain
    }
  }
}

A successful response means your token is valid for the tenant in organization.domain. If you get an errors[] payload instead, see Error codes.

What you can do here

The playground runs mutations against the live API. Use a sandbox tenant when prototyping mutations so you don’t change production data.

Example Queries and Mutations

See Example requests.

GraphQL Schema reference

The full GraphQL schema is also checked into this repository as schema.graphql. There are three ways to explore the schema:

  1. In the playground: click around the schema explorer.
  2. In the file: open schema.graphql in your editor.
  3. By introspection: run query { __schema { types { name kind } } } from the playground.

To find which query or mutation powers a page, open your browser’s developer tools, go to the Network tab, and click around in ION. The app shows the exact queries, mutations, and filters it sends.