WayloAIWaylo Docs
APIReferenceAgent documents

Assign a document

POST
/agents/{agentId}/documents

Link a document to an agent so the agent may search it. The document must belong to the agent’s workspace. Idempotent — re-assigning an already-linked document changes nothing. The document set is part of the configuration, so a new link bumps the agent’s version.

Access: workspace_admin · API key agents:write

Authorization

api-key
headerAuthorizationBearer <sk_waylo_<lookup><secret><checksum>>

Path Parameters

agentId*string

Header Parameters

Authorization*string

Your API key.

Request Body

application/json
  1. body
documentId*string
Formatuuid

Response Body

Created

Example Request
curl -X POST 'https://api.poc.app.waylovoice.ai/agents/string/documents' \  -H 'Authorization: Bearer sk_waylo_...' \  -H 'Content-Type: application/json' \  -d '{  "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052"}'
Example Response
Empty