POST
/
agent-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>' \
  --form 'files=[
  null
]'
{
  "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

Response

200
application/json
Files uploaded successfully
message
string
documentIds
string[]