Send a file message to an active conversation

Send a multipart file to WhatsApp or Instagram. On Instagram, use a conversation ID or Channel:Id with the connected WATI channel ID and recipient’s Instagram-scoped ID. Use a supported image under 5 MiB, or video/audio under 16,000,000 bytes. Documents, stickers and MP3 are unsupported for Instagram. Use AAC, M4A, WAV or MP4 for Instagram audio. The optional caption is sent separately and is limited to 1,000 UTF-8 bytes. Sandbox supports text only.

On Instagram, is_bot defaults to true. Set it to false only for a genuine human-agent reply within the permitted window. send_status reports Instagram attachment acceptance and the separate caption outcome where available. Check the returned message ID and conversation history for the outcome before retrying a timed-out send.

Permissions

For API access tokens and OIDC tokens, satisfy at least one of: api, conversationsv3:write. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The target conversation in the following formats:

  • ConversationId: The unique ID of a conversation.
  • PhoneNumber: The conversation's phone number (e.g., 14155552671).
  • Channel:PhoneNumber: A combination of the channel (name or phone number) and the recipient's phone number (e.g., MyChannel:1415552671, 123456789:1415552671).
    For Instagram, use the WATI conversation ID or the connected WATI channel ID and Instagram-scoped user ID as Channel:Id.
file
required

Nonempty file. Examples of accepted upload MIME types are image/jpeg or image/png for images, video/mp4 for video, and audio/aac, audio/mp4 or audio/wav for audio. Channel-specific file type and size checks also apply.

string

Optional caption for the file.

boolean
Defaults to true

Instagram only. True uses the bot reply window. False uses the human-agent window for a genuine human reply. Ignored for WhatsApp.

Responses

401

The request is unauthorized.

429

Too many requests. Either the rate limit has been exceeded or usage limits have been reached.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json