For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upload a knowledge file

Upload a new file to the AI agent knowledge base for the specified entity.

post
Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Header parameters
X-API-Versionstring · enumOptional

Meta Business Agent API version

Possible values:
Body
filestring · binaryRequired

The file to upload. Max 100000000 bytes. Supported: .pdf, .doc, .docx, .png, .jpg, .jpeg, .csv (if CSV extraction enabled), .xlsx (if XLSX extraction enabled)

file_namestringRequired

The name of the file being uploaded

Responses
201

The newly uploaded file metadata

application/json

Metadata of a knowledge base file

file_namestringRequired

The name of the file

idstringRequired

The unique identifier for this file

Example: 1234567890
post/agent_config/files
POST /agent_config/files HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 36

{
  "file": "binary",
  "file_name": "text"
}
{
  "file_name": "text",
  "id": "1234567890"
}

Last updated

Was this helpful?