Unkey · Schema

V2ApisListKeysRequestBody

APIKeysRate LimitingAuthenticationDeveloper PlatformAccess ControlIdentityAnalytics

Properties

Name Type Description
apiId string The API namespace whose keys you want to list. Returns all keys in this API, subject to pagination and filters.
limit integer Maximum number of keys to return per request. Balance between response size and number of pagination calls needed.
cursor string Pagination cursor from previous response to fetch next page. Use when `hasMore: true` in previous response.
externalId string Filter keys by external ID to find keys for a specific user or entity. Must exactly match the externalId set during key creation.
decrypt boolean When true, attempts to include the plaintext key value in the response. SECURITY WARNING: - This requires special permissions on the calling root key - Only works for keys created with 'recoverable: t
revalidateKeysCache boolean EXPERIMENTAL: Skip the cache and fetch the keys directly from the database. This ensures you see the most recent state, including keys created moments ago. Use this when: - You've just created a key a
View JSON Schema on GitHub

JSON Schema

unkey-v2apislistkeysrequestbody-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/V2ApisListKeysRequestBody",
  "title": "V2ApisListKeysRequestBody",
  "type": "object",
  "required": [
    "apiId"
  ],
  "properties": {
    "apiId": {
      "type": "string",
      "minLength": 1,
      "description": "The API namespace whose keys you want to list.\nReturns all keys in this API, subject to pagination and filters.\n",
      "example": "api_1234abcd"
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of keys to return per request.\nBalance between response size and number of pagination calls needed.\n",
      "default": 100,
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "description": "Pagination cursor from previous response to fetch next page.\nUse when `hasMore: true` in previous response.\n",
      "example": "key_1234abcd"
    },
    "externalId": {
      "type": "string",
      "minLength": 1,
      "description": "Filter keys by external ID to find keys for a specific user or entity.\nMust exactly match the externalId set during key creation.\n",
      "example": "user_1234abcd"
    },
    "decrypt": {
      "type": "boolean",
      "description": "When true, attempts to include the plaintext key value in the response. SECURITY WARNING:\n- This requires special permissions on the calling root key\n- Only works for keys created with 'recoverable: true'\n- Exposes sensitive key material in the response\n- Should only be used in secure administrative contexts\n- Never enable this in user-facing applications",
      "default": false
    },
    "revalidateKeysCache": {
      "type": "boolean",
      "default": false,
      "description": "EXPERIMENTAL: Skip the cache and fetch the keys directly from the database. This ensures you see the most recent state, including keys created moments ago. Use this when:\n- You've just created a key and need to display it immediately\n- You need absolute certainty about the current key state\n- You're debugging cache consistency issues\n\nThis parameter comes with a performance cost and should be used sparingly."
    }
  },
  "additionalProperties": false
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/unkey-v2apislistkeysrequestbody"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.