Skip to main content

Get Survey

Retrieve a single survey by ID, including all fields and assignments.

Endpointโ€‹

GET /v1/surveys/{id}

Path Parametersโ€‹

ParameterTypeDescription
idintegerSurvey ID

Authenticationโ€‹

Requires an API key with the surveys:read scope.

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"id": 1,
"name": "Customer Satisfaction Survey",
"status": "published",
"unique_code": "CSS-001",
"total_pages": 1,
"apply_to_all_products": false,
"apply_to_all_experiences": true,
"fields": [
{
"id": 10,
"field_type": "npsRating",
"label": "How likely are you to recommend us to a friend?",
"placeholder": null,
"is_required": true,
"page_number": 1,
"position": 1,
"options": null
},
{
"id": 11,
"field_type": "starRating",
"label": "How would you rate the quality of our equipment?",
"placeholder": null,
"is_required": true,
"page_number": 1,
"position": 2,
"options": null
},
{
"id": 12,
"field_type": "singleChoice",
"label": "How did you hear about us?",
"placeholder": null,
"is_required": false,
"page_number": 1,
"position": 3,
"options": ["Google", "Friend referral", "Social media", "Other"]
},
{
"id": 13,
"field_type": "longText",
"label": "Any additional comments or suggestions?",
"placeholder": "Share your thoughts...",
"is_required": false,
"page_number": 1,
"position": 4,
"options": null
}
],
"assigned_products": [],
"assigned_experiences": [
{
"id": 5,
"type": "Experience"
},
{
"id": 8,
"type": "Experience"
}
],
"responses_count": 156,
"created_at": "2025-01-01T00:00:00+00:00",
"updated_at": "2025-06-15T10:30:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-01-15T12:00:00+00:00"
}
}

Response Fieldsโ€‹

Survey Objectโ€‹

FieldTypeDescription
idintegerUnique identifier
namestringSurvey name
statusstringpublished or draft
unique_codestringUnique identifier code
total_pagesintegerNumber of pages
apply_to_all_productsbooleanAuto-applied to all products
apply_to_all_experiencesbooleanAuto-applied to all experiences
fieldsarraySurvey field definitions
assigned_productsarrayProducts this survey is assigned to
assigned_experiencesarrayExperiences this survey is assigned to
responses_countintegerTotal number of responses
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Field Objectโ€‹

FieldTypeDescription
idintegerField ID (use for submitting responses)
field_typestringType of field (see below)
labelstringQuestion/label text
placeholderstringPlaceholder text
is_requiredbooleanWhether field is required
page_numberintegerPage this field appears on
positionintegerOrder position on the page
optionsarrayOptions for choice fields

Field Typesโ€‹

TypeDescriptionExpected Value
npsRatingNet Promoter ScoreInteger 0-10
starRatingStar ratingInteger 1-5
csatCustomer SatisfactionInteger 1-5
cesCustomer Effort ScoreInteger 1-7
likertScaleLikert agreement scaleInteger 1-5
shortTextSingle line textString
longTextMulti-line textString
singleChoiceSingle selectionString (option value)
multipleChoiceMultiple selectionArray of strings

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks surveys:read scope
403forbiddenSurvey belongs to another supplier
404not_foundSurvey not found

Example Requestโ€‹

curl -X GET "https://app.equipdash.com/api/v1/surveys/1" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."