Get All Agents
GET/api/v1/agents/
Overview#
The Get All Agents endpoint allows you to fetch all agents created by the user, including their configurations and metadata. This is useful for managing and reviewing all agents in your account.
Request Header
Authorizationapi key
Your 7en API key. Example: Api-Key 43NKLN3LKN4nlkn
Best Practices#
- Caching: Cache the response to reduce API calls if the agent list doesn't change frequently.
- Error Handling: Handle authentication errors gracefully to ensure smooth user experience.
Request
curl -X GET 'https://api.7en.ai/api/v1/agents/' -H 'Authorization: Api-Key YOUR_API_KEY'\ -H 'Content-Type: application/json'Response200
{
"message": "List retrieved successfully",
"status": "success",
"data": [
{
"id": 685,
"owner": 2,
"name": "Customer Support Agent",
"description": null,
"status": "Idle",
"appearance": {},
"behavior": {},
"model": {
"display_model": null
},
"agentType": "General Assistant",
"agent_category": null,
"systemPrompt": "",
"knowledge_sources": [],
"created_at": "2026-03-08T05:48:37.616015Z",
"updated_at": "2026-03-08T05:48:37.616042Z",
"conversations": 0,
"ticketing_providers": [
"freshdesk"
],
"default_ticketing_provider": null,
"is_slack_enabled": false,
"privacy_url": null,
"gdpr_settings": {
"data_retention_days": null,
"data_retention_message": null,
"gdpr_message_display": false
},
"is_white_label": true,
"total_training_usage_bytes": 0,
"max_training_usage_bytes": 51200000,
"character_limit": 200000
},
{
"id": 689,
"owner": 2,
"name": "Updated Customer Support Agent",
"description": "Enhanced AI agent for customer support",
"status": "Idle",
"appearance": {
"theme": "green",
"avatar": "https://example.com/new-avatar.png"
},
"behavior": {
"greeting": "Welcome! I'm here to help you."
},
"model": {
"display_model": null
},
"agentType": "chatbot",
"agent_category": "Assistant",
"systemPrompt": "You are an expert customer support assistant with extensive product knowledge.",
"knowledge_sources": [],
"created_at": "2026-03-09T07:28:11.656646Z",
"updated_at": "2026-03-09T07:30:18.694454Z",
"conversations": 0,
"ticketing_providers": [],
"default_ticketing_provider": null,
"is_slack_enabled": false,
"privacy_url": null,
"gdpr_settings": {
"data_retention_days": null,
"data_retention_message": null,
"gdpr_message_display": false
},
"is_white_label": true,
"total_training_usage_bytes": 0,
"max_training_usage_bytes": 51200000,
"character_limit": 200000
}
]
}