curl --request POST \
--url https://app.phonely.ai/api/agent-documents \
--header 'Content-Type: multipart/form-data' \
--header 'X-Authorization: <api-key>' \
--form 'uid=<string>' \
--form 'agentId=<string>' \
--form 'files=<string>' \
--form files.items='@example-file'{
"message": "<string>",
"documentIds": [
"<string>"
]
}Upload documents to an agent’s knowledge base. Maximum 10 files, each under 10MB. Supports PDF, DOCX, and TXT files.
curl --request POST \
--url https://app.phonely.ai/api/agent-documents \
--header 'Content-Type: multipart/form-data' \
--header 'X-Authorization: <api-key>' \
--form 'uid=<string>' \
--form 'agentId=<string>' \
--form 'files=<string>' \
--form files.items='@example-file'{
"message": "<string>",
"documentIds": [
"<string>"
]
}