Skip to main content
GET
/
v1
/
surveys
/
{surveyId}
/
trends
Get survey trends
curl --request GET \
  --url https://api.doozy.live/v1/surveys/{surveyId}/trends \
  --header 'x-api-key: <api-key>'
{
  "object": "survey_trends",
  "id": "survey_abc123",
  "instances": [
    {
      "id": "<string>",
      "scheduled_at": "<string>",
      "total_recipients": 123,
      "total_responses": 123,
      "response_rate": 123
    }
  ],
  "questions": [
    {
      "id": "q_abc123",
      "text": "How satisfied are you with your onboarding experience?",
      "type": "scale_1_to_10",
      "data_points": [
        {
          "average_score": 7.8,
          "enps_score": 42,
          "total_responses": 30,
          "answer_breakdown": [
            {
              "answer": "8",
              "total_responses": 25,
              "percentage": 35.7
            }
          ]
        }
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate keys in the Doozy dashboard.

Path Parameters

surveyId
string
required

The unique identifier of the survey

Minimum string length: 1
Example:

"survey_abc123"

Response

Survey trends with per-instance question analytics

object
enum<string>
required

Object type identifier

Available options:
survey_trends
Example:

"survey_trends"

id
string
required

Survey ID

Example:

"survey_abc123"

instances
object[]
required

Instances in chronological order

questions
object[]
required

Per-question trend data across instances