Add to Recent Agents
POST
/api/agent/recent/{agent_id}
Agent APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/agent/recent/' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response Response Example
{
"success": true,
"message": "status code 201: Recent Agent created successfully",
"data": {
"id": 20,
"agent": {
"id": 5,
"user": {
"id": 3,
"email": "creator@example.com",
"first_name": null,
"last_name": null,
"organization": 1
},
"agent_type": {
"id": 1,
"created_by": "System",
"created_on": "2024-08-23T21:38:47.044052Z",
"modified_by": "",
"modified_on": "2024-08-23T21:38:47.044079Z",
"name": "agentType",
"description": "Agent type description"
},
"instructions": [
{
"id": 3,
"instruction": "",
"is_deleted": false,
"created_by": "creator@example.com",
"created_on": "2024-09-04T20:03:41.356908Z",
"agent": 5
}
],
"agent_name": "Project Assistant",
"industry_area": "",
"domain": "",
"sample_q1": "",
"sample_q2": "",
"sample_q3": "",
"prefix_prompt": "",
"alias": null,
"is_active": true,
"is_deleted": false,
"created_by": "creator@example.com",
"created_on": "2024-09-04T20:03:41.336685Z",
"agent_image": "/build/static/media/defaultBotImg5.79df49b2aed351d3cdcc.jpg",
"access": "Only me",
"status": "Live",
"project": 1,
"llm_config": 1,
"cloned_from": null
},
"user": {
"id": 3,
"email": "creator@example.com",
"first_name": null,
"last_name": null
},
"created_on": "2024-09-23T19:33:24.214346Z"
}
}
Request
Path Params
agent_id
integer
required
Body Params application/json