Get Agent Details
GET/api/v1/agents/{id}
Overview#
The Get Agent Details endpoint returns the full configuration object for a specific agent accessible to the authenticated user. This includes appearance settings, behavior configuration, model settings, and associated knowledge sources.
Request Header
Authorizationapi key
Your 7en API key. Example: Api-Key 43NKLN3LKN4nlkn
Path Parameters#
Parameter
idint
Unique identifier of the agent to retrieve. Example: "34"
Error Response#
404
{
"error": {
"code": "agent_not_found",
"message": "Agent not found.",
"status": 404
}
}Best Practices#
- Access Control: Only agents belonging to the authenticated user's team are returned. A
404is returned for inaccessible agents to prevent enumeration. - Caching: Cache retrieved agent configurations client-side where appropriate to reduce API calls.
Request
curl -X GET 'https://api.7en.ai/api/v1/agents/{id}' -H 'Authorization: Api-Key YOUR_API_KEY' -H 'Content-Type: application/json'Response200
{
"message": "Resource retrieved successfully",
"status": "success",
"data": {
"id": 689,
"owner": 2,
"name": "Customer Support Agents",
"description": null,
"status": "Idle",
"appearance": {},
"behavior": {},
"model": {
"display_model": null
},
"agentType": "General Assistant",
"agent_category": null,
"systemPrompt": "",
"knowledge_sources": [],
"created_at": "2026-03-09T07:28:11.656646Z",
"updated_at": "2026-03-09T07:28:11.656660Z",
"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
}
}