GET
/
v1
/
agents
/
{agent_id}
/
Retrieve an agent.
curl --request GET \
  --url https://api.roe-ai.com/v1/agents/{agent_id}/ \
  --header 'Authorization: Bearer <token>'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Agent",
  "creator": {
    "id": 2,
    "email": "user@example.com",
    "first_name": "John",
    "last_name": "Doe"
  },
  "created_at": "2024-01-15T10:30:00Z",
  "engine_class_id": "openai_chat",
  "engine_name": "OpenAI Chat",
  "current_version_id": "456e7890-e89b-12d3-a456-426614174001",
  "organization": "org-123e4567-e89b-12d3-a456-426614174000",
  "disable_cache": false,
  "cache_failed_jobs": false,
  "job_count": 42,
  "most_recent_job": "2024-01-20T15:45:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

A UUID string identifying this agent.

Query Parameters

get_supports_eval
boolean

Include information on whether the agent engine supports evaluation.

Response

200
application/json

Successfully retrieved base agent details.

Serializer for BaseAgent (agent config)