---
title: "Get file from the question"
method: POST
path: "/get-question-file"
---

# Get file from the question

`POST /get-question-file`

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.

## Request body

- GetQuestionFile
  - `companyKey` string
  - `sessionId` string
  - `stepKey` string
  - `questionKey` string
  - `fileIndex` number

## Response `200`

Success

- GetQuestionFileResponse
  - `result` object
    - `contentType` string

---

[API](https://skmtc.net/identomat/apis/generated-api.md) · [All operations](https://skmtc.net/identomat/apis/generated-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/identomat/generated-api/revisions/cda4b2b11372/schema)
