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)
curlor any HTTP client
Environment selection
The examples below target production (the default). To hit alpha or local gateways instead, set BURDENOFF_ENV:
| Environment | BURDENOFF_ENV | Global endpoint | Workspace endpoint |
|---|---|---|---|
| Production (default) | prod | https://graphql.burdenoff.com/global/graphql | https://graphqlworkspaces.burdenoff.com/workspaces/graphql |
| Alpha | alpha | https://alphagraphql.burdenoff.com/global/graphql | https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql |
| Local | local | http://localhost:4000/global/graphql | http://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:
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
- Authentication — OAuth apps, delegation
- GraphQL API — endpoints, conventions, schema reference
- Node SDK
- Python SDK
- CLI Reference