Agent API

pdf version of the Agent API documentation

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

Description: Create a new agent.

Request Body:

Response:

2. POST /v1/agent/{agentId}/update-faq

Description: 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

Description: Update an agent’s name.

Request Body:

Response:

4. POST /v1/agent/{agentId}/website/scrape

Description: 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

Description: 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

Description: Add a prompt to an agent.

Request Body:

Response:

Last updated