Unkey · Example Payload

Unkey Get Key Example

APIKeysRate LimitingAuthenticationDeveloper PlatformAccess ControlIdentityAnalytics

Unkey Get Key Example is an example object payload from Unkey, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.unkey.com/v2/keys.getKey",
    "headers": {
      "Authorization": "Bearer unkey_xxxxxxxxxxx",
      "Content-Type": "application/json"
    },
    "body": {
      "keyId": "key_1234567890abcdef"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "meta": {
        "requestId": "req_5f2d3mi56o7n890"
      },
      "data": {
        "id": "key_1234567890abcdef",
        "apiId": "api_1234567890",
        "workspaceId": "ws_9876543210",
        "name": "Production API Key",
        "prefix": "sk",
        "externalId": "user_abc123",
        "meta": {
          "plan": "pro",
          "userId": "user_abc123"
        },
        "roles": ["read", "write"],
        "permissions": ["data.read", "data.write"],
        "enabled": true,
        "createdAt": 1714694460000,
        "updatedAt": 1714694460000,
        "expires": 1893456000000,
        "ratelimit": {
          "async": false,
          "limit": 1000,
          "duration": 60000
        },
        "credits": {
          "amount": 10000,
          "refillAmount": 10000,
          "refillDay": 1,
          "lastRefillAt": 1714694460000
        }
      }
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/unkey-get-key-example"
All examples
curl "https://apis.io/api/v1/examples?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.