Skip to main content
The API keys entity lists your own keys in the environment you call it from, so a program can see which key it runs as, which keys are about to expire, and whether a rotation is under way. Keys are issued, rotated and revoked by Bullionwale on your request (see Getting access and Credentials); the API only reads them. A test key lists your test keys, and a live key your production keys: each environment sees only its own.

The key object

The secret is never returned, nor anything that could rebuild it: it was shown once, when the key was issued or rotated.

Read your keys

200 OK
The list is newest first and includes keys that no longer work, so you can see their history. It takes limit (1 to 200, default 50) and offset, like GET /orders. During a rotation, the production list shows both keys:
200 OK
Here the request was made with the old key (current, rotating): it keeps working until 09:00 UTC, and the new key has not been used yet.

What to check

  • At start-up: the current key’s state is active. If it is rotating, switch to the new key before overlap_until.
  • On a schedule: any key whose expires_at is close. Ask Bullionwale for a rotation in good time (see Credentials).
  • Unused keys: a key whose last_used_at stays null or old may belong to a retired system; ask Bullionwale to revoke it.

Errors

A key that is not accepted cannot call GET /keys at all: it is refused with its 401 code first (see Authentication). Every code is in the Error reference.