Skip to main content
POST
/
feedback
Create feedback
curl --request POST \
  --url https://productlane.com/api/v1/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "painLevel": "UNKNOWN",
  "origin": "INAPP",
  "email": "jsmith@example.com",
  "projectId": "<string>",
  "issueId": "<string>",
  "notify": {
    "slack": true,
    "email": true
  }
}'
{
  "id": "<string>"
}

Create Feedback

Create new feedback. This is the equivalent of adding feedback through the widget or portal.

Request Body

text
string
required
Feedback content (minimum 1 character)
painLevel
string
required
Pain level associated with this feedback
email
string
required
Email address of the person providing feedback
origin
string
Source of the feedback
projectId
string
ID of the project this feedback is related to
issueId
string
ID of the issue this feedback is related to
notify
object
Notification preferences
notify.slack
boolean
Whether to send Slack notification
notify.email
boolean
Whether to send email notification

Response

id
string
Unique identifier for the created feedback

Example Request

{
  "text": "The new feature is great, but it would be even better if we could customize the layout.",
  "painLevel": "LOW",
  "email": "user@example.com",
  "origin": "WIDGET",
  "projectId": "proj_123",
  "notify": {
    "slack": true,
    "email": false
  }
}

Example Response

{
  "id": "feedback_123456789"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
text
string
required
Minimum length: 1
painLevel
enum<string>
required
Available options:
UNKNOWN,
LOW,
MEDIUM,
HIGH
email
string<email>
required
origin
enum<string>
Available options:
INAPP,
PORTAL,
API,
SLACK,
SLACK_CONNECT,
INTERCOM,
INTERCOM_ATTACHMENT,
ZENDESK_ATTACHMENT,
FRONT_ATTACHMENT,
EMAIL,
ZAPIER,
HUBSPOT,
PLAIN,
CALENDAR,
WIDGET
projectId
string
issueId
string
notify
object

Response

Successful response

id
string
required