The whole hunk
from line 13, old and new numbered
/
lines
from line 13
1313
1414- `limit: optional number`
1515
16 Query parameter for limit
16 The maximum number of user profiles to return, from 1 to 100. Defaults to 20.
1717
1818 format: int32
1919
2020- `order: optional "asc" or "desc"`
2121
22 Query parameter for order
22 The sort direction, applied to the field that `order_by` selects. Defaults to `desc`.
2323
2424 - `"asc"`
2525
26 Oldest first when `order_by` is `created_at`, or names in ascending order when `order_by` is `name`.
27
2628 - `"desc"`
2729
30 Newest first when `order_by` is `created_at`, or names in descending order when `order_by` is `name`. This is the default.
31
2832- `order_by: optional "created_at" or "name"`
2933
30 Query parameter for order_by
34 The field to sort user profiles by, in the direction that `order` sets. Defaults to `created_at`.
3135
3236 - `"created_at"`
3337
38 Sort by when each user profile was created. This is the default.
39
3440 - `"name"`
3541
42 Sort by `name`, ignoring the case of ASCII letters. Profiles without a name come last in either direction.
43
3644- `page: optional string`
3745
38 Query parameter for page
46 The cursor for the page to return, taken from `next_page` in a previous response.
3947
48 Leave it out to get the first page.
49
4050## Headers
4151
4252- `"anthropic-beta": optional array of AnthropicBeta`
from line 151
141151
142152- `"anthropic-workspace-id": optional string`
143153
154 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
155
156 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
157
144158## Returns
145159
146160- `data: array of BetaUserProfile`
from line 205
191205
192206 - `"application"`
193207
208 The user profile represents an individual end-user of a product that the platform builds on the API. New profiles get this value by default.
209
194210 - `"passthrough"`
195211
212 The user profile represents a company that the platform resells Claude access to.
213
196214 - `external_id: optional string or null`
197215
198216 Platform's own identifier for this user. Not enforced unique. Present under the `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers; under `user-profiles-2026-09-04` the value is `external_user_details.reference_id`.
from line 225
207225
208226 - `"active"`
209227
228 The platform has neither restricted nor barred the account of the entity that the user profile represents.
229
210230 - `"suspended"`
211231
232 The platform has restricted the account of the entity that the user profile represents and may restore it.
233
212234 - `"blocked"`
235
236 The platform has barred the account of the entity that the user profile represents.
213237
214238 - `country: string or null`
215239