4 Endpunkte der Gruppe «API-Keys». Die Referenz stammt aus der englischen OpenAPI-Spezifikation und ist nicht übersetzt.
List API keys
GET/v1/keys
Prefix, environment and scope; the key itself is shown once, when it is created.
Parameter
Name
Ort
Typ
Beschreibung
limit
query
integer
Page size. The default and the maximum depend on the endpoint (emails 50 up to 500, received mail 50 up to 200, audit up to 200, the others 100 up to 500 or 1000). Default: 100
cursor
query
string
The next_cursor of the previous page. Opaque; pass it unchanged to the same endpoint with the same filters.
From domain must be one of these or a subdomain; empty: any verified domain
data[].allowed_streams
array<string>
Streams the key may send through; empty: all
data[].api_version
string
API version the key was created with Example: 2026-11-29
data[].key
string
Only in the answer to POST
data[].expires_at
string | null (date-time)
The key is refused from then on; null: never
data[].rotated_from
string | null
Id of the key this one replaced
data[].last_used_at
string | null (date-time)
data[].created_at
string (date-time)
next_cursor
string | null
Create an API key
POST/v1/keys
Needs scope full or admin (or a dashboard role of developer or higher). The new key gets the requested scope at most as high as the caller's own; the admin scope is only created by owners and admins in the dashboard (403 otherwise). Default scope: full. With expires_at (at most a year ahead) the key stops working at that time.
Creates a new key with the name, environment, scope, restrictions and API version of the old one; the new key is in the answer, only this once. The old key keeps working for the chosen time (expires_in, or expires_at at most 90 days ahead) and is refused afterwards; now revokes it at once. Rotating a key that already expires only ever moves its expiry earlier. The same rules as for creating and revoking keys apply: rotating an admin key needs an owner or admin in the dashboard. Owners and admins get a reminder 7 days and 1 day before a key expires.