clerk.list_api_keys
List API keys in a connected Clerk application.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns api_keys and total_count.
Cost = 5 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of API keys to return (1–500). | |
| query | No | Search query to filter API keys by name. | |
| offset | No | Number of API keys to skip before returning results. | |
| subject | Yes | Subject to list API keys for (user_... or org_...). | |
| key_type | No | Filter by API key type (typically "api_key"). | |
| include_invalid | No | When true, include revoked or expired API keys. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_keys | No | API keys matching the request. | |
| total_count | No | Total number of API keys matching the filters. |