Skip to main content
GET
/
api
/
v1
/
agents
List Agents
curl --request GET \
  --url https://api.example.com/api/v1/agents
List all AI agents configured in your organization.

Request

GET /api/v1/agents
Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeDescription
providerstringFilter by provider (e.g., vapi, livekit)

Response

FieldTypeDescription
agentsarrayList of agent objects
totalnumberTotal number of agents

Agent Object

FieldTypeDescription
idstringAgent UUID
providerstringProvider type
namestringDisplay name
descriptionstringOptional description
is_activebooleanWhether the agent is active
created_atstringISO-8601 creation timestamp
updated_atstringISO-8601 last update timestamp

Examples

curl "https://app.preclinical.dev/api/v1/agents" \
  -H "Authorization: Bearer $API_KEY"

# Filter by provider
curl "https://app.preclinical.dev/api/v1/agents?provider=vapi" \
  -H "Authorization: Bearer $API_KEY"

Success Response

{
  "agents": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "provider": "vapi",
      "name": "Healthcare Assistant",
      "description": "Production voice agent for patient triage",
      "is_active": true,
      "created_at": "2026-01-15T08:00:00Z",
      "updated_at": "2026-01-28T12:30:00Z"
    }
  ],
  "total": 1
}