Beta

An API for your account

What you do in the app, a program of yours can do with a key: make a project, send an agent a message and read its answer, start a run, read the rows and files your agents produced.

API keys are part of Solo, Team, Scale and Enterprise. The Free plan has none.

The API is new. Its calls are covered by automated tests and were run end to end with real agent turns, but few programs other than our own have used it yet, and a call or its answer may still change.

Start

A key, one call, an answer

  1. In the app, open Account & Security and make a key. Tick what it may do. Its text is shown once: keep it where your program reads its secrets, never in a web page or an app people download.
  2. Send the key with every call, as a Bearer token. A key works for the API only. It is not a sign-in to the app.
  3. Call it with plain HTTP from any language, as shown below.
# What this key is and may do
curl https://runchoreo.com/api/v1/me \
  -H "Authorization: Bearer $API_KEY"

# Send an agent a message. The answer comes at once, with the ids to ask about.
curl -X POST https://runchoreo.com/api/v1/agents/$AGENT_ID/messages \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: orders-2026-11-22" \
  -d '{"text":"Summarise the orders of yesterday"}'
# 202  {"conversationId":"conv-…","messageId":"msg-…","status":"running"}

# Ask until the status is no longer "running".
curl https://runchoreo.com/api/v1/conversations/$CONVERSATION_ID/turns/$MESSAGE_ID \
  -H "Authorization: Bearer $API_KEY"
# 200  {"status":"done","reply":{"text":"…"}}

What a key may do

Four permissions, ticked when you make it

Read

The account and its credit, projects, agents, chats and their messages, runs, the rows of a project's data tables and its files.

Create and change

Make a project. Make an agent, or change its name, model, prompt and status.

Run agents

Send an agent a message, stop a turn, start and cancel a run. This spends credit, so each key has a number of turns it may start per day. Reading the answer needs Read as well.

Delete

Delete a project or an agent. Off unless you tick it. It cannot be undone.

A key can be limited to one project. It then sees that project only, cannot make projects and cannot read the account's usage.

A key reaches the projects of its own account. A project of another account that you are a guest of is not reachable with a key.

No key can make or revoke keys, change billing, manage connections or stored passwords, answer an approval, or change a project's permission settings. A key ends when you revoke it, when its end date passes, and when you change or reset your password.

Sending a message

Nobody is at the screen

In the app, an agent that wants to do something risky shows a card and waits for your click. A program cannot click. So for a message sent with a key no card is shown: the step is refused, and the agent says in its answer what it could not do.

When you make a key you can allow its turns to write files and to run code. Run code comes in two kinds. The careful one covers code our command check finds nothing in; a command it flags is refused, because nobody is there to look at it first. Run any code works as a schedule does: choose it only for a key you keep safe, because whoever holds the key can then run anything in the project's server. Our check still stops the commands it rates dangerous. Sending mail, deleting files, browsing the web, computer mode, phone calls and stored passwords can never be allowed for a key.

These are about what would otherwise ask. A project whose own settings let its agents write files or run code without asking does so for a key's message as it does for yours. And they apply to messages: the steps of a run follow the project's settings alone.

If the text you send comes from somebody else, a customer's mail or a form, say so with "untrusted": true. The agent then treats the turn as one that has read outside content and does less without asking.

How a turn endedMeaning
doneThe agent answered. An answer that says it could not do something is still done.
stoppedThe turn was stopped. The text is what had been written.
failedThe turn broke. Send the message again to retry.
workspace_startingThe account's server was starting. Nothing ran. Try again in a few minutes.
needs_credit, low_balanceThe account could not pay for it. Nothing ran.
lostThe server went away with the turn in it.

Reference

The 25 calls

Every path is under https://runchoreo.com/api/v1. Every call takes the key as a Bearer token and answers JSON.

CallPermissionWhat it does
GET /meanyWhat this key is and may do
GET /usageReadThe credit left, and usage per project and agent
GET /projectsReadThe account's projects
POST /projectsCreateA new project with one agent
GET /projects/:idReadOne project
DELETE /projects/:idDeleteDelete a project
GET /projects/:id/agentsReadA project's agents
POST /projects/:id/agentsCreateA new agent
GET /agents/:idReadOne agent
PATCH /agents/:idCreateChange an agent's name, model, prompt or status
DELETE /agents/:idDeleteDelete an agent
POST /agents/:id/messagesRunSend a message. Answers at once with the ids to ask about
GET /conversations/:id/turns/:messageIdReadIs the turn still running, or how did it end
POST /conversations/:id/stopRunStop the turn that is running
GET /projects/:id/conversationsReadA project's chats
GET /conversations/:id/messagesReadA chat's messages
POST /projects/:id/runsRunStart a run
GET /projects/:id/runsReadA project's runs
GET /runs/:idReadA run with its status and result
POST /runs/:id/cancelRunCancel a run
GET /projects/:id/dataReadA project's databases
GET /projects/:id/data/:databaseId/schemaReadTables and columns
GET /projects/:id/data/:databaseId/tables/:table/rowsReadRows, a page at a time
GET /projects/:id/filesReadThe files in a project's workspace
GET /projects/:id/files/contentReadOne file, as it is

A call that makes something (a project, an agent, a message, a run) takes an Idempotency-Key header. If your connection breaks and you send the call again under the same key, you get the first call's answer and nothing is made twice.

Errors and limits

One shape, a word to branch on

{ "error": { "code": "permission_denied", "message": "This key cannot run agents." } }
codeStatusMeaning
invalid_api_key401The key is missing, wrong, revoked or ended.
permission_denied403The key lacks the permission, or is limited to one project.
plan_limit403The plan's number of projects, agents or runs is reached.
not_found404No such thing, or it is not yours.
invalid_request400A field is missing or wrong. The message says which.
insufficient_credit, low_balance402The account cannot pay for the turn.
rate_limited429Too many requests. The answer says how long to wait.
too_many_turns429The account's keys have as many turns running as its plan allows at once.
daily_limit429The key has started its turns for today (UTC).
workspace_starting429The account's server is starting.
idempotency_key_reused422That Idempotency-Key belongs to another request.
request_in_progress409The first call with that Idempotency-Key is still running.
conflict409It cannot be done in that state. The message says why: an agent that has runs cannot be deleted.
api_off503The API is switched off for the moment.

Each plan has its own pace. Requests a minute and turns at once count all of an account's keys together. Turns a day count each key, and a key can be made with a lower number. A run counts as a turn.

PlanKeysRequests a minuteTurns at onceTurns a day, per key
Solo2301100
Team5602300
Scale2012051,000
EnterpriseNo limit12052,000
  • Asking how a turn ended counts as a request too. Ask every few seconds, and after a 429 wait the time it names in Retry-After.
  • A message is text, up to 100,000 characters.

What it does not do yet

The first version is small on purpose

  • No attachments with a message.
  • No writing of rows or files. Reading only: your agents write, your program reads.
  • No live stream of an answer. You ask how the turn ended.
  • No events sent to a server of yours.
  • One client, in TypeScript. Every call is plain HTTP, from any language.

Make a key and send the first message

Keys are under Account & Security in the app. One takes a minute to make and can be revoked at any time.

Sign in to make a key