Track survey event
POST /api/v1/public/surveys/event/
Track survey interaction events such as survey opened, closed, or other user actions. Used for analytics and user behavior tracking.
Request body
Comparison table| Field | Type | Required | Description |
|---|
survey_uuid | string (uuid) | Yes | UUID of the survey the event belongs to. |
session_uuid | string (uuid) | No | Session the event belongs to (from the init response). |
event_type | survey_opened | survey_initialized | score_submitted | text_submitted | survey_closed | Yes | |
Code example
curl -X POST https://feedback.tools/api/v1/public/surveys/event \
-H "Authorization: Bearer pk_..." \
-H "Content-Type: application/json" \
-d '{"survey_uuid":"<survey_uuid>","event_type":"survey_opened"}'
Responses
200 Success
Comparison table| Field | Type | Required |
|---|
survey_uuid | string (uuid) | Yes |
session_uuid | string (uuid) | Yes |
400 / 403 Error
Comparison table| Field | Type | Required |
|---|
detail | string | Yes |
survey_uuid | string (uuid) | null | No |
session_uuid | string (uuid) | null | No |