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<uuid>
required

A UUID string identifying this agent.

Query Parameters

organization_id
string<uuid>

Organization ID. This is required for access control. It can be provided via query or request body depending on the endpoint.

Response

Successfully retrieved base agent details.

Serializer for BaseAgent (agent config)

id
string<uuid>
required
created_at
string<date-time>
required
name
string
required
Required string length: 1 - 200
disable_cache
boolean
required

Whether to disable job cache fetching for this agent.

cache_failed_jobs
boolean
required

Whether to cache failed jobs for this agent.

organization_id
string<uuid>
required

Organization ID that owns this agent.

engine_class_id
string
required
Maximum length: 200
current_version_id
string<uuid>
required

UUID of the current agent version.

job_count
integer
required
most_recent_job
string<date-time>
required
engine_name
string
required

Engine Display Name

tags
string
required
creator
object