list_api_keys
Lists Portkey API keys to audit access, scopes, limits, defaults, and expiration; supports pagination and workspace filtering.
Instructions
List Portkey API keys for auditing access, scopes, defaults, limits, and expiration. Use this for API keys only; use list_virtual_keys for provider keys. Returns total plus id, type, status, workspace/user scope, limits, defaults, alert emails, creation mode, and the last rotation timestamp when available.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_api_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | Number of results per page (max 100) | |
| current_page | No | Zero-based page number; the first page is 0 | |
| workspace_id | No | Filter by workspace ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |