Skip to main content
Send a named GraphQL operation to POST /graphql with Authorization: Bearer <token>. The API accepts two distinct bearer credentials:
  • A workspace API token (dp_live_…) is for server integrations. It is bound to the organization where it was created; an input orgId cannot switch workspaces. The API intersects its scopes with the creator’s current permissions and applies that creator’s object assignments.
  • A Supabase user access token is for signed-in user clients such as the dashboard or a mobile app. The API verifies the user and resolves current membership, organization, permissions, and assignments. A Supabase refresh token is used with Supabase Auth to obtain an access token; it is not a GraphQL credential.
The API uses Pothos to build its schema and Apollo Server to execute GraphQL. Its /playground page is GraphiQL.

Effective permissions

For each request, the API intersects token scopes with the creator’s current permissions, including configured role changes. The creator’s object assignments are applied by the corresponding inventory queries. For example, send CreateProject as a GraphQL mutation with its input variable, or GetImport as a query with its id variable. Follow the operation catalog and schema for current fields. User access tokens are authorized using the user’s current permissions rather than workspace API-token scopes. Object-scoped API tokens cannot create projects.

Lifecycle

Keep workspace API tokens out of browser code and public repositories. To rotate a workspace API token, create a replacement, update the integration, and then revoke the old token. User access tokens are managed through the Supabase Auth client and should follow its session handling flow. Expired or revoked credentials stop working. An inactive API-token creator, suspended organization, or missing current membership can also prevent requests. Check GraphQL errors[].extensions.code or a pre-execution HTTP error as described in Errors and limits.