Get All Agent Corpus Connections
GET
/v2/api/agent/{agent_id}/corpus
Agent Corpus Connection
agent_id
: The unique identifier of the agent whose corpus connections are to be retrieved.Purpose of Agent ID
How to View Your Agent ID?
View Your Agent ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/api/agent/1235/corpus'
Response Response Example
200 - Example 1
{
"success": true,
"message": "Agent corpus connection fetched successfully.",
"data": {
"id": 855,
"agent": {
"id": 1235,
"agent_type": {
"id": 1,
"name": "QnA"
},
"instructions": [
{
"id": 10286,
"instruction": "",
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2024-12-23T21:43:14.692022Z",
"agent": 1235
}
],
"agent_name": "Physio Sage",
"domain": "Offers guidance and solutions for physics questions and problem-solving.",
"prefix_prompt": "You are an AI assistant that provides assistance with physics-related questions and problems.",
"alias": "PhysioSage_1235-dev@ejento.ai",
"is_deleted": false,
"created_by": "user@example.com",
"access": "Public",
"project": 171,
"llm_config": 8
},
"corpus": {
"id": 1236,
"indexing_mode": {
"id": 1,
"mode": "exhaustive"
},
"name": "Physio Sage_Default",
"description": null,
"owner": {
"id": 147,
"email": "user@example.com",
"is_superuser": true,
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo"
}
},
"tags": [
"count1",
"count2",
"count4",
"a",
"d",
"e"
]
},
"created_by": "user@example.com",
"created_on": "2024-12-23T21:43:14.625761Z",
"modified_by": "",
"modified_on": "2024-12-23T21:43:14.625778Z",
"is_enabled": true,
"is_default": true,
"is_deleted": false,
"connected_by": 147
}
}
Request
Path Params
agent_id
integer <int32>
required
Example:
1235