Skip to main content

Quick start

Your first GraphQL call against the platform, in five minutes.

What you'll need​

  • A Burdenoff account
  • A personal API key (generate at Settings → API Keys)
  • curl or any HTTP client

Environment selection​

The examples below target production (the default). To hit alpha or local gateways instead, set BURDENOFF_ENV:

EnvironmentBURDENOFF_ENVGlobal endpointWorkspace endpoint
Production (default)prodhttps://graphql.burdenoff.com/global/graphqlhttps://graphqlworkspaces.burdenoff.com/workspaces/graphql
Alphaalphahttps://alphagraphql.burdenoff.com/global/graphqlhttps://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql
Locallocalhttp://localhost:4000/global/graphqlhttp://localhost:4003/workspaces/graphql

When BURDENOFF_ENV is unset or invalid, the default is prod.

1. Issue an API key​

From the web app: Settings → API Keys → New API Key. Give it a name (e.g., dev-laptop) and copy the token immediately — you won't see it again.

→ User guide: API keys

2. Call me​

curl -sS https://graphql.burdenoff.com/global/graphql \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $BURDENOFF_TOKEN" \
--data '{"query":"{ me { id email name } }"}'

You should see:

{ "data": { "me": { "id": "...", "email": "[email protected]", "name": "Your Name" } } }

3. List your workspaces​

curl -sS https://graphqlworkspaces.burdenoff.com/workspaces/graphql \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $BURDENOFF_TOKEN" \
--data '{"query":"{ myWorkspaces { id name slug } }"}'

4. Make a workspace-scoped call​

Most workspace operations require an x-workspace-id header. Pick one from step 3 and:

WS_ID=$(curl -sS https://graphqlworkspaces.burdenoff.com/workspaces/graphql \
-H "Authorization: Bearer $BURDENOFF_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"query":"{ myWorkspaces { id } }"}' | jq -r '.data.myWorkspaces[0].id')

curl -sS https://graphqlworkspaces.burdenoff.com/workspaces/graphql \
-H "Authorization: Bearer $BURDENOFF_TOKEN" \
-H "x-workspace-id: $WS_ID" \
-H 'Content-Type: application/json' \
--data '{"query":"{ myProjects { id name } }"}'

Next steps​