POST
/
v1
/
reactions
/
{commentId}
cURL
curl --request POST \
  --url https://platform.thena.ai/v1/reactions/{commentId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "heart",
  "impersonatedUserEmail": "<string>",
  "impersonatedUserName": "<string>",
  "impersonatedUserAvatar": "<string>",
  "metadata": {}
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": true
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

commentId
string
required

Body

application/json
name
string
required

The name of the reaction

Example:

"heart"

impersonatedUserEmail
string

The impersonated user email

impersonatedUserName
string

The impersonated user name

impersonatedUserAvatar
string

The impersonated user avatar

metadata
object

The metadata for the reaction

Response

Operation successful

status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string<date-time>
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
boolean
required

The response for create/update/delete reaction operations