React to a message
POST/v1/profiles/{profile_id}/messages/{message_id}/reactions
- Scope
messages:send
Adds a tapback (love, like, dislike, laugh, emphasize, question), or takes it back with remove: true. iMessage only. Happens at once, so it needs the line working.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).message_idstringrequiredThe message (
msg_…).
Request body
reaction"love" | "like" | "dislike" | "laugh" | "emphasize" | "question"requiredlove,like,dislike,laugh,emphasizeorquestion.removebooleantruetakes the reaction back.
Response
200 OKThe message's reactions now.
oktruerequiredmessage_idstringrequiredreaction"love" | "like" | "dislike" | "laugh" | "emphasize" | "question"requiredremovedbooleanrequiredreactionsarray of ReactionrequiredFields of
reactionskind"love" | "like" | "dislike" | "laugh" | "emphasize" | "question" or "emoji"requiredOne of the six tapbacks, or
emojifor an emoji reaction.emojistring or nullrequiredThe emoji, when
kindisemoji.fromstringrequired"me"for the line's own reaction, else the person's address.attimestamp or nullrequired
Errors
| Status | Code | Means |
|---|---|---|
| 409 | imessage_only | Reactions work only on iMessage messages. |
| 409 | not_sent_yet | The message hasn't gone out yet, so it can't be reacted or replied to. |
| 403 | draft_only_key | This key can only write drafts; typing, reactions and read receipts aren't drafts. |
| 403 | recipient_not_allowed | The recipient isn't on this key's allowed recipients. |
| 403 | sending_paused | We paused sending on your account (or this line) while we review recent activity that looked like mass texting. Incoming messages still arrive. details.scope is team or line. |
| 503 | line_unavailable | The line is having trouble right now. |
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.