Resumable upload
Uploads a file directly to Meta using the WhatsApp resumable upload.
Endpoint: POST /v1/{did}/uploads
Parameters
Path
| Parameter | Type | Required | Description |
|---|---|---|---|
did | string | Yes | Target ID. |
Body (multipart/form-data)
| Part | Type | Required | Description |
|---|---|---|---|
file | binary | Yes | The file to upload. |
Request
curl --request POST \
--url 'https://api.chattigo.com/v1/{did}/uploads' \
--header 'Authorization: Bearer <token>' \
-F 'file=@/path/file.jpg'Response
Success (200)
{
"id": "4::1234567890"
}Errors
| Code | Case |
|---|---|
400 | did is required or missing file part |
403 | DID outside the WABA hierarchy |
413 | File exceeds the maximum size (media.upload.max_bytes) |
502 | External service unreachable |
504 | External service timeout |