from line 383
383383
384384 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
385385
386### Errors
387
388Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
389
390Each code below is the value of `error.details.error_code` in the response body.
391
392- `external_key_validation_failed` (HTTP status 400)
393
394 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
395
396- `external_key_validation_timed_out` (HTTP status 400)
397
398 Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
399
400- `key_profile_mismatch` (HTTP status 400)
401
402 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
403
404- `user_profile_not_found` (HTTP status 400)
405
406 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
407
408- `workspace_policy_violation` (HTTP status 400)
409
410 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
411
412- `sandbox_egress_restricted` (HTTP status 403)
413
414 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
415
416- `external_key_changed` (HTTP status 409)
417
418 The external key changed while the request was validating it. Send the request again.
419
386420### Example
387421
388422```bash
from line 792
758792
759793 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
760794
795### Errors
796
797Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
798
799Each code below is the value of `error.details.error_code` in the response body.
800
801- `external_key_validation_failed` (HTTP status 400)
802
803 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
804
805- `external_key_validation_timed_out` (HTTP status 400)
806
807 Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
808
809- `key_profile_mismatch` (HTTP status 400)
810
811 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
812
813- `user_profile_not_found` (HTTP status 400)
814
815 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
816
817- `workspace_policy_violation` (HTTP status 400)
818
819 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
820
821- `sandbox_egress_restricted` (HTTP status 403)
822
823 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
824
825- `external_key_changed` (HTTP status 409)
826
827 The external key changed while the request was validating it. Send the request again.
828
761829### Example
762830
763831```bash
from line 988
920988
921989 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
922990
991### Errors
992
993Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
994
995Each code below is the value of `error.details.error_code` in the response body.
996
997- `sandbox_egress_restricted` (HTTP status 403)
998
999 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1000
9231001### Example
9241002
9251003```bash
from line 1126
10481126
10491127- `KeyProfileMismatchErrorDetails object`
10501128
1051 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
1052
10531129 - `error_code: "key_profile_mismatch"`
10541130
10551131### No Billing Workspace Role
from line 1278
12021278
12031279- `WorkspaceMemberLimitExceededErrorDetails object`
12041280
1205 The workspace has reached the member limit that Anthropic set for it.
1206
12071281 - `error_code: "workspace_member_limit_exceeded"`
12081282
12091283### Workspace Policy Field
from line 1288
12141288
12151289- `WorkspacePolicyViolationErrorDetails object`
12161290
1217 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
1218
12191291 - `error_code: "workspace_policy_violation"`
12201292
12211293 - `field: WorkspacePolicyField`
from line 1308
12361308
12371309 - `"workspace_user"`
12381310
1311## Errors
1312
1313### key_profile_mismatch
1314
1315HTTP status 400
1316
1317- `"key_profile_mismatch"`
1318
1319 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
1320
1321 - `details: KeyProfileMismatchErrorDetails`
1322
1323 - `error_code: "key_profile_mismatch"`
1324
1325### workspace_member_limit_exceeded
1326
1327HTTP status 400
1328
1329- `"workspace_member_limit_exceeded"`
1330
1331 The workspace has reached the member limit that Anthropic set for it.
1332
1333 - `details: WorkspaceMemberLimitExceededErrorDetails`
1334
1335 - `error_code: "workspace_member_limit_exceeded"`
1336
1337### workspace_policy_violation
1338
1339HTTP status 400
1340
1341- `"workspace_policy_violation"`
1342
1343 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
1344
1345 - `details: WorkspacePolicyViolationErrorDetails`
1346
1347 - `error_code: "workspace_policy_violation"`
1348
1349 - `field: WorkspacePolicyField`
1350
1351 The request field the broken rule applies to.
1352
12391353## Workspaces › Rate Limits
12401354
12411355### List Workspace Rate Limits
from line 1811
16971811
16981812 ID of the Workspace this entry applies to.
16991813
1814#### Errors
1815
1816Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1817
1818Each code below is the value of `error.details.error_code` in the response body.
1819
1820- `sandbox_egress_restricted` (HTTP status 403)
1821
1822 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1823
17001824#### Example
17011825
17021826```bash
from line 2050
19262050
19272051 - `"workspace_user"`
19282052
2053#### Errors
2054
2055Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2056
2057Each code below is the value of `error.details.error_code` in the response body.
2058
2059- `workspace_member_limit_exceeded` (HTTP status 400)
2060
2061 The workspace has reached the member limit that Anthropic set for it.
2062
2063- `sandbox_egress_restricted` (HTTP status 403)
2064
2065 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2066
19292067#### Example
19302068
19312069```bash
from line 2239
21012239
21022240 - `"workspace_user"`
21032241
2242#### Errors
2243
2244Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2245
2246Each code below is the value of `error.details.error_code` in the response body.
2247
2248- `workspace_member_limit_exceeded` (HTTP status 400)
2249
2250 The workspace has reached the member limit that Anthropic set for it.
2251
2252- `sandbox_egress_restricted` (HTTP status 403)
2253
2254 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2255
21042256#### Example
21052257
21062258```bash
from line 2318
21662318
21672319 ID of the Workspace.
21682320
2321#### Errors
2322
2323Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2324
2325Each code below is the value of `error.details.error_code` in the response body.
2326
2327- `sandbox_egress_restricted` (HTTP status 403)
2328
2329 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2330
21692331#### Example
21702332
21712333```bash
from line 2545
23832545
23842546 - `"workspace_user"`
23852547
2548#### Errors
2549
2550Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2551
2552Each code below is the value of `error.details.error_code` in the response body.
2553
2554- `sandbox_egress_restricted` (HTTP status 403)
2555
2556 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2557
23862558#### Example
23872559
23882560```bash
from line 2758
25862758
25872759 - `"workspace_user"`
25882760
2761#### Errors
2762
2763Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2764
2765Each code below is the value of `error.details.error_code` in the response body.
2766
2767- `sandbox_egress_restricted` (HTTP status 403)
2768
2769 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2770
25892771#### Example
25902772
25912773```bash
from line 2838
26562838- `workspace_id: string`
26572839
26582840 Tagged workspace ID (`wrkspc_...`) named in the delete request.
2841
2842#### Errors
2843
2844Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2845
2846Each code below is the value of `error.details.error_code` in the response body.
2847
2848- `sandbox_egress_restricted` (HTTP status 403)
2849
2850 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
26592851
26602852#### Example
26612853
No line in this hunk matches that.