Skip to main content
GET
/
api
/
agents
{
  "401": {},
  "agents": [
    {}
  ]
}

Description

Get list of all agents for the authenticated user.

Authentication

Required (API key or JWT token)

Query Parameters

None

Response

agents
array
Array of agent objects

Example Request

curl -H "Authorization: Bearer conv_YOUR_API_KEY" \
  https://api.convosphere.site/api/agents

Example Response

{
  "agents": [
    {
      "id": "agent_123",
      "name": "Customer Support Bot",
      "description": "Helps customers with support questions",
      "systemPrompt": "You are a helpful support agent...",
      "model": "gpt-4",
      "status": "active",
      "createdAt": "2024-01-15T10:00:00Z",
      "updatedAt": "2024-01-15T10:00:00Z"
    }
  ]
}

Error Responses

401
object
Unauthorized - Invalid or missing authentication