Skip to main content
New to Corsair? See API access, authentication, and error handling.

Agent Credentials

claude.check

agentCredentials.claude.check Checks that a stored Claude Code credential can still authenticate. Risk: read
Input Output: object

claude.create

agentCredentials.claude.create Stores a Claude Code credential (type oauth or api_key) that rigs can be given. Risk: write
Input Output

claude.delete

agentCredentials.claude.delete Deletes a stored Claude Code credential. Risk: destructive · Irreversible
Input Output

claude.list

agentCredentials.claude.list Lists stored Claude Code credentials (OAuth tokens or API keys) by name and scope, never values. Risk: read
Input: empty object Output: object[]

codex.create

agentCredentials.codex.create Stores a Codex credential (type oauth or api_key) that rigs can be given. Risk: write
Input Output

codex.delete

agentCredentials.codex.delete Deletes a stored Codex credential. Risk: destructive · Irreversible
Input Output

codex.list

agentCredentials.codex.list Lists stored Codex credentials by name and scope, never values. Risk: read
Input: empty object Output: object[]

pi.delete

agentCredentials.pi.delete Deletes the Pi agent credential. Risk: destructive · Irreversible
Input: empty object Output

pi.get

agentCredentials.pi.get Reads whether a Pi agent credential is configured. Risk: read
Input: empty object Output

pi.set

agentCredentials.pi.set Saves the Pi agent credential. Risk: write
Input
Output

Agent Sessions

get

agentSessions.get Reads one agent session: its rig, agent, status and the messages exchanged so far. Risk: read
Input Output

list

agentSessions.list Lists the organization’s agent-session chats, newest first, with each one’s rig, agent, model and a preview. Risk: read
Input Output

send

agentSessions.send Sends one message to a coding agent (Claude Code or Codex) in a rig and waits for its reply. Without sandbox_id/sandbox_name/sandbox_ref it creates a new rig from repo_url; pass session_id to continue a chat. A failed turn still answers 200 with is_error: true and the agent CLI’s own message. Runs on the rig’s stored agent credential and can take minutes. Risk: destructive · Irreversible
Input Output

Api Keys

create

apiKeys.create Creates an Amika API key (user or organization scope). The value is returned once. Risk: write
Input Output

delete

apiKeys.delete Deletes an Amika API key; anything using it stops working. scope defaults to organization: pass scope user to delete a user key. Risk: destructive · Irreversible
Input Output

list

apiKeys.list Lists the caller’s Amika API keys (names, scopes, last use; values obfuscated). Risk: read
Input Output

Cloud Accounts

create

cloudAccounts.create Connects a cloud provider account with its API key, so rigs can run there. Risk: write
Input Output

delete

cloudAccounts.delete Disconnects a cloud account and deletes its stored API key. Risk: destructive · Irreversible
Input Output

get

cloudAccounts.get Reads one connected cloud account by id or name. Risk: read
Input Output

list

cloudAccounts.list Lists the organization’s connected cloud provider accounts that rigs can run in. Risk: read
Input Output

listSizes

cloudAccounts.listSizes Lists the rig sizes a cloud account offers. Risk: read
Input Output

update

cloudAccounts.update Updates a connected cloud account: its name or API key. Risk: write
Input Output

Command Runs

cancel

commandRuns.cancel Requests cancellation of a queued or running command run. Risk: write
Input Output

create

commandRuns.create Queues one shell command on a rig (run with bash -e -o pipefail) and answers at once. Name an existing rig (rig_id, rig_name or rig_ref) or create one with rig_create; a stopped rig is started. Poll commandRuns.get for status and commandRuns.listEvents for output. An idempotencyKey is made for you when you leave it out. Risk: destructive · Irreversible
Input
Output

get

commandRuns.get Reads one command run: status (queued, in_progress, completed), conclusion (success, failure, timed_out…), exit code, timing and its rig. Risk: read
Input Output

list

commandRuns.list Lists command runs (queued shell commands on rigs), filtered by rig, status or session. Risk: read
Input Output

listEvents

commandRuns.listEvents Reads the output events of a command run after a sequence number: pass the next_sequence of the previous answer as after to read on from there. Risk: read
Input Output

Git User Settings

get

gitUserSettings.get Reads the caller’s git author name and email, which rigs use for commits. Risk: read
Input: empty object Output: object

set

gitUserSettings.set Sets the caller’s git author name and email for commits made in rigs. Risk: write
Input Output

Hosts

checkHealth

hosts.checkHealth Checks whether a host’s daemon is answering. Risk: read
Input Output

create

hosts.create Registers a host for bring-your-own-compute. amika-hostd setup normally does this. Risk: write
Input
Output

delete

hosts.delete Deletes a host and its stored secret; rigs can no longer be created on it. Risk: destructive · Irreversible
Input Output

enrol

hosts.enrol Enrols a tunnel host with its gateway. Risk: write
Input Output

get

hosts.get Reads one of your own hosts: its hostname, runtimes, sizes and status. Risk: read
Input Output

list

hosts.list Lists the organization’s own hosts (machines running amika-hostd) and their runtimes and sizes. Risk: read
Input: empty object Output: object[]

replace

hosts.replace Replaces a host’s registration: hostname, URL and settings. Risk: write
Input
Output

Integrations

disconnect

integrations.disconnect Disconnects an integration provider for the caller and deletes its stored token. Risk: destructive · Irreversible
Input Output

list

integrations.list Lists the caller’s connected integrations (GitHub, Sentry, Linear, Pylon). Risk: read
Input: empty object Output: object[]

Job Runs

cancel

jobRuns.cancel Cancels a pending or running job run. Risk: write
Input Output

get

jobRuns.get Reads one job run: status, timing and the command run of each step. Risk: read
Input Output

list

jobRuns.list Lists job runs, filtered by job, status or trigger kind. Risk: read
Input Output

start

jobRuns.start Starts a run of a job now, outside its schedule. Risk: destructive · Irreversible
Input Output

Jobs

create

jobs.create Creates a job: a cron trigger and 1 to 20 shell steps. Each time the trigger fires, a job run runs the steps in order on one rig. Step 0 names the rig with exactly one of rig_id, rig_name, rig_ref or rig_create; later steps name none and run on step 0’s rig. Set enabled false to create it paused. An idempotencyKey is made for you when you leave it out. Risk: destructive
Input
Output

delete

jobs.delete Deletes a job and all of its job runs. Risk: destructive · Irreversible
Input Output

get

jobs.get Reads one job by id or name. Risk: read
Input Output

list

jobs.list Lists jobs (scheduled commands on rigs) with their trigger, steps and next run. Risk: read
Input Output

update

jobs.update Updates a job: its trigger, steps or description; enabled false pauses it and true resumes it. New steps follow the jobs.create rule: only step 0 names a rig. Risk: destructive
Input
Output

Linear

settings.get

linear.settings.get Reads the organization’s Linear defaults: repository, agent and system prompt. 404 when not set. Risk: read
Input: empty object Output

settings.set

linear.settings.set Sets the organization’s Linear defaults: the repository and agent Linear issues use. Risk: write
Input Output

Repositories

clearImage

repositories.clearImage Clears a repository’s image configuration, so new rigs use the preset image. Risk: destructive
Input Output

get

repositories.get Reads one repository and its rig settings. Risk: read
Input Output

integrations.list

repositories.integrations.list Lists the MCP integrations new rigs of a repository get. Risk: read
Input Output: object[]

integrations.set

repositories.integrations.set Replaces the list of MCP integrations new rigs of a repository get. Risk: write
Input
Output: object[]

list

repositories.list Lists the organization’s repositories and their rig settings (setup script, image, env). Risk: read
Input: empty object Output: object[]

upsert

repositories.upsert Creates or updates a repository by repo_url: its setup script, image and environment for new rigs. Risk: write
Input Output

Rigs

create

rigs.create Creates a rig: a devbox VM with a repo cloned, dependencies set up and agent credentials injected. Runs on Amika Cloud (billed per second), a connected cloud account, or one of your own hosts (host_id). Answers 202 while it boots; poll rigs.get until status is running and setup_status ok (git-failed, setup-failed or sys-setup-failed means setup failed: stop waiting). By default the rig gets a new organization API key as AMIKA_API_KEY (amika_api_key changes that). Risk: destructive
Input
Output

createSshSession

rigs.createSshSession Opens a direct WebSocket SSH session to a rig and returns its connection details. Name the rig by id or name; sandbox_by says which (default: either). Risk: write
Input Output

createTerminalTicket

rigs.createTerminalTicket Mints a single-use ticket for the web terminal of a rig. Name the rig by id or name; sandbox_by says which (default: either). Risk: write
Input Output

delete

rigs.delete Deletes a rig and its disk. Anything not pushed or snapshotted is lost. A bare-metal rig is your own machine: only the rig and its SSH bridge state go, and the files and settings on the machine stay. With forget “true”, Amika only drops its record when the host or provider can’t be reached: the machine is left running, so confirm with the host or provider that it is gone. Name the rig by id or name; by says which (default: either). Risk: destructive · Irreversible
Input Output

get

rigs.get Reads one rig: status, setup status, provider, size, branch, services and timestamps. Name the rig by id or name; by says which (default: either). Risk: read
Input Output

getSlackConversation

rigs.getSlackConversation Reads the Slack thread a Slack-made rig belongs to. Risk: read
Input Output

getSlackMetadata

rigs.getSlackMetadata Lists Slack metadata (team, channel, thread) for the organization’s Slack-made rigs, keyed by rig. Risk: read
Input: empty object Output

list

rigs.list Lists the organization’s rigs (isolated devbox VMs for coding agents) with their status, provider and size. Risk: read
Input Output: object[]

listIntegrations

rigs.listIntegrations Lists the MCP integrations (Sentry, Linear, Pylon) attached to a rig at creation. Name the rig by id or name; sandbox_by says which (default: either). Risk: read
Input Output: object[]

listLifecycleEvents

rigs.listLifecycleEvents Reads the control-plane event feed of a rig: created, setup steps, started, stopped, errors. Name the rig by id or name; sandbox_by says which (default: either). Risk: read
Input Output

services.create

rigs.services.create Exposes a port of a rig as a named service with its own http or https URL (a dev server preview). Risk: write
Input Output

services.createToken

rigs.services.createToken Mints an access token for a service of a rig that runs on your own host, for calling it from a script. Risk: write
Input Output

services.delete

rigs.services.delete Removes a live service from a rig; its URL stops answering. Risk: destructive
Input Output

services.list

rigs.services.list Lists the live services of a rig: name, port and the URL that reaches it. Name the rig by id or name; sandbox_by says which (default: either). Risk: read
Input Output

services.replace

rigs.services.replace Replaces a live service on a rig: its name, port and URL scheme. Risk: write
Input Output

sessions.create

rigs.sessions.create Creates a new, empty agent session on a rig for the named agent (no message is sent). Name the rig by id or name; sandbox_by says which (default: either). Risk: write
Input Output

sessions.get

rigs.sessions.get Reads one agent session on a rig by its session id. Risk: read
Input Output

sessions.getLatest

rigs.sessions.getLatest Reads the most recent agent session on a rig. Name the rig by id or name; sandbox_by says which (default: either). Risk: read
Input Output

sessions.list

rigs.sessions.list Lists the agent sessions on one rig. Name the rig by id or name; sandbox_by says which (default: either). Risk: read
Input Output

sessions.update

rigs.sessions.update Updates an agent session on a rig: its status or metadata. Risk: write
Input Output

start

rigs.start Starts a stopped rig. On a VM rig, files in the home folder are kept and /tmp is cleared by the restart; on a bare-metal rig it only starts the SSH bridge again (the machine never stopped). Billing resumes while it runs. Name the rig by id or name; by says which (default: either). Risk: destructive
Input Output

stop

rigs.stop Stops a running rig so it stops billing for compute. On a VM rig, files in the home folder are kept and /tmp is cleared when it starts again, so keep work in the home folder. On a bare-metal rig only the SSH bridge stops: the machine keeps running and its files, /tmp included, stay as they are. Name the rig by id or name; by says which (default: either). Risk: write
Input Output

Secrets

create

secrets.create Stores a generic secret in the Amika vault (user or organization scope) for injecting into rigs as an env var. Risk: write
Input Output

delete

secrets.delete Deletes a generic secret from the vault. Risk: destructive · Irreversible
Input Output

list

secrets.list Lists the generic secrets the caller can see (names and scopes, never values). Risk: read
Input: empty object Output: object[]

sshPublicKeys.delete

secrets.sshPublicKeys.delete Deletes one of the caller’s SSH public keys. Risk: destructive · Irreversible
Input Output

sshPublicKeys.list

secrets.sshPublicKeys.list Lists the caller’s SSH public keys. Risk: read
Input: empty object Output: object[]

sshPublicKeys.upsert

secrets.sshPublicKeys.upsert Adds or replaces one of the caller’s SSH public keys, used for rig SSH and editor access. Risk: write
Input Output

update

secrets.update Updates a generic secret: its value, name or scope. Risk: write
Input Output

Service Definitions

create

serviceDefinitions.create Adds a service definition to a repository: a named set of ports every rig of that repository exposes. Risk: write
Input
Output

delete

serviceDefinitions.delete Deletes a service definition from a repository. Risk: destructive
Input Output

update

serviceDefinitions.update Updates a repository’s service definition: its name and ports. Risk: write
Input
Output

Services

list

services.list Lists the live services across the organization’s rigs. Risk: read
Input Output

Slack

channelSettings.delete

slack.channelSettings.delete Deletes one Slack channel’s defaults; it falls back to the workspace defaults. Risk: destructive
Input Output

channelSettings.list

slack.channelSettings.list Lists per-channel Slack defaults and the channels the Amika bot has seen recently. Risk: read
Input: empty object Output

channelSettings.set

slack.channelSettings.set Sets the repository, agent and system prompt one Slack channel uses. Risk: write
Input Output

settings.get

slack.settings.get Reads the organization’s Slack defaults: repository, agent and system prompt. 404 when not set. Risk: read
Input: empty object Output

settings.set

slack.settings.set Sets the organization’s Slack defaults: the repository and agent a new Slack thread uses, and an optional system prompt. Risk: write
Input Output

Snapshots

create

snapshots.create Starts capturing a snapshot of a running rig (sandbox_ref names it). mode scrub_and_delete (default) removes injected secrets and deletes the source rig; full keeps both. Answers 202; poll snapshots.get for status. Risk: destructive · Irreversible
Input Output

delete

snapshots.delete Deletes a snapshot by name (default) or id. Rigs can no longer boot from it. Risk: destructive · Irreversible
Input Output

get

snapshots.get Reads one snapshot by name (default) or id: status, source rig and size. Risk: read
Input Output

list

snapshots.list Lists snapshots captured from rigs (reusable base images new rigs can boot from). Risk: read
Input Output

previewScrub

snapshots.previewScrub Previews which injected secrets a scrub_and_delete snapshot of a rig would remove. Risk: read
Input Output