Skip to content

Resumable upload

Uploads a file directly to Meta using the WhatsApp resumable upload.

Endpoint: POST /v1/{did}/uploads

Parameters

Path

ParameterTypeRequiredDescription
didstringYesTarget ID.

Body (multipart/form-data)

PartTypeRequiredDescription
filebinaryYesThe 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

CodeCase
400did is required or missing file part
403DID outside the WABA hierarchy
413File exceeds the maximum size (media.upload.max_bytes)
502External service unreachable
504External service timeout