Authorization header. There are no login calls to make and no session to keep alive.
What changes
Your existing API key keeps working — move it from the
token query parameter into the Authorization header and change the base URL. Since release 26.1, API v1 accepts the key in the Authorization header too, so you can move it there before you switch.
Before
/api/v2. For the sandbox, for example, it is https://sandbox.circularo.com/api/v2.
The header is also the better home for a secret: URLs tend to be written to logs more readily than headers are, so it is good hygiene to keep credentials out of them.
No login endpoints
POST /login, POST /login/unlock, POST /login/recovery and GET /logout have no counterpart, and neither does any other way of exchanging a username and password for a token. An integration authenticates as itself, with a long-lived key, and never as a person typing a password.
Create your first key in the web app — Get your first API key walks through it. From then on the API can create and revoke further keys itself; it just cannot mint the first one.
Managing keys
- The secret is in
apiKey, notid.POST /api/keyreturned the key itself asid;POST /api-keysreturns it asapiKey, andidis now the key’s non-secret identifier. - Revoking takes the
id.DELETE /api-keys/{id}accepts only the identifier from the create response or fromGET /api-keys; the full key value is refused. GET /api-keysshows no part of the secret. Each entry carries itsid,description,createdAtandlastUsedAt— give every key adescription, since that is how you tell keys apart.
Checking the credential and the account
GET /me replaces GET /login. Besides identifying the account, it reports what the account is allowed to do — which signature and seal providers are available, whether it may share outside the organization, the signatures configured for it, its saved document views — so you can check a capability before you rely on it rather than discovering it in a 403.
What a rejected credential looks like
The
428 is worth handling deliberately: it means a person has to activate the account before the integration can continue.
To cut an integration off, suspend its account or revoke the key.