Use this endpoint to retrieve responses from your studies. This endpoint allows you to retrieve up to 1000 responses at a time.
curl --request GET \
--url https://api.sprig.com/v1/responses \
--header 'Authorization: <authorization>'{
"cursor": "cursor",
"data": [
{
"createdAt": "2023-10-19T17:04:26.253Z",
"externalUserId": null,
"questionId": 2,
"questionText": "Consent / Legal Question",
"questionType": "CONSENTLEGAL",
"response": {
"submitted": true
},
"responseGroupUid": "9fa86a17-82b1-423a-979a-30ee35ada562",
"surveyId": 1,
"updatedAt": "2023-10-19T17:04:26.253Z",
"visitorId": 0,
"visitorUuid": "3b7b4806-c082-4f0c-a8f0-b869121f47cb"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.sprig.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer YOUR_API_KEY
The earliest creation data for a generated theme to return, represented as milliseconds from epoch time
The latest creation date for a generated theme to return, represented as milleseconds from epoch time
A Base64 encoded string representing an opaque cursor position
Specific number of results to return
1 <= x <= 1000An integer id for a specific Survey
true/false(default). If true, the API will return visitorSnapshots, which contains all events, attributes, triggeringEvent, and eventProperties set for the visitor at the time of survey delivery.
true/false (default). If true, the API will return the page URL from which the survey was taken.
true/false (default). If true, the API will return the metadata JSON blob containing details available from the client.
true/false (default). If true, the API will return any custom metadata associated with the response (applicable to link platform surveys only).
true/false (default). If true, the API will return the responses that have been previously deleted.
curl --request GET \
--url https://api.sprig.com/v1/responses \
--header 'Authorization: <authorization>'{
"cursor": "cursor",
"data": [
{
"createdAt": "2023-10-19T17:04:26.253Z",
"externalUserId": null,
"questionId": 2,
"questionText": "Consent / Legal Question",
"questionType": "CONSENTLEGAL",
"response": {
"submitted": true
},
"responseGroupUid": "9fa86a17-82b1-423a-979a-30ee35ada562",
"surveyId": 1,
"updatedAt": "2023-10-19T17:04:26.253Z",
"visitorId": 0,
"visitorUuid": "3b7b4806-c082-4f0c-a8f0-b869121f47cb"
}
]
}