Claude Platform Docs

Workspace

Elenca i workspace
WorkspaceListPage beta().organization().workspaces().list(params = WorkspaceListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces
Crea workspace
BetaWorkspace beta().organization().workspaces().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces
Ottieni workspace
BetaWorkspace beta().organization().workspaces().retrieve(params = WorkspaceRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}
Aggiorna workspace
BetaWorkspace beta().organization().workspaces().update(params = WorkspaceUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}
Archivia workspace
BetaWorkspace beta().organization().workspaces().archive(params = WorkspaceArchiveParams.none(), requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/archive
Models
enum BetaAllowedInferenceGeo
GLOBAL("global")
US("us")
class BetaAnthropicHumanReview { type; }

The Workspace's human review setting.

Type type
One of the following:
DISABLED("disabled")
ENABLED("enabled")
class BetaAnthropicHumanReviewParam { type; }

Whether Anthropic's human review applies to the Workspace's inference data.

Type type
One of the following:
DISABLED("disabled")
ENABLED("enabled")
class BetaDataResidency { allowedInferenceGeos; defaultInferenceGeo; workspaceGeo; }
AllowedInferenceGeos allowedInferenceGeos

Permitted inference geo values. 'unrestricted' means all geos are allowed.

One of the following:
One of the following:
GLOBAL("global")
US("us")
JsonValue
DefaultInferenceGeo defaultInferenceGeo

Default inference geo applied when requests omit the parameter.

One of the following:
GLOBAL("global")
US("us")
WorkspaceGeo workspaceGeo

Geographic region for workspace data storage. Immutable after creation.

class BetaDataResidencyCreateConfig { allowedInferenceGeos; defaultInferenceGeo; workspaceGeo; }
Optional<AllowedInferenceGeos> allowedInferenceGeos

Permitted inference geo values. Defaults to 'unrestricted' if omitted, which allows all geos. Use the string 'unrestricted' to allow all geos, or a list of specific geos.

One of the following:
One of the following:
GLOBAL("global")
US("us")
JsonValue
Optional<DefaultInferenceGeo> defaultInferenceGeo

Default inference geo applied when requests omit the parameter. Defaults to 'global' if omitted. Must be a member of allowed_inference_geos unless allowed_inference_geos is "unrestricted".

One of the following:
GLOBAL("global")
US("us")
Optional<WorkspaceGeo> workspaceGeo

Geographic region for workspace data storage. Immutable after creation. Defaults to 'us' if omitted.

class BetaDataResidencyUpdateConfig { allowedInferenceGeos; defaultInferenceGeo; }
Optional<AllowedInferenceGeos> allowedInferenceGeos

Permitted inference geo values. Use 'unrestricted' to allow all geos, or a list of specific geos.

One of the following:
One of the following:
GLOBAL("global")
US("us")
JsonValue
Optional<DefaultInferenceGeo> defaultInferenceGeo

Default inference geo applied when requests omit the parameter. Must be a member of allowed_inference_geos unless allowed_inference_geos is "unrestricted".

One of the following:
GLOBAL("global")
US("us")
class BetaExternalStorageMember { type = "external"; externalStorageId; }

The organization's External Storage that external_storage_id names.

JsonValue type = "external"
String externalStorageId

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

class BetaExternalStorageMemberParam { type = "external"; externalStorageId; }

The organization's External Storage that external_storage_id names.

JsonValue type = "external"
String externalStorageId

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

class BetaHumanReviewOnWithExternalStorageErrorDetails { errorCode; }
JsonValue errorCode = "human_review_on_with_external_storage"
class BetaInferenceDataPrivacy { humanReview; safeguardsStorage; transcriptsStorage; }
class BetaInferenceDataPrivacyCreateParam { humanReview; safeguardsStorage; transcriptsStorage; }

Where the Workspace's retained inference data and transcript copies go, and whether Anthropic's human review applies. A member cannot be null; omit it instead.

class BetaInferenceDataPrivacyUpdateParam { humanReview; safeguardsStorage; transcriptsStorage; }

Changes to where the Workspace's retained inference data and transcript copies go, and to whether Anthropic's human review applies. An omitted member is unchanged; a member cannot be null.

class BetaInternalStorage { type = "internal"; }

No External Storage for this purpose.

JsonValue type = "internal"
class BetaInternalStorageParam { type = "internal"; }

No External Storage for this purpose.

JsonValue type = "internal"
enum BetaNoBillingWorkspaceRole
WORKSPACE_ADMIN("workspace_admin")
WORKSPACE_DEVELOPER("workspace_developer")
WORKSPACE_RESTRICTED_DEVELOPER("workspace_restricted_developer")
WORKSPACE_USER("workspace_user")
class BetaStorageMember: union
class BetaInternalStorage { type = "internal"; }

No External Storage for this purpose.

JsonValue type = "internal"
class BetaExternalStorageMember { type = "external"; externalStorageId; }

The organization's External Storage that external_storage_id names.

JsonValue type = "external"
String externalStorageId

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

class BetaStorageMemberParam: union
class BetaInternalStorageParam { type = "internal"; }

No External Storage for this purpose.

JsonValue type = "internal"
class BetaExternalStorageMemberParam { type = "external"; externalStorageId; }

The organization's External Storage that external_storage_id names.

JsonValue type = "external"
String externalStorageId

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

class BetaTranscriptsStorageRequiredErrorDetails { errorCode; }
JsonValue errorCode = "transcripts_storage_required"
class BetaWorkspace { type = "workspace"; id; archivedAt; /* 9 more */ }
class BetaWorkspaceChangedConcurrentlyErrorDetails { errorCode; field; }
JsonValue errorCode = "workspace_changed_concurrently"

The request field whose change was refused. Other values may be returned. The value is a name with no data of its own.

enum BetaWorkspaceChangedConcurrentlyField
INFERENCE_DATA_PRIVACY_HUMAN_REVIEW("inference_data_privacy.human_review")
class BetaWorkspaceMember { type = "workspace_member"; userId; workspaceId; workspaceRole; }
JsonValue type = "workspace_member"

Object type.

For Workspace Members, this is always "workspace_member".

String userId

ID of the User.

String workspaceId

ID of the Workspace.

BetaWorkspaceRole workspaceRole

Role of the Workspace Member.

One of the following:
WORKSPACE_ADMIN("workspace_admin")
WORKSPACE_BILLING("workspace_billing")
WORKSPACE_DEVELOPER("workspace_developer")
WORKSPACE_RESTRICTED_DEVELOPER("workspace_restricted_developer")
WORKSPACE_USER("workspace_user")
enum BetaWorkspaceRole
WORKSPACE_ADMIN("workspace_admin")
WORKSPACE_BILLING("workspace_billing")
WORKSPACE_DEVELOPER("workspace_developer")
WORKSPACE_RESTRICTED_DEVELOPER("workspace_restricted_developer")
WORKSPACE_USER("workspace_user")
Errors
class BetaHumanReviewOnWithExternalStorageException extends BadRequestException { details; }⁠HTTP status 400

The request would leave the Workspace with inference_data_privacy.safeguards_storage set to External Storage and inference_data_privacy.human_review enabled. Anthropic doesn't offer human review of data in a customer's own storage. Set human_review to disabled, or safeguards_storage to internal.

JsonValue errorCode = "human_review_on_with_external_storage"
class BetaTranscriptsStorageRequiredException extends BadRequestException { details; }⁠HTTP status 400

In an organization managed through AWS or Google Cloud, the request would leave the Workspace with inference_data_privacy.human_review disabled and inference_data_privacy.transcripts_storage not set to External Storage. With human review disabled, the organization reviews its own flagged requests, and it receives them only in that storage.

JsonValue errorCode = "transcripts_storage_required"
class BetaWorkspaceChangedConcurrentlyException extends ConflictException { details; }⁠HTTP status 409

Another request changed the Workspace, so this request left the setting named in field as it is. The error's message says which of this request's other changes are in place. Read the Workspace and send the request again if you still want the change.

JsonValue errorCode = "workspace_changed_concurrently"

The request field whose change was refused. Other values may be returned. The value is a name with no data of its own.

Elenca i limiti di velocità del workspace
RateLimitListPage beta().organization().workspaces().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

Elenca i "rate limit" (limiti di velocità) di un workspace.

Imposta i limiti di velocità del workspace
BetaWorkspaceRateLimit beta().organization().workspaces().rateLimits().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

Imposta o rimuovi gli override dei limiti di velocità per un gruppo di limiti di velocità in un workspace.

WorkspaceMembri

Elenca i membri del workspace
MemberListPage beta().organization().workspaces().members().list(params = MemberListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/members
Crea membro del workspace
BetaWorkspaceMember beta().organization().workspaces().members().add(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/members
Ottieni membro del workspace
BetaWorkspaceMember beta().organization().workspaces().members().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
Aggiorna membro del workspace
BetaWorkspaceMember beta().organization().workspaces().members().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
Elimina membro del workspace
MemberRemoveResponse beta().organization().workspaces().members().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}
Elenca gli account di servizio membri del workspace
ServiceAccountListPage beta().organization().workspaces().serviceAccounts().list(params = ServiceAccountListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

Richiede un token di accesso OAuth con lo scope org:admin, ottenuto da ant auth login --scope org:admin o da una regola di workload identity federation; le chiavi Admin API non sono accettate. Consulta Gestire WIF con l'Admin API.

Crea account di servizio membro del workspace
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().add(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

Richiede un token di accesso OAuth con lo scope org:admin, ottenuto da ant auth login --scope org:admin o da una regola di workload identity federation; le chiavi API Admin non sono accettate. Consulta Gestire WIF con l'Admin API.

Ottieni account di servizio membro del workspace
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Richiede un token di accesso OAuth con lo scope org:admin, ottenuto da ant auth login --scope org:admin o da una regola di workload identity federation; le chiavi API Admin non sono accettate. Consulta Gestire WIF con l'Admin API.

Aggiorna account di servizio membro del workspace
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Richiede un token di accesso OAuth con lo scope org:admin, ottenuto da ant auth login --scope org:admin o da una regola di workload identity federation; le chiavi API Admin non sono accettate. Consulta Gestire WIF con l'Admin API.

Elimina account di servizio membro del workspace
ServiceAccountRemoveResponse beta().organization().workspaces().serviceAccounts().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Richiede un token di accesso OAuth con lo scope org:admin, ottenuto da ant auth login --scope org:admin o da una regola di workload identity federation; le chiavi API Admin non sono accettate. Consulta Gestire WIF con l'Admin API.