Feedback API

Manage feedback submissions and votes.

List Feedback

GET /api/v1/feedback/posts

Query Parameters

Parameter Type Description
status string Filter by status (idea, planned, in_progress, completed)
category string Filter by category (feature, improvement, bug, integration)
sort string Sort order (votes, newest, oldest)

Response

{
  "success": true,
  "data": [
    {
      "id": 1,
      "title": "Add dark mode support",
      "description": "Would love to see a dark mode...",
      "category": "feature",
      "status": "planned",
      "votes_count": 127,
      "author_email": "[email protected]",
      "created_at": "2024-01-10T09:00:00Z"
    }
  ]
}

Submit Feedback

POST /api/v1/feedback/posts

Request Body

{
  "title": "Mobile app support",
  "description": "It would be great to have...",
  "category": "feature",
  "author_email": "[email protected]"
}

Vote on Feedback

POST /api/v1/feedback/posts/{id}/vote

Request Body

{
  "voter_id": "unique-visitor-id"
}

Response

{
  "success": true,
  "data": {
    "votes_count": 128,
    "voted": true
  }
}

Update Status

PUT /api/v1/feedback/posts/{id}/status

Request Body

{
  "status": "in_progress"
}
When you change the status, the original submitter receives an email notification.

Was this page helpful?

Your feedback helps us improve our documentation

Thank you for your feedback!

Your input helps us create better documentation for everyone