Get Agent Corpus Connection
GET
/v2/api/agent/{agent_id}/corpus/{corpus_id}
Agent Corpus Connection
It requires both the agent's ID and the corpus ID as path parameters. The response includes information about
the agent, the associated corpus, the connection details, and metadata like creation timestamps and access settings.
Required Parameter
agent_id
(string, required) – The unique identifier of the agent whose details need to be fetched.corpus_id
(string, required) – The unique identifier assigned to a corpus, which represents a collection of knowledge, documents, or training data used by an agent.Purpose of Agent ID
How to View Your Agent ID?
View Your Agent ID
Purpose of Corpus ID
How to View Your Corpus ID?
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/api/agent//corpus/'
Response Response Example
200 - Example 1
{
"success": true,
"message": "Agent corpus connection fetched successfully.",
"data": {
"id": 904,
"agent": {
"id": 1297,
"agent_type": {
"id": 1,
"name": "QnA"
},
"instructions": [
{
"id": 10611,
"instruction": "",
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2025-01-29T17:23:00.550155Z",
"agent": 1297
}
],
"agent_name": "FC Barcelona Info Assistant",
"domain": "Your go-to assistant for everything related to FC Barcelona! Get real-time updates, match details, player stats, transfer news, and historical insights about the club",
"prefix_prompt": "",
"alias": "FCBarcelonaInfoAssistant_1297-dev@ejento.ai",
"is_deleted": false,
"created_by": "user@example.com",
"access": "Public",
"project": 254,
"llm_config": 8
},
"corpus": {
"id": 1739,
"indexing_mode": {
"id": 1,
"mode": "exhaustive"
},
"name": "FC Barcelona Info Assistant_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": []
},
"created_by": "user@example.com",
"created_on": "2025-01-29T17:23:00.369663Z",
"modified_by": "",
"modified_on": "2025-01-29T17:23:00.369691Z",
"is_enabled": true,
"is_default": true,
"is_deleted": false,
"connected_by": 147
}
}
Request
Path Params
agent_id
integer
required
This ID corresponds to a specific agent.
corpus_id
integer
required
A corpus consists of structured data, documents, or knowledge sources used by the agent to generate responses.