Assign a document
POST
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
api-keyheader
AuthorizationBearer <sk_waylo_<lookup><secret><checksum>>agentId*stringapplication/json- body
documentId*stringFormat
uuidCreated
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