Request
POST https://app.botsify.com/api/v1/send-message-to-user
Authorization: API key — pass your bot’s API key either as the apikey field in the request body or in the X-Api-Key request header.
Body Parameters
string
required
Your bot’s API key. You can find this in the Botsify dashboard under bot settings. Alternatively, pass this value in the
X-Api-Key header instead of the request body.string
required
The recipient’s user ID on the connected channel (e.g. a Facebook Messenger PSID or platform-specific user identifier).
any
required
The message payload to send. This can be a plain string, a structured object (e.g. a card or quick-reply template), or any format supported by the target channel.
string
The message type, which may affect how the payload is rendered or routed on the target channel (e.g.
"text", "card", "image").integer
An internal Botsify user ID, used when targeting a user by their Botsify platform record rather than their channel-specific ID.
string
A Messenger message tag for policy compliance (e.g.
"CONFIRMED_EVENT_UPDATE", "POST_PURCHASE_UPDATE"). Required when sending messages outside the standard 24-hour messaging window on Facebook Messenger.Example — Send a Plain Text Message via Header Auth
Example — Send a Rich Message with Body Auth
Response
A successful request returns200 OK confirming the message was dispatched.
