POST
/
agent-documents
Upload documents
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>'
{
  "message": "<string>",
  "documentIds": [
    "<string>"
  ]
}

Authorizations

X-Authorization
string
header
required

Body

multipart/form-data
uid
string
required

User ID

agentId
string
required

Agent ID

files
file[]
required

Documents to upload

Maximum length: 10

Response

Files uploaded successfully

message
string
documentIds
string[]