Beta
Models
BetaModels
BetaMessages
Create a Message
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
BetaMessagesBatches
Retrieve a Message Batch
This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the results_url field in the response.
List Message Batches
List all Message Batches within a Workspace. Most recently created batches are returned first.
Cancel a Message Batch
Batches may be canceled any time before processing ends. Once cancellation is initiated, the batch enters a canceling state, at which time the system may complete any in-progress, non-interruptible requests before finalizing cancellation.
Delete a Message Batch
Retrieve Message Batch results
Streams the results of a Message Batch as a .jsonl file.
BetaAgents
Create Agent
List Agents
Get Agent
Update Agent
Archive Agent
BetaAgentsVersions
List Agent Versions
BetaEnvironments
Update Environment
Update an existing environment's configuration.
Delete Environment
Delete an environment by ID. Returns a confirmation of the deletion.
Archive Environment
Archive an environment by ID. Archived environments cannot be used to create new sessions.
BetaEnvironmentsWork
Get Work Item
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Poll for Work
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Acknowledge Work
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Record Heartbeat
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Stop Work
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
List Work Items
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Update Work Item
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Get Queue Statistics
Get statistics about the work queue for an environment.
BetaSessions
Create Session
List Sessions
Get Session
Update Session
Delete Session
Archive Session
BetaSessionsEvents
List Events
Send Events
Stream Events
BetaSessionsResources
Add Session Resource
List Session Resources
Get Session Resource
Update Session Resource
Delete Session Resource
BetaSessionsThreads
List Session Threads
Get Session Thread
Archive Session Thread
BetaSessionsThreadsEvents
List Session Thread Events
Stream Session Thread Events
BetaDeployments
Create Deployment
List Deployments
Get Deployment
Update Deployment
Archive Deployment
Run Deployment Now
Pause Deployment
Unpause Deployment
BetaDeployment Runs
List Deployment Runs
Get Deployment Run
BetaVaults
Create Vault
List Vaults
Get Vault
Update Vault
Delete Vault
Archive Vault
BetaVaultsCredentials
Create Credential
List Credentials
Get Credential
Update Credential
Delete Credential
Archive Credential
Validate Credential
BetaMemory Stores
Create a memory store
List memory stores
Retrieve a memory store
Update a memory store
Delete a memory store
Archive a memory store
BetaMemory StoresMemories
Create a memory
List memories
Retrieve a memory
Update a memory
Delete a memory
BetaMemory StoresMemory Versions
List memory versions
Retrieve a memory version
Redact a memory version
BetaFiles
Upload File
List Files
Download File
Get File Metadata
Delete File
BetaSkills
Create Skill
List Skills
Get Skill
Delete Skill
BetaSkillsVersions
Create Skill Version
List Skill Versions
Download Skill Version Content
Download a skill version's content as a zip archive.
Get Skill Version
Delete Skill Version
BetaUser Profiles
Create User Profile
List User Profiles
Get User Profile
Update User Profile
Create Enrollment URL
BetaDreams
Create a Dream
List Dreams
Get a Dream
Cancel a Dream
Archive a Dream
BetaTunnels
Create Tunnel
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Get Tunnel
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
List Tunnels
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Archive Tunnel
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Reveal Tunnel Token
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Rotate Tunnel Token
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
BetaTunnelsCertificates
Create Tunnel Certificate
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Get Tunnel Certificate
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
List Tunnel Certificates
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
Archive Tunnel Certificate
The Tunnels API is in research preview. It requires the anthropic-beta: mcp-tunnels-2026-06-22 header and may change without a deprecation period. It supersedes the Admin API endpoints at /v1/organizations/tunnels, which remain available during a migration window.
BetaOrganization
Get Current Organization
Retrieve information about the organization associated with the authenticated API key.
BetaOrganizationAPI Keys
List API Keys
Retrieve API Key (Admin API)
Retrieve information about a single API key in your organization, looked up by its ID. This Admin API endpoint requires an Admin API key, is intended for programmatic key management, and never returns the key's secret value. To view or create your own API keys, go to API keys in the Claude Console.
Update API Key
BetaOrganizationExternal Keys
Create External Key
Create an external key config owned by the caller's organization.
List External Keys
List external key configs in the caller's organization.
Get External Key
Retrieve a single external key config in the caller's organization by ID.
Update External Key
Partially update an external key config. Omitted fields are left unchanged.
Delete External Key
Delete an external key config.
Validate External Key
Validate an external key config against the customer's KMS.
BetaOrganizationFederationIssuers
Create Federation Issuer
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Issuers
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Federation Issuer
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Federation Issuer
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Federation Issuer
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationFederationRules
Create Federation Rule
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Rules
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Federation Rule
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Federation Rule
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Federation Rule
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationFederationRulesWorkspaces
Add Federation Rule Workspace
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Rule Workspaces
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Remove Federation Rule Workspace
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationInvites
BetaOrganizationService Accounts
Create Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Service Accounts
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationService AccountsWorkspaces
Add Workspace To Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Workspaces For Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Remove Workspace From Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationUsers
BetaOrganizationWorkspaces
List Workspaces
Create Workspace
Get Workspace
Update Workspace
Archive Workspace
BetaOrganizationWorkspacesRate Limits
List Workspace Rate Limits
List rate-limit overrides configured for a workspace.
BetaOrganizationWorkspacesMembers
List Workspace Members
Create Workspace Member
Get Workspace Member
Update Workspace Member
Delete Workspace Member
BetaOrganizationWorkspacesService Accounts
List Service Account Workspace Members
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Create Service Account Workspace Member
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Service Account Workspace Member
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Service Account Workspace Member
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Delete Service Account Workspace Member
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
BetaOrganizationRate Limits
List Organization Rate Limits
List Messages API rate limits for your organization.
BetaOrganizationCompliance Settings
Get Compliance Settings
Retrieve your organization's Compliance Settings.
Update Compliance Settings
Update your organization's Compliance Settings.
BetaOrganizationUsage Report
Get Messages Usage Report
Get Claude Code Usage Report
Retrieve daily aggregated usage metrics for Claude Code users. Enables organizations to analyze developer productivity and build custom dashboards.
BetaOrganizationCost Report
Get Cost Report
BetaOrganizationMCP Tunnels
List Tunnels
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Get Tunnel
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Archive Tunnel
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Reveal Tunnel Token
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Rotate Tunnel Token
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
BetaOrganizationMCP TunnelsTunnel Certificates
Create Tunnel Certificate
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
List Tunnel Certificates
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Get Tunnel Certificate
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
Archive Tunnel Certificate
Deprecated. This Admin API endpoint is superseded by /v1/tunnels on the Claude API and will be removed after a migration window. New integrations should use /v1/tunnels with the anthropic-beta: mcp-tunnels-2026-06-22 header and a WIF token carrying the workspace:manage_tunnels scope. Existing integrations continue to work with the mcp-tunnels-2026-05-19 header and org:manage_tunnels scope during the migration window.
BetaOrganizationAnalytics
Get Activity Summaries
Get organization-wide activity summaries for a date range.
BetaOrganizationAnalyticsUsage
Get Token Usage Over Time
Get token usage over time across a date range.
Get Per-User Token Usage
Get per-user token usage across a date range.
BetaOrganizationAnalyticsCost
Get Cost Over Time
Get cost in USD over time across a date range.
Get Per-User Cost
Get per-user cost in USD across a date range.
BetaOrganizationAnalyticsUsers
List User Activity
Get per-user activity for a given day, with cursor-based pagination.
BetaOrganizationAnalyticsSkills
Get Skill Usage
Get per-skill usage for a given day, with cursor-based pagination.
BetaOrganizationAnalyticsConnectors
Get Connector Usage
Get per-connector usage for a given day, with cursor-based pagination.
BetaOrganizationAnalyticsChat Projects
Get Chat Project Usage
Get per-project activity for a given day, with cursor-based pagination.
BetaOrganizationAnalyticsPlugins
Get Plugin Usage
Get per-plugin install + invocation usage for a given day, with pagination.
BetaOrganizationAnalyticsArtifacts
Get Artifact Activity
Get artifact-creation activity for a given day, broken out by MIME type.
BetaOrganizationSpend Limits
Delete Spend Limit
Delete a per-user spend limit override.
List Effective Spend Limits
List each member's effective spend limit and period-to-date spend.
BetaOrganizationSpend LimitsIncrease Requests
List Spend Limit Increase Requests
List spend limit increase requests, most recent first.
Get Spend Limit Increase Request
Retrieve a spend limit increase request.
Approve Spend Limit Increase Request
Approve a pending spend limit increase request.
Deny Spend Limit Increase Request
Deny a pending spend limit increase request.
BetaOrganizationRBAC Groups
Create RBAC Group
Create an RBAC Group in the Claude Enterprise tenant. Groups created via the API have source type "direct".
Update RBAC Group
Update an RBAC Group's name. Groups provisioned by an identity provider (source type "scim") cannot be modified via the API while an organization in the tenant uses SCIM provisioning.
Delete RBAC Group
Delete an RBAC Group. Groups provisioned by an identity provider (source type "scim") cannot be deleted via the API while an organization in the tenant uses SCIM provisioning.
BetaOrganizationRBAC GroupsMembers
List RBAC Group Members
List members of an RBAC Group.
Add RBAC Group Member
Add a User to an RBAC Group. Membership of groups provisioned by an identity provider (source type "scim") cannot be modified via the API while an organization in the tenant uses SCIM provisioning.
Remove RBAC Group Member
Remove a User from an RBAC Group. Membership of groups provisioned by an identity provider (source type "scim") cannot be modified via the API while an organization in the tenant uses SCIM provisioning.
BetaOrganizationRBAC Roles
BetaOrganizationRBAC RolesPermissions
List RBAC Role Permissions
List the permissions an RBAC Role grants.