Send Message
Messaging
Send Message
Send a direct message to a user, optionally with media attachments.
POST
Send Message
Overview
Sends a message to a user identified by their profile URL. You can include text only, or attach media via a URL, base64-encoded file, or server-side path.This endpoint consumes 1 credit for text-only messages and 2 credits when media is attached.
When multiple media options are provided, the priority order is:
media_link > media_file > media_path. Only one media attachment will be used.Request
Your API key for authentication.
The unique identifier of the account to use.
Must be
"send".Response
Indicates whether the request was successful.
Details of the sent message.