send_message
Send direct messages with text or media attachments on Facebook, Instagram, or Twitter using the Ayrshare API.
Instructions
Send a direct message on a social platform. Supports text and media messages on Facebook, Instagram, and X/Twitter. Requires Business plan.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Target platform: facebook, instagram, or twitter | |
| recipientId | Yes | Recipient's platform user ID | |
| message | Yes | Message text (can be empty for Facebook/Instagram if mediaUrls provided) | |
| mediaUrls | No | Image, video, or voice file URLs to attach | |
| profileKey | No | Profile Key to operate on a specific user profile |