Retrieve answers for a respondent
GET
https://www.rapidoform.com/be/api/response/questionwise/:respondentsId/:startDate?/:endDate?
All requests require X-EMAIL and X-API-KEY. See authentication and errors. JSON request bodies also require Content-Type: application/json. All IDs in examples are synthetic; replace them with your own values.
Parameters
| Name | Type / location | Description |
|---|---|---|
| respondentsId | path string | Use the respondentsId field from a respondent record, not its MongoDB _id. |
| surveyId | query number | Recommended parent form ID. Required when the respondent ID occurs in more than one form. |
| startDate, endDate | path string | Optional YYYY-MM-DD dates. Supply both to filter answer creation timestamps; one date alone does not apply a filter. |
Returns result entries with question, userResponse, enableQuestion, respondentsId and respondents. The answer shape depends on the question type. Use surveyId to disambiguate repeated respondent IDs.
Example request
curl --request GET 'https://www.rapidoform.com/be/api/response/questionwise/EXAMPLE_RESPONDENT?surveyId=12345' \
--header "X-EMAIL: $RAPIDOFORM_EMAIL" \
--header "X-API-KEY: $RAPIDOFORM_API_KEY"
Response
Examples show selected fields, not every stored property. Empty arrays are valid for list/report endpoints.
{
"Errors": [],
"Info": [],
"Data": [
{
"result": []
}
],
"ErrorCode": "SUCCESS",
"fieldErrors": {
"List": []
}
}
HTTP 200 alone does not indicate success. Check ErrorCode and Errors; see troubleshooting.