Claude Platform Docs

Espacios de trabajo

Listar espacios de trabajo
WorkspaceListPage beta().organization().workspaces().list(params = WorkspaceListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces
Crear espacio de trabajo
BetaWorkspace beta().organization().workspaces().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces
Obtener espacio de trabajo
BetaWorkspace beta().organization().workspaces().retrieve(params = WorkspaceRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}
Actualizar espacio de trabajo
BetaWorkspace beta().organization().workspaces().update(params = WorkspaceUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}
Archivar espacio de trabajo
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.

Espacios de trabajoLímites de velocidad

Listar límites de velocidad del espacio de trabajo
RateLimitListPage beta().organization().workspaces().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

Lista los límites de velocidad de un espacio de trabajo.

Establecer límites de velocidad del espacio de trabajo
BetaWorkspaceRateLimit beta().organization().workspaces().rateLimits().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

Establece o borra las anulaciones de límites de velocidad para un grupo de límites de velocidad en un espacio de trabajo.

Espacios de trabajoMiembros

Listar miembros del espacio de trabajo
MemberListPage beta().organization().workspaces().members().list(params = MemberListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/members
Crear miembro del espacio de trabajo
BetaWorkspaceMember beta().organization().workspaces().members().add(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/members
Obtener miembro del espacio de trabajo
BetaWorkspaceMember beta().organization().workspaces().members().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
Actualizar miembro del espacio de trabajo
BetaWorkspaceMember beta().organization().workspaces().members().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
Eliminar miembro del espacio de trabajo
MemberRemoveResponse beta().organization().workspaces().members().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

Espacios de trabajoCuentas de servicio

Listar cuentas de servicio miembros del espacio de trabajo
ServiceAccountListPage beta().organization().workspaces().serviceAccounts().list(params = ServiceAccountListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

Requiere un token de acceso OAuth con el alcance org:admin, obtenido de ant auth login --scope org:admin o de una regla de federación de identidades de carga de trabajo; no se aceptan claves de Admin API. Consulta Administrar WIF con la Admin API.

Crear cuenta de servicio miembro del espacio de trabajo
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().add(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

Requiere un token de acceso OAuth con el alcance org:admin, obtenido de ant auth login --scope org:admin o de una regla de federación de identidades de carga de trabajo; no se aceptan claves de Admin API. Consulta Administrar WIF con la Admin API.

Obtener cuenta de servicio miembro del espacio de trabajo
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Requiere un token de acceso OAuth con el alcance org:admin, obtenido de ant auth login --scope org:admin o de una regla de federación de identidades de carga de trabajo; no se aceptan claves de Admin API. Consulta Administrar WIF con la Admin API.

Actualizar cuenta de servicio miembro del espacio de trabajo
BetaServiceAccountWorkspaceMember beta().organization().workspaces().serviceAccounts().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Requiere un token de acceso OAuth con el alcance org:admin, obtenido de ant auth login --scope org:admin o de una regla de federación de identidades de carga de trabajo; no se aceptan claves de Admin API. Consulta Administrar WIF con la Admin API.

Eliminar cuenta de servicio miembro del espacio de trabajo
ServiceAccountRemoveResponse beta().organization().workspaces().serviceAccounts().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

Requiere un token de acceso OAuth con el alcance org:admin, obtenido de ant auth login --scope org:admin o de una regla de federación de identidades de carga de trabajo; no se aceptan claves de API de administrador. Consulta Administrar WIF con la Admin API.