Skip to main content
POST
/
api
/
user
/
feedback
Submit feedback
curl --request POST \
  --url http://localhost:3000/api/user/feedback \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "feedback": "Great feature! Very helpful.",
  "rating": 5,
  "category": "feature_request",
  "context": {
    "page": "<string>",
    "action": "<string>"
  }
}
'
{
  "success": true,
  "feedbackId": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
feedback
string
required

User feedback text

Example:

"Great feature! Very helpful."

rating
integer

Rating from 1 to 5

Required range: 1 <= x <= 5
Example:

5

category
string

Feedback category

Example:

"feature_request"

context
object

Additional context about where feedback was submitted

Response

Feedback submitted successfully

success
boolean
Example:

true

feedbackId
string

ID of the created feedback record