Skip to Content
Pouch
Keys

List keys

GET
/v1/keys

Auth: Bearer key with no domain scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Query Parameters

limit?integer

How many keys to return, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Id of the last key on the previous page.

mode?string

Only keys in this mode.

Value in"live""test"
revoked?string

true for revoked keys only, false for live ones only. Omit for both.

Value in"true""false"
domain?string

A domain id. Only keys that reach it: limited to it, or to no domain.

Length1 <= length
fields?string

Comma-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.

Response Body

A page of the organization's keys, newest first. Admin keys are never listed.

application/json
  1. 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.

Example Request
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"}