GET collection
Request parameters
curl -X GET \
-H 'X-EchonovumApi-Key: YOUR_API_KEY' \
-H 'Content-Type: application/vnd.api+json' \
https://api.echonovum.com/en/v1/surveys
const API_KEY = process.env.ECHONOVUM_API_KEY;
const response = await fetch('https://api.echonovum.com/en/v1/surveys', {
headers: {
'X-EchonovumApi-Key': API_KEY,
'Content-Type': 'application/vnd.api+json'
}
});
Responses
{
"meta": {
"totalItems": 2,
"itemsPerPage": 30,
"currentPage": 1
},
"links": {
"self": "/{locale}/v1/surveys",
"first": "/{locale}/v1/surveys?page=1",
"last": "/{locale}/v1/surveys?page=80",
"next": "/{locale}/v1/surveys?page=2"
},
"data": [
{
"id": "/{locale}/v1/surveys/a320f33d-8177-4648-80db-cf740e55bcfb",
"type": "SurveyV1",
"attributes": {
"uuid": "a320f33d-8177-4648-80db-cf740e55bcfb",
"name": "EX: First Day of Work"
}
},
{
"id": "/{locale}/v1/surveys/6a45bbd6-b795-4e7d-a8a2-8fd9e37a5e49",
"type": "SurveyV1",
"attributes": {
"uuid": "6a45bbd6-b795-4e7d-a8a2-8fd9e37a5e49",
"name": "EX: End of Probation Period"
}
}
]
}
Last modified: 27 May 2024