Skip to main content
POST
/
agent
/
file
Upload File
curl --request POST \
  --url https://api.getoutbox.ai/agent/file \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "text": "<string>",
  "name": "<string>",
  "urls": "<string>"
}
'

Authorizations

Authorization
string
header
required

Company API Key

Body

File upload options - text content, file upload, or URLs for web scraping

agent_id
string
required

ID of the agent

text
string

Text content (for text upload option)

name
string

Name of the file (required when using text option)

urls
string

Newline-separated URLs for web scraping (for web scraping option)

Response

File uploaded successfully