API key
The API key is composed of a public identifier and a secret. The secret is displayed only once, when the key is generated, and cannot be retrieved afterwards. The key identifies the holding account, so that every authenticated operation is restricted to the data of that account.Token issuance
ThePOST /auth operation issues the access token. The request uses the HTTP Basic authentication scheme (RFC 7617): the public identifier takes the position of the username, and the secret, that of the password.
Invalid credentials result in a
401 response.
Token use
The token is presented in theAuthorization header, under the Bearer scheme (RFC 6750).
401 response. A resource belonging to another account is treated as nonexistent and results in a 404 response.
Lifetime and renewal
The token is valid for one minute. There is no renewal operation: once the lifetime has elapsed, a new token must be issued throughPOST /auth. It is recommended that the integration keep the token in memory, track the expiry time from expiresIn and request a new token ahead of expiry, rather than waiting for a 401 response.