Skip to main content
GET
List agent websites
Manages website URLs associated with an agent’s knowledge base. This endpoint supports GET, POST, and DELETE operations.

List Websites

Method: GET
Endpoint: /api/agent-websites
Headers:
  • X-Authorization: Your API key (required)
Query Parameters:
  • uid (string, required): Your user ID
  • agentId (string, required): The ID of the agent
Response:

Add Website

Method: POST
Endpoint: /api/agent-websites
Headers:
  • X-Authorization: Your API key (required)
  • Content-Type: application/json
Request Body:
Response:

Delete Website

Method: DELETE
Endpoint: /api/agent-websites
Headers:
  • X-Authorization: Your API key (required)
Query Parameters:
  • uid (string, required): Your user ID
  • agentId (string, required): The ID of the agent
  • websiteId (string, required): The ID of the website to delete
Response:

Error Responses

  • 400 Bad Request: Invalid request parameters or invalid URL
  • 401 Unauthorized: Invalid or missing API key, or insufficient permissions
  • 404 Not Found: Website not found (for DELETE operations)
  • 500 Internal Server Error: Server error

Examples

List websites:
Add website:
Delete website:

Authorizations

X-Authorization
string
header
required

Query Parameters

uid
string
required

User ID

agentId
string
required

Agent ID

Response

List of websites

websites
object[]
Last modified on July 11, 2026