Agents
List Agents
Returns all agents owned by the API key's user.
GET /agentsAuth: Any key (master or agent).
Query parameters:
per_page
integer
100
Results per page
page
integer
1
Page number
curl https://api.guayaba.run/api/v1/agents \
-H "Authorization: Bearer g_master_YOUR_KEY"Response (200):
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Agent",
"status": "running",
"channels": ["telegram"],
"model_provider": "openrouter",
"settings": { "model": "openai/gpt-4.1" },
"created_at": "2026-03-15T10:30:00Z"
}
],
"current_page": 1,
"last_page": 1,
"per_page": 100,
"total": 1
}Show Agent
Returns full details for a specific agent.
Auth: Master key (any agent) or agent key with agent:read scope (own agent only).
Create Agent
Creates a new AI agent.
Auth: Master key only. Cost: 10 credits.
Response (201):
Update Agent
Updates an existing agent. Uses PATCH semantics — only provided fields are changed.
Auth: Master key only. Cost: 10 credits.
Secrets use PATCH semantics: send null or "" to delete a secret; omit the key entirely to keep it.
Delete Agent
Deletes an agent. Stops it first if running. Cascades to API keys and sessions.
Auth: Master key only. Cost: Free.
Runtime Control
All runtime endpoints require agent:manage scope (master keys always pass).
Get Status
Returns current status, uptime, and timestamps. Free.
Response (200):
Health Check
Returns detailed health for a running agent. Free.
Start Agent
Boots the agent or resumes from paused. Cost: 5 credits.
Stop Agent
Stops the agent and accumulates uptime. Free.
Pause Agent
Pauses without stopping the container. Free.
Reload Config
Hot-reloads configuration without restarting. Agent must be running. Cost: 1 credit.
Agent Status Values
created
Agent created but never started
active
Provisioning / booting
running
Running and accepting requests
paused
Paused (container alive, not processing)
stopped
Stopped (no container)
failed
Failed to start or crashed
Sessions
Manage conversation sessions. All session endpoints require agent:manage scope.
List Sessions
Get Session History
Rename Session
Archive Session
Delete Session
Archives
List Archives
Restore Archive
Delete Archive
Channels (Telegram)
Manage Telegram pairing. All endpoints require channels scope.
List Pairing Requests
List Approved Pairings
Approve Pairing
Revoke Pairing
Reject Pairing
Files
Upload files to an agent's knowledge base. Requires files scope. The agent must be running.
Catalogs
Read-only reference data. Any API key type. Responses are cached for 10 minutes.
GET /catalogs/frameworks
Available agent frameworks
GET /catalogs/frameworks/{id}/clients
Clients for a framework
GET /catalogs/regions
Deployment regions
GET /catalogs/hardware
Hardware configurations
GET /catalogs/models
Available AI models
Last updated