Keys
List keys
GET
Auth: Bearer key with no domain scope.
bearerheader
AuthorizationBearer <token>An API key in the Authorization header.
limit?integerHow many keys to return, at most 200.
Range
1 <= value <= 200Default
50cursor?stringId of the last key on the previous page.
mode?stringOnly keys in this mode.
Value in
"live""test"revoked?stringtrue for revoked keys only, false for live ones only. Omit for both.
Value in
"true""false"domain?stringA domain id. Only keys that reach it: limited to it, or to no domain.
Length
1 <= lengthfields?stringComma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, name, mode, secret_prefix, domain_ids, rate_limit, last_used_at, revoked_at, created_at.
A page of the organization's keys, newest first. Admin keys are never listed.
application/json- response
data?array<>The page of keys, newest first.
next_cursor?|Id to pass as cursor for the next page. Null on the last page.
curl -X GET 'https://pouch.example.com/v1/keys'Example Response
{ "data": [ { "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" } ], "next_cursor": "string"}