List survey campaigns
Returns survey campaigns for the token’s organization. Requires surveys:read.
GET
/surveysResponses
200The organization's survey campaigns.
dataSurvey[]Show propertiesHide properties
Array of
SurveysurveyIdstringtitleobjectShow propertiesHide properties
svstringenstringstatusstringAllowed:
draftscheduledactiveclosedquestionCountinteger401Missing or invalid API key.
errorobjectShow propertiesHide properties
statusstringmessagestring403The API key lacks the scope required for this route.
errorobjectShow propertiesHide properties
statusstringmessagestringRequest
curl -X GET "https://paygap-jaggeman.web.app/api/v1/surveys"const response = await fetch("https://paygap-jaggeman.web.app/api/v1/surveys", {
method: "GET"
});import requests
response = requests.get(
"https://paygap-jaggeman.web.app/api/v1/surveys",
)Response
{
"data": [
{
"surveyId": "weekly_pulse",
"title": {
"sv": "Veckopuls",
"en": "Weekly pulse"
},
"status": "active",
"questionCount": 8
}
]
}{
"error": {
"status": "unauthenticated",
"message": "A valid X-API-Key is required."
}
}{
"error": {
"status": "permission-denied",
"message": "Missing required scope: employees:read"
}
}