v56

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01142337440.5 KB
APIKeyService
API Keys

List API keys

Lists the workspace's API keys.

get/v1/workspaces/{workspaceId}/api_keys

Path parameters

workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q

The workspace whose API keys will be listed (path).

Query parameters

limitinteger

Maximum number of results to return.

cursorstring

Pagination cursor from previous response.

prefixstring

Filter by ID prefix.

querystring

Free-form search query.

labelsstring

Filters by metadata labels. Comma-separated key=value pairs, e.g. "env=prod,team=ai". A resource matches only if every pair matches exactly (AND semantics).

sortOrderstring

Sort order for results (asc or desc by creation time).

includeInfoboolean

When true, included info fields are populated. Requests with this flag count more against your rate limit.

Response

OK

Example response

{
  "items": [
    {
      "metadata": {
        "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
        "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
      },
      "info": {
        "createdBy": {
          "metadata": {
            "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
            "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
          }
        }
      }
    }
  ]
}