Create Recent Agent
POST
/v2/api/agent/{agent_id}/recent
Agent
The response includes comprehensive details about the newly created recent agent, ensuring seamless tracking and access.
Required Parameter
agent_id
(string, required) – The unique identifier of the agent whose details need to be fetched.What is an Agent ID?
It helps differentiate between multiple agents and enables precise API calls for retrieving, managing, or interacting with them.
Purpose of Agent ID
How to View Your Agent ID?
View Your Agent ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/api/agent//recent'
Response Response Example
201 - Create recent agent
{
"success": true,
"message": "Recent Agent created successfully",
"data": {
"id": 1937,
"agent": {
"id": 1251,
"user": {
"id": 160,
"email": "user@example.com",
"first_name": "User",
"last_name": "User",
"organization": 1
},
"agent_type": {
"id": 1,
"created_by": "System",
"created_on": "2024-04-17T23:10:22.313394Z",
"modified_by": "user@example.com",
"modified_on": "2024-04-17T23:10:22.313414Z",
"name": "QnA",
"description": ""
},
"instructions": [
{
"id": 10353,
"instruction": "",
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2025-01-07T16:45:24.058906Z",
"agent": 1251
}
],
"agent_name": "Policy Whisperer",
"industry_area": "",
"domain": "Provides accurate and concise answers to inquiries regarding company policies.",
"sample_q1": "What is user's favorite sport?",
"sample_q2": "Who is user's favorite player?",
"sample_q3": "What is user's favorite food?",
"prefix_prompt": "You are an AI assistant designed to answer questions about company policies.",
"alias": "PolicyWhisperer_1251-dev@ejento.ai",
"is_active": false,
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2025-01-07T16:45:23.953362Z",
"agent_image": "[object Object]",
"access": "Only team",
"status": "Live",
"caching_enabled": false,
"chunk_count": 32,
"react_enabled": true,
"react_max_iteration_count": 50,
"project": 43,
"llm_config": 8,
"cloned_from": null
},
"user": {
"id": 160,
"email": "user@example.com",
"first_name": "User",
"last_name": "User",
"organization": 1
},
"created_on": "2025-01-17T21:46:47.962032Z"
}
}
Request
Path Params
agent_id
integer
required
Example:
1251