Skip to Content
Vatis TechAPI docs
API keys

List keys

Lists your workspace's API keys, never the keys themselves.

Serverhttps://api.eu.vatis.tech

GET/v1/keys

Admin key only

A Member key gets 403 admin_only. Roles: Authentication and API keys.

Headers

Authorization (required)
An Admin key (Roles). A Member key gets 403 admin_only.
ValuesBearer <api key>

Query parameters

include_revoked
Also list the revoked keys.
Valuestrue, falseDefaultfalse

Response fields

keys
The keys, oldest first. Each has the fields below.
keys[].id
key_ and 12 hex digits.
keys[].name
The key's name.
keys[].prefix
The key's first characters, to tell it apart.
keys[].role
admin or member (Roles).
keys[].state
active, expired or revoked.
keys[].created_at
When it was made: ISO 8601, UTC.
keys[].last_used_at
When it last made a request, or null: never used.
keys[].expires_at
When it stops: the start of the day after its last day, in UTC. null: no end.
keys[].revoked_at
When it was revoked, or null.

Responses

The list.

400 invalid_parameter

Another query parameter, or an include_revoked that is not true or false. The param names it.

No key, or a wrong, revoked or expired one.

A Member key.

503 unavailable

The service is busy for a moment. Send the request again after the seconds of the Retry-After header.

Notes

  • These are the same keys as on the console's API keys page: a key made in one place shows in the other.