curl -X GET https://api.ansa.so/agents \
-H "Authorization: Bearer your-api-key"
{
"data": [
{
"id": "agent_xxx",
"name": "Support Bot",
"slug": "support-bot",
"model": "claude-sonnet-4-20250514",
"createdAt": "2024-01-15T10:00:00Z"
}
]
}
Manage your AI agents
curl -X GET https://api.ansa.so/agents \
-H "Authorization: Bearer your-api-key"
{
"data": [
{
"id": "agent_xxx",
"name": "Support Bot",
"slug": "support-bot",
"model": "claude-sonnet-4-20250514",
"createdAt": "2024-01-15T10:00:00Z"
}
]
}
curl -X GET https://api.ansa.so/agents \
-H "Authorization: Bearer your-api-key"
{
"data": [
{
"id": "agent_xxx",
"name": "Support Bot",
"slug": "support-bot",
"model": "claude-sonnet-4-20250514",
"createdAt": "2024-01-15T10:00:00Z"
}
]
}
GET /agents/:id
curl -X GET https://api.ansa.so/agents/agent_xxx \
-H "Authorization: Bearer your-api-key"
{
"data": {
"id": "agent_xxx",
"name": "Support Bot",
"slug": "support-bot",
"model": "claude-sonnet-4-20250514",
"temperature": 50,
"systemPrompt": "You are a helpful support agent.",
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-20T14:30:00Z"
}
}
POST /agents
curl -X POST https://api.ansa.so/agents \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Sales Bot",
"model": "claude-sonnet-4-20250514",
"systemPrompt": "You are a sales assistant.",
"temperature": 40
}'
{
"data": {
"id": "agent_yyy",
"name": "Sales Bot",
"slug": "sales-bot",
"model": "claude-sonnet-4-20250514",
"temperature": 40,
"systemPrompt": "You are a sales assistant.",
"createdAt": "2024-01-22T09:00:00Z"
}
}
PATCH /agents/:id
curl -X PATCH https://api.ansa.so/agents/agent_xxx \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Name",
"temperature": 60
}'
DELETE /agents/:id
curl -X DELETE https://api.ansa.so/agents/agent_xxx \
-H "Authorization: Bearer your-api-key"