Agent API
Agent Public API Documentation
Note
Fields marked with
?are optional.
Error Response Format
All error responses are returned in the following format:
{
"message": "Error message",
"error": "error code",
"statusCode": code
}Example:
{
"message": "Capri token not found",
"error": "Unauthorized",
"statusCode": 401
}Endpoints
1. POST /v1/agent/create
/v1/agent/createDescription: Create a new agent.
Request Body:
Response:
2. POST /v1/agent/{agentId}/update-faq
/v1/agent/{agentId}/update-faqDescription: Add a new FAQ to an agent.
Params:
agentId// id of the agent to add the new FAQ.
Request Body:
Response:
3. POST /v1/agent/edit/name
/v1/agent/edit/nameDescription: Update an agent’s name.
Request Body:
Response:
4. POST /v1/agent/{agentId}/website/scrape
/v1/agent/{agentId}/website/scrapeDescription: Add websites as a knowledge source to an agent.
Params:
agentId// id of the agent to add the website.
Request Body:
Response:
5. POST /v1/agent/{agentId}/file-upload
/v1/agent/{agentId}/file-uploadDescription: Add a file as a knowledge source to an agent.
Params:
agentId// id of the agent to upload the new file.
Request Body:
Response:
6. POST /v1/agent/add/prompt
/v1/agent/add/promptDescription: Add a prompt to an agent.
Request Body:
Response:
Last updated