Retrieve a list of all agents associated with the authenticated user’s account.
Query Parameters
Whether to pretty-print the JSON response
Response
List of agent objects, each containing the agent’s details and configuration
curl https://www.trytruffle.ai/api/v1/agents \
-H "x-api-key: YOUR_API_KEY"
{
"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
}