Skip to main content
Each call carries the API key of the organization in the Authorization header:

API key

  • The key starts with qx_.
  • The key belongs to one organization. A call reaches only the data of that organization.
  • An owner of the organization creates the key in Settings › API keys, in QX. The key text appears once, right after the creation.
  • QX support also creates and revokes the key when the organization asks. Each owner gets an email for each new key.
  • The organization has up to 10 active keys. The Triage shows the name of each key as the source of the documents that the key sends.
  • Keep the key in the secrets manager of your server.
  • Never send the key by email, and never write the key to a log.
  • If the key leaks, an owner revokes the key on the same screen. The next call with the revoked key gets 401.

Refusals

The API checks the key and the organization before each call.

Limits

A paid write is a call that starts a paid service, such as a CNPJ lookup or the reading of a document. These are the paid writes:
  • POST /contacts;
  • POST /collections;
  • POST /documents;
  • PATCH /documents/{id} with file.
  • The day of the daily limit follows the time zone of the organization. The limit resets at midnight.
  • Each 429 response has the Retry-After header, with the seconds to wait.
  • QX adjusts the daily limit of a key when the organization asks.