PostZen
Inbox

Remove a reaction from a message

DELETE
/v1/inbox/conversations/{conversationId}/messages/{messageId}/reactions

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.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Path Parameters

conversationId*string

The platform's own conversation (thread) id, as returned in id by the list and search endpoints — not a PostZen document id.

messageId*string

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.

Query Parameters

accountId*string

PostZen account id that owns the conversation.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/inbox/conversations/string/messages/string/reactions?accountId=string"
{  "success": true,  "message": "Reaction removed."}
{  "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"  }}