List API Keys changedapi/admin/api_keys/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+16added
Lines−15removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits5to this page, all time
# List API Keys ## Query parameters ## Returns ## Example ### Response (200) ## List API Keys ### Query Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: List API Keys
3url: https://platform.claude.com/docs/en/api/admin/api_keys/list
4---
1# List API Keys
52
6## List API Keys
3**GET** `/v1/organizations/api_keys`
74
8**get** `/v1/organizations/api_keys`
9
105List API Keys
116
12### Query Parameters
7## Query parameters
138
149- `after_id: optional string`
1510
from line 24
2924
3025 Defaults to `20`. Ranges from `1` to `1000`.
3126
27 default: 20, maximum: 1000, minimum: 1
28
3229- `status: optional "active" or "archived" or "expired" or "inactive"`
3330
3431 Filter by API key status.
from line 42
4542
4643 Filter by Workspace ID.
4744
48### Returns
45## Returns
4946
5047- `data: array of APIKey`
5148
from line 54
5754
5855 RFC 3339 datetime string indicating when the API Key was created.
5956
60 - `created_by: object { id, type } or null`
57 format: date-time
6158
59 - `created_by: object or null`
60
6261 The ID and type of the actor that created the API key, or `null` when the
6362 creator is not recorded (legacy, workload-identity-federated, or
6463 system-created keys).
from line 74
7574
7675 RFC 3339 datetime string indicating when the API Key expires, or `null` if it never expires.
7776
77 format: date-time
78
7879 - `name: string`
7980
8081 Name of the API key.
from line 84
8384
8485 Partially redacted hint for the API key.
8586
86 - `principal: object { id, type } or null`
87 - `principal: object or null`
8788
8889 The ID and type of the principal the API key acts as, or `null` if the key is not bound to a principal.
8990
from line 118
117118
118119 For API Keys, this is always `"api_key"`.
119120
120 - `"api_key"`
121 default: api_key
121122
122123 - `workspace_id: string or null`
123124
from line 136
135136
136137 Last ID in the `data` list. Can be used as the `after_id` for the next page.
137138
138### Example
139## Example
139140
140```http
141```bash
141142curl https://api.anthropic.com/v1/organizations/api_keys \
142143 -H 'anthropic-version: 2023-06-01' \
143144 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
144145```
145146
146#### Response
147### Response (200)
147148
148149```json
149150{
No line in this hunk matches that.