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.
https://{tenant_id}.api.quasr.io/graphql.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:
https://{tenant_id}.api.quasr.io)https://api.quasr.io (default) - if you configure your own access token audiences on a client, make sure to include itRequests 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 tenanthttps://api.quasr.io/scopes/account which gives user permissions on an accountGranular 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
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:
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.
limit is 25 and the maximum is 100 (1000 for listAccounts, listEvents and listMetrics); higher values are capped to the maximum. The nextToken is opaque (encrypted) and should not be parsed or modified.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.
403 Forbidden response until you reduce your rate (this can take up to 5 minutes to clear, since it's a rolling window). This limitation can be relevant for large shared networks or back-end integrations that operate via fixed IP.403 Forbidden response. Contact security@quasr.io if you believe your IP is blocked in error.