Skip to main content

POST /api/v1/events/{event_id}/comments

Creates a new top-level comment on an event.

Authentication​

Required. Bearer token in Authorization header.

Request​

Path Parameters​

ParameterTypeRequiredDescription
event_idintegerYesEvent ID

Body Parameters​

ParameterTypeRequiredDescription
contentstringYesComment text
parent_idintegerNoParent comment ID for replies (optional)

Example​

curl -X POST https://intotes.com/api/v1/events/42/comments \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"content": "Great event! I think YES has good value here."
}'

Response​

201 Created​

Returns the ID of the created comment.

{
"id": 3
}

Errors​

StatusCodeDescription
400bad_requestMissing or invalid text field
401unauthorizedMissing or invalid authentication token
404not_foundEvent not found
500internal_errorServer failed to create comment