Skip to main content

Get Agent

Retrieve a specific agent by ID. Users can only access their own agents.
path
string
required
Agent ID (numeric or ElevenLabs agent ID)
curl -X GET "https://api.example.com/api/v1/agents/123" \
  -H "X-API-Key: your-api-key-here"

Response

status
object
Response status information
code
integer
HTTP status code (200)
message
string
Status message
data
object
Agent object (see Agent schema)
{
  "status": {
    "code": 200,
    "message": "Success"
  },
  "data": {
    "id": "123",
    "name": "Customer Support Agent",
    "tags": ["support", "voice"],
    "conversation_config": {
      "temperature": 0.7,
      "model": "gpt-4"
    },
    "platform_settings": {},
    "published": true,
    "published_at": "2024-01-15T10:30:00Z",
    "elevenlabs_agent_id": "agent_abc123",
    "version": 1,
    "phone_numbers": [
      {
        "id": 1,
        "phone_number": "+1234567890",
        "provider": "elevenlabs",
        "elevenlabs_phone_number_id": "phone_xyz"
      }
    ],
    "user_id": 1,
    "user_email": "[email protected]",
    "created_at": "2024-01-10T08:00:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Error Responses

401
object
Unauthorized - Invalid or missing authentication
404
object
Agent not found