Agents API
An Agent is a reusable, versioned definition containing a model, instructions, tools, and Skills. Creating or updating an Agent does not run it. Use a Session for an interactive execution, a Service backed by an Endpoint for a stable callable surface, or a Schedule for recurring work. Schedules are managed through the Deployments API.
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST | /v1/agents | Create an Agent |
GET | /v1/agents | List Agents |
GET | /v1/agents/{agent_id} | Get an Agent |
POST | /v1/agents/{agent_id} | Update an Agent and create a version |
POST | /v1/agents/{agent_id}/archive | Archive an Agent |
GET | /v1/agents/{agent_id}/versions | List versions |
All endpoints are organization-scoped and require a SandBase API key.
Lifecycle
- Create an Agent and save its
id. - Update it with the current
versionto prevent concurrent overwrites. - Pin a Session, Endpoint, or Deployment to a version when reproducibility matters.
- Archive the Agent when it should no longer be used for new Sessions.

