v1
latestOpenAPI 3.1.02026-08-06192355.6 KBAgents
Get Agent
get/api/v1/agent/{id}
Path parameters
idstring required
Query parameters
populate'agent_documents'
When set to 'agent_documents', the response will include the 'agent_documents' property.
Headers
CodeGPT-Org-Idstring
Organization ID that agents and documents belong to.
Response
Successful Response
Example response
{
"id": "0000-0000-0000-0000",
"org_id": "0000-0000-0000-0000",
"created_at": "2023-01-01T12:00:00.000Z",
"agent_type": "other",
"name": "Agent 1",
"description": "Description of the agent",
"image": "null",
"prompt": "You are a helpful assistant",
"topk": 3,
"temperature": 0.7,
"model": "gpt-3.5-turbo",
"welcome": "Hello, how can I help you?",
"pincode": "false",
"agent_documents": [
"0000-0000-0000-0000"
]
}