Skip to content

API

Agents API

Create an agent, save versions of it, run it and read each run's steps and what they cost.

Administrators only for nowAgents are not open to customers yet: administrators use them while they are built.

Endpoints

These take the access token of a signed-in account in Authorization: Bearer …. An API key does not reach them yet.

CallWhat it does
GET /v1/agentsYour agents (?archived=true for the archived ones).
POST /v1/agentsCreate an agent.
GET /v1/agents/:slugOne agent, with its current configuration and counts.
PATCH /v1/agents/:slugChange its name or description.
POST /v1/agents/:slug/versionsSave a new version: instructions, model, tools or skills.
POST /v1/agents/:slug/archiveTake it off your list and keep its history.
POST /v1/agents/:slug/restoreBring an archived agent back.
DELETE /v1/agents/:slugDelete it and its runs.
POST /v1/agents/:slug/runsRun it.
GET /v1/agents/:slug/runsIts runs, newest first.
GET /v1/agents/:slug/runs/:runIdOne run with its steps and what each cost.
POST /v1/agents/:slug/runs/:runId/stopStop a run that is going.
GET /v1/agent-toolsThe tools you may grant an agent.

Common questions

What can I do with the Agents API?

Create an agent, save versions of it, run it, stop a run and read each run's steps and what they cost. You can also archive, restore or delete an agent.

Can I use an API key with the agent endpoints?

Not yet. They take the access token of a signed-in account.

Can I stop a run from code?

Yes. A POST to the run's stop endpoint ends a run that is going.

Who may use the Agents API?

The same accounts that may use agents in the app. The top of this page says who that is today.

Where to go next

  • What an agent is made of

    The fields you set.

    Open
  • Usage and credits

    Each step's credits and the run's total.

    Open
  • Tools

    What an agent can be granted.

    Open
  • Plans and credits

    Plans

    What each plan includes and which models it reaches.

    Open

Not open to the public yet

Create an agent, save versions of it, run it and read each step and what it cost.

Existing accounts can sign in. To ask about access, contact us.