The whole hunk
from line 16, old and new numbered
/
lines
from line 16
1616
1717 - `string`
1818
19 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
19 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
2020
2121 - `"message-batches-2024-09-24"`
2222
from line 100
100100
101101 - `"ce-user-management-2026-07-13"`
102102
103 - `"mid-conversation-output-config-2026-07-01"`
104
105 - `"thinking-binding-controls-2026-08-01"`
106
107 - `"mid-conversation-system-clear-at-2026-08-21"`
108
103109## Body parameters
104110
105111- `access_type: optional "application" or "passthrough" or null`
from line 122
116122
117123 minLength: 1, maxLength: 255
118124
125- `external_user_onboarded_at: optional string`
126
127 A timestamp in RFC 3339 format
128
129 format: date-time
130
119131- `metadata: optional map[string]`
120132
121133 Key-value pairs to merge into the stored metadata. Keys provided overwrite existing values. To remove a key, set its value to an empty string. Keys not provided are left unchanged. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters.
from line 138
126138
127139 minLength: 1, maxLength: 255
128140
129- `relationship: optional "external" or "resold" or "internal" or null`
130
131 How the entity behind a user profile relates to the platform that owns the API key. `external`: an individual end-user of the platform. `resold`: a company the platform resells Claude access to. `internal`: the platform's own usage.
132
133 - `"external"`
134
135 - `"resold"`
136
137 - `"internal"`
138
139141## Returns
140142
141143- `BetaUserProfile object`
from line 192
190192
191193 Platform's own identifier for this user. Not enforced unique.
192194
193 - `name: optional string or null`
195 - `external_user_onboarded_at: optional string or null`
194196
195 Real-world name of the entity this profile represents (company or individual). For a resold-to company (`access_type` `passthrough`, or `relationship` `resold` under the `user-profiles-2026-03-24` header) this is that company's name.
197 A timestamp in RFC 3339 format
196198
197 - `relationship: optional "external" or "resold" or "internal"`
199 format: date-time
198200
199 How the entity behind a user profile relates to the platform that owns the API key. `external`: an individual end-user of the platform. `resold`: a company the platform resells Claude access to. `internal`: the platform's own usage.
201 - `name: optional string or null`
200202
201 - `"external"`
203 Real-world name of the entity this profile represents (company or individual). For a company the platform resells Claude access to (`access_type` `passthrough`) this is that company's name.
202204
203 - `"resold"`
204
205 - `"internal"`
206
207205## Example
208206
209207```bash
from line 231
233231 "updated_at": "2026-03-15T10:00:00Z",
234232 "access_type": "application",
235233 "external_id": "user_12345",
236 "name": "Example User",
237 "relationship": "external"
234 "external_user_onboarded_at": "2024-11-02T08:15:00Z",
235 "name": "Example User"
238236}
239237```
240238