Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.toebox.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

List agents

Retrieve all agents for your store.

Endpoint

GET /api/agents

Headers

HeaderValueRequired
AuthorizationBearer tb_your-api-keyYes

Response

{
  "agents": [
    {
      "id": "agent_abc123",
      "name": "Support Bot",
      "type": "customer_support",
      "description": "Handles customer inquiries and product questions",
      "config": {
        "model_provider": "anthropic",
        "model_id": "claude-sonnet-4-6",
        "system_prompt": "You are a helpful shopping assistant...",
        "temperature": 0.7,
        "max_tokens": 4096,
        "mcp_capabilities": [
          { "type": "catalog", "enabled": true }
        ]
      },
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-20T14:22:00Z"
    }
  ]
}

Response fields

FieldTypeDescription
idstringUnique agent identifier
namestringAgent display name
typestringAgent type (e.g., customer_support, product_recommendation)
descriptionstringOptional agent description
configobjectAgent configuration (model, prompt, tools)
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 last update timestamp

Create an agent

Create a new agent configuration.

Endpoint

POST /api/agents

Headers

HeaderValueRequired
AuthorizationBearer tb_your-api-keyYes
Content-Typeapplication/jsonYes

Request body

{
  "name": "Product Finder",
  "type": "product_recommendation",
  "description": "Helps customers find the right products",
  "config": {
    "model_provider": "anthropic",
    "model_id": "claude-sonnet-4-6",
    "system_prompt": "You are a product recommendation assistant for a sneaker store. Help customers find the perfect pair based on their preferences, budget, and intended use.",
    "temperature": 0.7,
    "max_tokens": 4096,
    "mcp_capabilities": [
      { "type": "catalog", "enabled": true }
    ]
  }
}
FieldTypeRequiredDescription
namestringYesAgent display name
typestringYesAgent type
descriptionstringNoShort description
config.model_providerstringYesanthropic, openrouter, or bedrock
config.model_idstringYesModel identifier (e.g., claude-sonnet-4-6)
config.system_promptstringYesThe system prompt
config.temperaturenumberNo0.0 to 1.0 (default: 0.7)
config.max_tokensnumberNoMax response tokens (default: 4096)
config.mcp_capabilitiesarrayNoMCP tool connections

Response

{
  "id": "agent_def456",
  "name": "Product Finder",
  "type": "product_recommendation",
  "description": "Helps customers find the right products",
  "config": { ... },
  "created_at": "2025-01-21T09:00:00Z",
  "updated_at": "2025-01-21T09:00:00Z"
}

Error responses

StatusDescription
400Invalid request body
401Invalid or missing API key
403Agent limit reached for your plan
500Internal server error