latestOpenAPI 3.0.32026-08-12367267.0 KB
cda4b2b11372
Get file from the question
This endpoint allows you to retrieve a file attached to a specific question in a questionnaire.
Parameters:
- companyKey (string, required) - The company's secret key.
- sessionId (string, required) - The unique identifier of the session.
- stepKey (string, required) – The unique key of the questionnaire step.
- questionKey(string, required) – The unique key of the question within the questionnaire.
- fileIndex (integer, optional) – The index of the file when multiple files are uploaded to a question. This is used to reference a specific file within the question’s attachments.
post/get-question-file
Request body
Example request
{
"companyKey": "your-company-secret-key",
"sessionId": "example-session-id-12345",
"stepKey": "user-questionnaire-1",
"questionKey": "question-1",
"fileIndex": 0
}Response
Success
Example response
{
"result": {
"contentType": "application/pdf | image/png | image/jpeg"
}
}