Messages
Send Message
Send a direct message to a recipient
POST
Send a new direct message to a recipient.Documentation Index
Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Pricing & Limits: Each User Profile can have up to 1,000 active
conversations per billing cycle across all social networks. Pricing depends
on your plan: Premium plans pay a flat 0.09 per active
conversation. A conversation is counted as
active when you send a message to a recipient during the billing cycle;
inbound messages alone do not count. The number of messages within an active
conversation is unlimited.
- You can send an emoji as part of the
messagetext. - Facebook and Instagram
mediaUrlsmust end in a known extension. Including query parameters will cause the media url to fail.
Header Parameters
Path Parameters
The platform to send the message:
facebook, instagram, twitterBody Parameters
The ID of the message recipient.
The message to send to the recipient.
- Facebook and Instagram message may be an empty string or not included if a
mediaUrlsis provided. - X requires a message of at least one character even if a
mediaUrlsis provided.
Array of media URLS for attaching images, a video, or a voice message.
- URLs of media items should end in the file extension without additional parameters appended.
- Facebook and Instagram support multiple media URLs.
- X only accepts a single media URL.
- Voice messages are supported on Facebook and Instagram as an
aacorwavfile.
