curl --location --request POST 'https://api.yourapp.com/v1/public/topic-comments.create' \--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \--header 'Content-Type: application/json' \--data-raw '{ "id": "topic-uuid-123", "text": "This would be a great addition!", "source": "widget"}'
Copy
{ "data": { "id": "comment-uuid-new", "text": "This would be a great addition!", "topicId": "topic-uuid-123", "creatorId": "sub-uuid-789", "parentId": null, "source": "widget", "createdAt": "2024-01-17T17:30:00Z", "subscriber": { "id": "sub-uuid-789", "name": "John Doe", "email": "john@example.com" } }}
Comments
Create Topic Comment
Add a comment or reply to a topic. Requires subscriber authentication.
POST
/
v1
/
public
/
topic-comments.create
Copy
curl --location --request POST 'https://api.yourapp.com/v1/public/topic-comments.create' \--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \--header 'Content-Type: application/json' \--data-raw '{ "id": "topic-uuid-123", "text": "This would be a great addition!", "source": "widget"}'
Copy
{ "data": { "id": "comment-uuid-new", "text": "This would be a great addition!", "topicId": "topic-uuid-123", "creatorId": "sub-uuid-789", "parentId": null, "source": "widget", "createdAt": "2024-01-17T17:30:00Z", "subscriber": { "id": "sub-uuid-789", "name": "John Doe", "email": "john@example.com" } }}
curl --location --request POST 'https://api.yourapp.com/v1/public/topic-comments.create' \--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \--header 'Content-Type: application/json' \--data-raw '{ "id": "topic-uuid-123", "text": "This would be a great addition!", "source": "widget"}'
Copy
{ "data": { "id": "comment-uuid-new", "text": "This would be a great addition!", "topicId": "topic-uuid-123", "creatorId": "sub-uuid-789", "parentId": null, "source": "widget", "createdAt": "2024-01-17T17:30:00Z", "subscriber": { "id": "sub-uuid-789", "name": "John Doe", "email": "john@example.com" } }}