Upload File
Form Parameters
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | File to upload (max 10 MB) |
type | string | No | File type: media or audio (default: media) |
folder | string | No | Folder to organize the file in storage |
Example
Response (200)
Send Media in Message
After uploading, use the file to send a media message:| Field | Type | Required | Description |
|---|---|---|---|
channel_id | UUID | Yes | Channel to send through |
remote_jid | string | Yes | Recipient (WhatsApp JID) |
message_type | string | Yes | image, audio, video, or document |
content | string | No | Media caption |
file | file | Yes | Media file |
Common Errors
| Code | Description |
|---|---|
400 | File not provided or invalid format |
413 | File exceeds 10 MB limit |