React to an activity
POST
/v1/activities/{id}/reactions
const url = 'http://localhost:3000/v1/activities/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reactions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"like","custom":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/v1/activities/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "like", "custom": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kind
required
string
Example
likecustom
object
key
additional properties
any
Responses
Section titled “Responses”Reacted. Idempotent — a repeat does not move the counter.
Media typeapplication/json
object
id
required
string format: uuid
activity_id
required
string format: uuid
user_id
required
string
kind
required
string
custom
required
object
key
additional properties
any
created_at
required
string format: date-time
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "activity_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "user_id": "example", "kind": "example", "custom": {}, "created_at": "2026-04-15T12:00:00Z"}Invalid, expired, revoked, or absent token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}Activity not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}