Skip to content

Agents API

The Agents API lets you create and manage agents. All endpoints are relative to the base path /api/agents.

MethodPathDescription
GET/api/agentsList all agents
POST/api/agentsCreate an agent
GET/api/agents/{name}Get a single agent
DELETE/api/agents/{name}Delete an agent
GET/api/agents/{name}/existsCheck if an agent name is taken

GET /api/agents

Returns all agents.

{
"agents": [
{
"name": "Assistant",
"archetype": ["generalist"],
"user_name": "Alice",
"snippbot_name": "assistant",
"created_at": "2026-01-01T00:00:00Z"
}
]
}

POST /api/agents

Creates a new agent workspace.

FieldTypeRequiredDescription
snippbot_namestringYesUnique machine name for the agent
user_namestringYesDisplay name of the user/owner
archetypestring or arrayYesBehavioral template(s). Accepts a single string or array of up to 3
profileobjectNoAdditional profile configuration
evolution_choicestringNoEvolution mode (default: check)
custom_archetypestringNoCustom archetype description
answersarrayNoSetup wizard answers

Returns the created agent object with status 201 Created.


GET /api/agents/{name}

Returns a single agent by name.


GET /api/agents/{name}/exists

Returns whether an agent with the given name already exists. Useful for validating names before creation.


DELETE /api/agents/{name}

Permanently deletes an agent and its workspace directory. All associated data (memory, chat history, workspace files) is removed.

{ "deleted": true }