APIs — Management

APIs

This API is a GraphQL API that provides all functionality regarding user account management and tenant administration. It can be used to support your own user and admin interfaces as well as for automation (DevOps). Note that you can also create tenants using this API. This API is used by the Quasr Account & Admin UIs.

Authorization

The API requires authorization in the form of an access token in the Authorization header as follows: Bearer {token}. Other tokens issued by Quasr (such as session, ID or refresh tokens) are not accepted. The access token must:

  • be issued by the same tenant as the one in the endpoint (i.e. https://{tenant_id}.api.quasr.io)
  • contain the audience https://api.quasr.io (default) - if you configure your own access token audiences on a client, make sure to include it
  • not be expired or revoked

Requests without a token, or with a token that doesn't meet the above, are rejected with a 401 Unauthorized response. In addition, the token must contain the right scopes in order to perform an operation:

  • https://api.quasr.io/scopes/admin which gives admin permissions on your tenant
  • https://api.quasr.io/scopes/account which gives user permissions on an account

Granular scopes narrow these down per resource and per operation, e.g. https://api.quasr.io/scopes/admin/claims for all claim operations, or https://api.quasr.io/scopes/admin/claims/search for searchClaims only. To grant one, create a scope control for it with Permission Required, attach it to the application with a rule and grant the application a permission for it (see Applications — Machine). For example, a billing service that looks up customers by customer number and reads their account needs no more than:

The Billing Service: only the scopes it needs

  1. 12 Management API operations (searchClaims, getAccount) and token introspection: a leaked token can't change anything in your tenant

An application gets its access token from the token endpoint, e.g. with the Client Credentials grant for a back-end service (see Applications — Machine). In the Admin UI you can try this with the application's Test button, and use the access token it returns to call the API:

  1. 1Request only what the next calls need: here Token Introspection is left out

Pagination

List operations (e.g. listAccounts) accept an optional limit and nextToken argument and return a connection with items and a nextToken. As long as the returned nextToken is not null, more results are available: pass it as nextToken in your next request to retrieve the next page.

Rate Limits

The GraphQL API has a limit of 10,000 request tokens per second. Most requests consume a single token, but requests that use more resources (processing time and memory) consume additional tokens. The number of tokens consumed by a request is returned in the x-amzn-appsync-TokensConsumed response header. If we'd assume an average of 2 tokens per request, the API should be able to support ~5,000 RPS.

2026.11.22 | © Copyright 2026 Quasr BV