React to a message
Adds the Page's reaction to one message in a Facebook Messenger thread, replacing any reaction it already had there. The stored message then lists it in reactions with fromMe: true. Facebook Pages only: an Instagram conversation answers 400 unsupported. Needs the Page's messaging scope. Limited to 300 reaction changes per hour per user, shared with removing reactions. Requires a read-write API key.
Authorization
bearerAuth PostZen API key.
In: header
Path Parameters
The platform's own conversation (thread) id, as returned in id by the list and search endpoints — not a PostZen document id.
Platform message id, as returned in id by the list-messages endpoint (m_... on Messenger). The message must already be in PostZen's synced copy of this conversation.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/inbox/conversations/string/messages/string/reactions" \ -H "Content-Type: application/json" \ -d '{ "accountId": "k57a1b2c3d4e5f6g7h8i9j0k1l", "emoji": "❤️" }'{ "success": true, "message": "Reaction added."}{ "error": "Reactions are supported on Facebook only.", "code": "unsupported", "platform": "instagram"}{ "error": "Unauthorized"}{ "error": "Reconnect the account to grant PostZen access to its messages.", "code": "platformCapabilityMissing", "platform": "instagram"}{ "error": "That message could not be found in this conversation.", "code": "messageNotFound", "platform": "facebook"}{ "error": "(#10) This message is sent outside of allowed window. You need page_messaging permission or the thread must be passed to your app.", "code": "notThreadOwner", "platform": "facebook", "platformError": { "code": 10, "subcode": 2018300, "type": "OAuthException" }}{ "error": "This connection needs to be reauthorized before its messages can be read.", "code": "connectionDead"}{ "error": "rate_limited", "retryAfter": 30}{ "error": "Failed to create post"}{ "error": "An unexpected error has occurred. Please retry your request later.", "code": "2", "platform": "facebook", "platformError": { "code": 2, "type": "OAuthException" }}Send a direct message POST
Sends a message into an existing Instagram or Facebook Messenger thread. The recipient is the other participant on that thread, so no recipient id is needed. Send exactly one body shape per call: `message` (optionally with `quickReplies` or `buttons`), an attachment (`attachmentUrl` with `attachmentType`), or a `template`. Meta's Send API carries one payload at a time, so `message` with `attachmentUrl`, `quickReplies` with `buttons`, and `template` with any of the others are each a 400. `phone` buttons and `template.imageAspectRatio` are Facebook only and answer `400 unsupported` on Instagram. Text is capped at 1000 UTF-8 bytes on Instagram and 2000 characters on Facebook, and at 640 characters when `buttons` are attached. A validation failure names the offending field in `param`. Meta only accepts replies within 24 hours of the person's last message; outside that window the platform refuses the send and PostZen reports `400 PLATFORM_LIMITATION` with Meta's own envelope attached. Before sending, check the conversation's `replyWindowClosesAt`: a time in the past means the window has most likely closed, though Meta makes the final decision. `messageTag: HUMAN_AGENT` with `messagingType: MESSAGE_TAG` lets a person on your team answer after the window has closed, but Meta accepts it only when the Meta app has been approved for the Human Agent feature. Meta retired every other message tag on 2026-04-27, and PostZen rejects them with a 400. When another app connected to the Facebook Page controls the Messenger conversation, the send answers `409 notThreadOwner`. Sends are hard-gated on the account's messaging scope and count toward the plan's monthly inbox send allowance, which answers `402` once it is used up. Limited to 120 sends per hour per user, shared with comment private replies. Requires a read-write API key.
Remove a reaction from a message DELETE
Removes the Page's own reaction from one message in a Facebook Messenger thread. The other participant's reaction is not affected. Facebook Pages only: an Instagram conversation answers `400 unsupported`. Needs the Page's messaging scope. Limited to 300 reaction changes per hour per user, shared with adding reactions. Requires a read-write API key.