Skip to main content

List Surveys

Retrieve a paginated list of surveys.

Endpointโ€‹

GET /v1/surveys

Authenticationโ€‹

Requires an API key with the surveys:read scope.

Query Parametersโ€‹

ParameterTypeDefaultDescription
pageinteger1Page number
per_pageinteger15Items per page (max 100)
searchstring-Search by survey name
statusstring-Filter by status: published, draft
sortstringcreated_atSort field: id, name, created_at, status
orderstringdescSort direction: asc or desc

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,
"responses_count": 156,
"created_at": "2025-01-01T00:00:00+00:00",
"updated_at": "2025-06-15T10:30:00+00:00"
},
{
"id": 2,
"name": "Post-Rental Feedback",
"status": "published",
"unique_code": "PRF-001",
"total_pages": 1,
"apply_to_all_products": true,
"apply_to_all_experiences": false,
"responses_count": 89,
"created_at": "2025-03-01T00:00:00+00:00",
"updated_at": "2025-06-15T10:30:00+00:00"
}
],
"meta": {
"current_page": 1,
"per_page": 15,
"total": 5,
"total_pages": 1,
"request_id": "req_abc123",
"timestamp": "2026-01-15T12:00:00+00:00"
}
}

Response Fieldsโ€‹

FieldTypeDescription
idintegerUnique identifier
namestringSurvey name
statusstringpublished or draft
unique_codestringUnique identifier code
total_pagesintegerNumber of pages in the survey
apply_to_all_productsbooleanAuto-applied to all products
apply_to_all_experiencesbooleanAuto-applied to all experiences
responses_countintegerTotal number of responses
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks surveys:read scope

Example Requestโ€‹

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