Keys
Revoke a key
DELETE
Auth: Bearer key with no domain scope.
bearerheader
AuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
The revoked key. The row stays, so the messages it sent keep naming it; the secret stops authenticating immediately.
application/json- response
id?stringOpaque id, prefixed key_.
name?stringName the key was created with.
mode?stringtest routes every send to the mock provider.
Value in
"live""test"secret_prefix?stringLeading characters of the secret, enough to tell two keys apart. Never the secret.
domain_ids?array<string>Domains the key may send from. Empty means every domain in the organization.
rate_limit?integerRequests a minute this key is allowed.
last_used_at?|ISO 8601 timestamp of the last request that authenticated with it, over HTTP or SMTP, written at most once a minute. Null until the key's first request.
revoked_at?|ISO 8601 timestamp, or null while the key works.
created_at?stringISO 8601 timestamp.
curl -X DELETE 'https://pouch.example.com/v1/keys/string'Example Response
{ "id": "string", "name": "string", "mode": "live", "secret_prefix": "string", "domain_ids": [ "string" ], "rate_limit": 0, "last_used_at": "string", "revoked_at": "string", "created_at": "string"}