Skip to main content
POST
/
api
/
v1
/
comments
/
{comment_id}
/
reactions
Add Reaction
curl --request POST \
  --url https://api.member.dev/api/v1/comments/{comment_id}/reactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "emoji": "<string>"
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "comment_id": "<string>",
      "contact_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "emoji": "<string>"
    },
    "id": "<string>",
    "type": "comment_reactions"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

comment_id
string
required

Query Parameters

hub_id
string
required

Body

application/vnd.api+json

Top-level envelope for POST /api/comments//reactions.

Shape: { "data": { "type": "comment_reactions", "attributes": { "emoji": "..." } } }

data
ReactionCreateResource · object
required

JSON:API resource wrapper for a reaction create request.

Response

Successful Response

Single-item JSON:API envelope for a reaction.

Shape: { "data": }

data
ReactionResource · object
required

JSON:API resource object for a comment reaction.

Shape: { "type": "comment_reactions", "id": "", "attributes": { "comment_id": "...", "contact_id": "...", "emoji": "...", "created_at": "..." } }