curl --request GET \
--url https://app.formbricks.com/api/v2/responses \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"finished": true,
"surveyId": "<string>",
"contactId": "<string>",
"endingId": "<string>",
"data": {
"question1": "answer1",
"question2": 2,
"question3": [
"answer3",
"answer4"
],
"question4": {
"subquestion1": "answer5"
}
},
"variables": {
"variable1": "answer1",
"variable2": 2
},
"ttc": {
"question1": 10,
"question2": 20
},
"meta": {
"source": "https://example.com",
"url": "https://example.com",
"userAgent": {
"browser": "Chrome",
"os": "Windows",
"device": "Desktop"
},
"country": "US",
"action": "click"
},
"contactAttributes": {
"attribute1": "value1",
"attribute2": "value2"
},
"singleUseId": "<string>",
"language": "en",
"displayId": "<string>"
}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}Gets responses from the database.
curl --request GET \
--url https://app.formbricks.com/api/v2/responses \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"finished": true,
"surveyId": "<string>",
"contactId": "<string>",
"endingId": "<string>",
"data": {
"question1": "answer1",
"question2": 2,
"question3": [
"answer3",
"answer4"
],
"question4": {
"subquestion1": "answer5"
}
},
"variables": {
"variable1": "answer1",
"variable2": 2
},
"ttc": {
"question1": 10,
"question2": 20
},
"meta": {
"source": "https://example.com",
"url": "https://example.com",
"userAgent": {
"browser": "Chrome",
"os": "Windows",
"device": "Desktop"
},
"country": "US",
"action": "click"
},
"contactAttributes": {
"attribute1": "value1",
"attribute2": "value2"
},
"singleUseId": "<string>",
"language": "en",
"displayId": "<string>"
}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}Use your Formbricks x-api-key to authenticate.
Number of items to return Number of items to return
1 <= x <= 250Number of items to skip Number of items to skip
x >= 0Sort by field Sort by field
createdAt, updatedAt Sort order Sort order
asc, desc Start date Start date
End date End date
Date field to filter by Date field to filter by
createdAt, updatedAt Responses retrieved successfully.
Show child attributes
The ID of the response
The date and time the response was created
"2021-01-01T00:00:00.000Z"
The date and time the response was last updated
"2021-01-01T00:00:00.000Z"
Whether the response is finished
true
The ID of the survey
The ID of the contact
The ID of the ending
The meta data of the response
Show child attributes
The source of the response
"https://example.com"
The URL of the response
"https://example.com"
{
"source": "https://example.com",
"url": "https://example.com",
"userAgent": {
"browser": "Chrome",
"os": "Windows",
"device": "Desktop"
},
"country": "US",
"action": "click"
}The single use ID of the response
The language of the response
"en"
The display ID of the response
Was this page helpful?