Send a file message to an active conversation via a url

Send media by URL to WhatsApp, Instagram, Messenger or TikTok. Instagram and Messenger support image, video and audio. TikTok supports JPEG and PNG images up to 3 MiB (3,145,728 bytes) and applies its messaging window and quotas. Messenger applies a 24-hour reply window. Use a WATI conversation ID or the connected WATI channel ID plus the recipient’s platform ID (Channel:Id for Instagram, Messenger or TikTok). 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.

Read message.status even after HTTP 200. An Instagram attachment failure can return a stored message with status: failed and no send_status.

TikTok session sends use a 48-hour reply window. Before the contact replies, the open window allows up to 10 outbound messages. After the contact replies, the initial limit is lifted while the window is open. After expiry, WATI allows up to 3 additional messages if the contact previously replied, and none otherwise.

Permissions

For API access tokens and OIDC tokens, satisfy at least one of: api, wati_integration:write, 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

Request model for sending a file message.

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, Messenger and TikTok, use Channel:Id with the connected WATI channel ID and the recipient’s platform user ID, or use the WATI conversation ID.
string
required

File to send.

string | null

Optional caption for the file.

boolean
Defaults to true

Whether the Instagram reply is automated. Defaults to true. For a genuine human-agent reply, false uses the human-agent reply deadline if one is available; otherwise the normal 24-hour window still applies. It does not grant a longer window or bypass an expired session. Ignored for non-Instagram conversations.

Headers
string
enum
Defaults to application/json-patch+json

Generated from available request content types

Allowed:
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