curl --request DELETE \
--url http://localhost:3333/v1/comments/{commentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"userId": "usr_abc123def456"
}
'{
"success": true,
"deletedCommentId": "cmt_abc123def456",
"message": "Comment deleted successfully"
}Delete a comment and all its attachments (author only)
curl --request DELETE \
--url http://localhost:3333/v1/comments/{commentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"userId": "usr_abc123def456"
}
'{
"success": true,
"deletedCommentId": "cmt_abc123def456",
"message": "Comment deleted successfully"
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Unique comment identifier
"cmt_abc123def456"
Delete comment request body
User ID of the comment author (required for API key auth, ignored for JWT auth)
"usr_abc123def456"
Was this page helpful?