Beta
Models
BetaModels
BetaMessages
Create a Message
$ ant beta:messages createSend a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
Count tokens in a Message
$ ant beta:messages count-tokensCount the number of tokens in a Message.
BetaMessagesBatches
Create a Message Batch
$ ant beta:messages:batches createSend a batch of Message creation requests.
Retrieve a Message Batch
$ ant beta:messages:batches retrieveThis 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
$ ant beta:messages:batches listList all Message Batches within a Workspace. Most recently created batches are returned first.
Cancel a Message Batch
$ ant beta:messages:batches cancelBatches 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
$ ant beta:messages:batches deleteRetrieve Message Batch results
$ ant beta:messages:batches resultsStreams the results of a Message Batch as a .jsonl file.
BetaAgents
BetaAgentsVersions
BetaEnvironments
Create Environment
$ ant beta:environments createCreate a new environment with the specified configuration.
List Environments
$ ant beta:environments listList environments with pagination support.
Get Environment
$ ant beta:environments retrieveRetrieve a specific environment by ID.
Update Environment
$ ant beta:environments updateUpdate an existing environment's configuration.
Delete Environment
$ ant beta:environments deleteDelete an environment by ID. Returns a confirmation of the deletion.
Archive Environment
$ ant beta:environments archiveArchive an environment by ID. Archived environments cannot be used to create new sessions.
BetaEnvironmentsWork
Get Work Item
$ ant beta:environments:work retrieveNote: 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
$ ant beta:environments:work pollNote: 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
$ ant beta:environments:work ackNote: 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
$ ant beta:environments:work heartbeatNote: 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
$ ant beta:environments:work stopNote: 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
$ ant beta:environments:work listNote: 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
$ ant beta:environments:work updateNote: 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
$ ant beta:environments:work statsGet statistics about the work queue for an environment.
BetaSessions
BetaSessionsEvents
BetaSessionsResources
Get Session Resource
$ ant beta:sessions:resources retrieveUpdate Session Resource
$ ant beta:sessions:resources updateDelete Session Resource
$ ant beta:sessions:resources deleteBetaSessionsThreads
Get Session Thread
$ ant beta:sessions:threads retrieveArchive Session Thread
$ ant beta:sessions:threads archiveBetaSessionsThreadsEvents
List Session Thread Events
$ ant beta:sessions:threads:events listStream Session Thread Events
$ ant beta:sessions:threads:events streamBetaDeployments
BetaDeployment Runs
BetaVaults
BetaVaultsCredentials
Get Credential
$ ant beta:vaults:credentials retrieveUpdate Credential
$ ant beta:vaults:credentials updateDelete Credential
$ ant beta:vaults:credentials deleteArchive Credential
$ ant beta:vaults:credentials archiveValidate Credential
$ ant beta:vaults:credentials mcp-oauth-validateBetaMemory Stores
Archive a memory store
$ ant beta:memory-stores archiveBetaMemory StoresMemories
Create a memory
$ ant beta:memory-stores:memories createRetrieve a memory
$ ant beta:memory-stores:memories retrieveUpdate a memory
$ ant beta:memory-stores:memories updateDelete a memory
$ ant beta:memory-stores:memories deleteBetaMemory StoresMemory Versions
List memory versions
$ ant beta:memory-stores:memory-versions listRetrieve a memory version
$ ant beta:memory-stores:memory-versions retrieveRedact a memory version
$ ant beta:memory-stores:memory-versions redactBetaFiles
BetaSkills
BetaSkillsVersions
Download Skill Version Content
$ ant beta:skills:versions downloadDownload a skill version's content as a zip archive.
BetaUser Profiles
Create Enrollment URL
$ ant beta:user-profiles create-enrollment-urlBetaDreams
BetaTunnels
Create Tunnel
$ ant beta:tunnels createThe 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
$ ant beta:tunnels retrieveThe 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
$ ant beta:tunnels listThe 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
$ ant beta:tunnels archiveThe 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
$ ant beta:tunnels reveal-tokenThe 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
$ ant beta:tunnels rotate-tokenThe 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
$ ant beta:tunnels:certificates createThe 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
$ ant beta:tunnels:certificates retrieveThe 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
$ ant beta:tunnels:certificates listThe 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
$ ant beta:tunnels:certificates archiveThe 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
$ ant beta:organization retrieveRetrieve information about the organization associated with the authenticated API key.
BetaOrganizationAPI Keys
Retrieve API Key (Admin API)
$ ant beta:organization:api-keys retrieveRetrieve 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.
BetaOrganizationExternal Keys
Create External Key
$ ant beta:organization:external-keys createCreate an external key config owned by the caller's organization.
List External Keys
$ ant beta:organization:external-keys listList external key configs in the caller's organization.
Get External Key
$ ant beta:organization:external-keys retrieveRetrieve a single external key config in the caller's organization by ID.
Update External Key
$ ant beta:organization:external-keys updatePartially update an external key config. Omitted fields are left unchanged.
Delete External Key
$ ant beta:organization:external-keys deleteDelete an external key config.
Validate External Key
$ ant beta:organization:external-keys validateValidate an external key config against the customer's KMS.
BetaOrganizationFederationIssuers
Create Federation Issuer
$ ant beta:organization:federation:issuers createRequires 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
$ ant beta:organization:federation:issuers listRequires 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
$ ant beta:organization:federation:issuers retrieveRequires 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
$ ant beta:organization:federation:issuers updateRequires 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
$ ant beta:organization:federation:issuers archiveRequires 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
$ ant beta:organization:federation:rules createRequires 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
$ ant beta:organization:federation:rules listRequires 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
$ ant beta:organization:federation:rules retrieveRequires 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
$ ant beta:organization:federation:rules updateRequires 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
$ ant beta:organization:federation:rules archiveRequires 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
$ ant beta:organization:federation:rules:workspaces addRequires 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
$ ant beta:organization:federation:rules:workspaces listRequires 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
$ ant beta:organization:federation:rules:workspaces removeRequires 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
Create Invite
$ ant beta:organization:invites createInvite a user to join the organization by email.
List Invites
$ ant beta:organization:invites listList the organization's invites.
Get Invite
$ ant beta:organization:invites retrieveRetrieve an invite by ID.
Delete Invite
$ ant beta:organization:invites deleteDelete a pending invite.
BetaOrganizationService Accounts
Create Service Account
$ ant beta:organization:service-accounts createRequires 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
$ ant beta:organization:service-accounts listRequires 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
$ ant beta:organization:service-accounts retrieveRequires 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
$ ant beta:organization:service-accounts updateRequires 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
$ ant beta:organization:service-accounts archiveRequires 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
$ ant beta:organization:service-accounts:workspaces addRequires 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
$ ant beta:organization:service-accounts:workspaces listRequires 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
$ ant beta:organization:service-accounts:workspaces removeRequires 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
List Users
$ ant beta:organization:users listList the organization's members.
Get User
$ ant beta:organization:users retrieveRetrieve a member of the organization by user ID.
Update User
$ ant beta:organization:users updateUpdate a member's organization role.
Remove User
$ ant beta:organization:users removeRemove a member from the organization.
BetaOrganizationWorkspaces
Get Workspace
$ ant beta:organization:workspaces retrieveUpdate Workspace
$ ant beta:organization:workspaces updateArchive Workspace
$ ant beta:organization:workspaces archiveBetaOrganizationWorkspacesRate Limits
List Workspace Rate Limits
$ ant beta:organization:workspaces:rate-limits listList rate-limit overrides configured for a workspace.
BetaOrganizationWorkspacesMembers
List Workspace Members
$ ant beta:organization:workspaces:members listCreate Workspace Member
$ ant beta:organization:workspaces:members addGet Workspace Member
$ ant beta:organization:workspaces:members retrieveUpdate Workspace Member
$ ant beta:organization:workspaces:members updateDelete Workspace Member
$ ant beta:organization:workspaces:members removeBetaOrganizationWorkspacesService Accounts
List Service Account Workspace Members
$ ant beta:organization:workspaces:service-accounts listRequires 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
$ ant beta:organization:workspaces:service-accounts addRequires 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
$ ant beta:organization:workspaces:service-accounts retrieveRequires 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
$ ant beta:organization:workspaces:service-accounts updateRequires 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
$ ant beta:organization:workspaces:service-accounts removeRequires 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
$ ant beta:organization:rate-limits listList Messages API rate limits for your organization.
BetaOrganizationCompliance Settings
Get Compliance Settings
$ ant beta:organization:compliance-settings retrieveRetrieve your organization's Compliance Settings.
Update Compliance Settings
$ ant beta:organization:compliance-settings updateUpdate your organization's Compliance Settings.