GET
/
v1
/
agents
/
{agentId}
{
  "agent": {}
}

Retrieve detailed information about a specific agent by its ID.

Path Parameters

agentId
string
required

The unique identifier of the agent

Query Parameters

pretty
boolean

Whether to pretty-print the JSON response

Response

agent
object

The complete agent details including configuration

curl https://www.trytruffle.ai/api/v1/agents/agent_123 \
  -H "x-api-key: YOUR_API_KEY"
Response
{
    "success": true,
    "data": {
        "agent_id": "agent_123",
        "name": "Customer Support Agent",
        "config": {
            "agent_id": "agent_123",
            "name": "Customer Support Agent",
            "instruction": "You are a helpful customer support agent",
            "model": "gpt-4",
            "tool": "search"
        },
        "created_at": "2024-02-07T20:43:00Z",
        "updated_at": "2024-02-07T20:43:00Z"
    },
    "status": 200
}