API Keys

Lists the API keys of an account, app, or your own user, newest first. Responses never include the full secret — only its obfuscated form.

get/api_keys

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

resource_id, string required

The account (biz_), app (app_), or your own user (user_) tag to list API keys for.

resource_type, 'account' | 'app' | 'user' required

The type of resource that owns the API keys.

created_before, union
integer
OR
string

Only return API keys created before this ISO 8601 timestamp.

created_after, union
integer
OR
string

Only return API keys created after this ISO 8601 timestamp.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

order, 'created_at'

The field to sort API keys by.

direction, 'asc' | 'desc'

Sort direction.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

api keys listed

object required
data, ApiKey[] required
page_info, object required

Example response

{
  "data": [
    {
      "api_version_date": "2026-11-30",
      "created_at": "2026-01-01T12:00:00.000Z",
      "expires_at": "2026-01-01T12:00:00.000Z",
      "grants": [
        {
          "actions": [
            {
              "action": "ai_prompt:create"
            }
          ],
          "resource_id": "biz_xxxxxxxxxxxxxx",
          "resource_type": "account"
        }
      ],
      "id": "apik_xxxxxxxxxxxxxx",
      "ip_allowlist": [
        "203.0.113.0/24"
      ],
      "name": "Shine Time Booking (admin role)",
      "obfuscated_secret_key": "apik_xxxx....xxxx",
      "secret_key": "apik_xxxxxxxxxxxxxx_C0000_C_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "system_role": "admin",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • warning

      added the new 2026-11-30 enum value to the data/items/api_version_date response property for the response status

    • warning

      added the new 2026-11-25 enum value to the data/items/api_version_date response property for the response status