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 · enumOptionalPossible values:
Meta Business Agent API version
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
idstringRequiredExample:
The unique identifier for this file
1234567890400
Bad request
application/json
401
Unauthorized
application/json
429
Too many requests
application/json
500
Server error
application/json
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?