Skip to main content
POST
/
v1
/
public
/
feedbacks.delete
curl --location --request POST 'https://api.yourapp.com/v1/public/feedbacks.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "success": true,
  "feedbackId": "feedback-uuid"
}

Authentication

Requires subscriber JWT token from login/identify.
Authorization: Bearer SUBSCRIBER_JWT_TOKEN

Request Body

feedbackId
string
required
The feedback ID to delete

Response

success
boolean
Returns true if feedback was successfully deleted
feedbackId
string
The ID of the deleted feedback
curl --location --request POST 'https://api.yourapp.com/v1/public/feedbacks.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "success": true,
  "feedbackId": "feedback-uuid"
}

Behavior

  • Creator Only: Only the feedback creator can delete it
  • Permanent: Deletion is permanent and cannot be undone
  • Cascade: Deletes associated comments and votes
  • Notifications: Subscribers are notified of deletion

Use Cases

  • Remove Feedback: Allow users to delete their submissions
  • Duplicate Removal: Delete duplicate feedback items
  • Privacy: Remove feedback that contains sensitive information

Error Responses

403 Forbidden
{
  "error": "You do not have permission to delete this feedback",
  "statusCode": 403
}
404 Not Found
{
  "error": "Feedback not found",
  "statusCode": 404
}

Notes

  • Requires valid subscriber JWT token
  • Only the creator can delete (checked via subscriber ID)
  • Returns 403 if user is not the creator
  • Returns 404 if feedback doesn’t exist
  • Deletion is permanent - associated comments and votes are also removed
  • Triggers webhook events if configured