API reference
Your API keys
The calling user’s own API keys in the key’s organisation: status, scopes and today’s calls.
Its operations need the scope api_access.view.
List your API keys
GET/v1/user/api-keys
Lists the API keys the calling user made in the key’s organisation, with their status, permissions and today’s calls; never another user’s keys and never another organisation’s. Filter by status and search text; sorts by one column. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope api_access.view.
Query parameters
- statusarray of strings or nullOptional
Only keys in one of these statuses:
active(live now),expired(not revoked, past its expiry) orrevoked. Absent lists every status. A list: repeat the parameter (status=active&status=expired) or send one value (status=active);status[]=activeis accepted too.Values:activeexpiredrevoked(an open set: new values may be added) - searchstring or nullOptional
Only keys whose name, or the last characters the key shows (
last_four, or the key’s last four for a newer key), contains this text. - sortstring or nullOptional
The column to sort by:
name,created_at,expires_atorlast_used_at; a key that never expires sorts as the far future, and a key never used sorts last in both directions. Without one the newest comes first.Values:namecreated_atexpires_atlast_used_at(an open set: new values may be added) - directionstring or nullOptional
The sort direction,
asc(the default) ordesc.Values:ascdesc(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the calling user’s own API keys in the key’s organisation.
Each item of the page:
- uuidstring
The UUID of the key.
- namestring
The name the key was given when it was made.
- last_fourstring
Four characters of the key kept to tell keys apart: the four before its six-character checksum, not its last four.
redacted_keyis the form to show. The key itself is shown once, when it is made. - redacted_keystring
The key as the console shows it: the prefix and the key’s last four characters (
wt15ak_…Qz3x), or, for an older key whose last characters were never kept, the four kept characters followed by six dots for the hidden checksum (wt15ak_…a1b2••••••). - scopesarray of strings
The permissions the key carries, as
<module>.<action>names. - statusstring
One of
active(live now),expired(not revoked, past its expiry) orrevoked.Values:activeexpiredrevoked(an open set: new values may be added) - created_atinteger
Epoch milliseconds. When the key was made.
An instant: epoch milliseconds, UTC. - expires_atinteger or null
Epoch milliseconds. When the key expires; null for a key that never expires.
An instant: epoch milliseconds, UTC. - last_used_atinteger or null
Epoch milliseconds. When the key last made a call; null when it never did.
An instant: epoch milliseconds, UTC. - revoked_atinteger or null
Epoch milliseconds. When the key was revoked; null for a key that was not.
An instant: epoch milliseconds, UTC. - calls_todayinteger
How many calls the key made today (UTC); 0 for a key that is not active.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.