---
title: "GET /document-context/questions"
method: GET
path: "/document-context/questions"
tags: ["Uploads"]
---

# GET /document-context/questions

`GET /document-context/questions`

The upload form's questions (Tally asks the same) and the organization's latest answers as prefill. enabled is false, with no questions, while DOCUMENT_LEDGER_POLICY_ENABLED is off.

## Response `200`

The questions

- DocumentContextQuestionsResponse
  - `data` DocumentContextQuestions, required
    - `enabled` boolean, required — DOCUMENT_LEDGER_POLICY_ENABLED on this server. False: no questions, nothing pre-filled, and the form is not shown (its answers would not be used).
    - `prefill` DocumentContext, required — The upload form's answers (GET /document-context/questions), every one optional. Validated before it is stored: an unknown field, a wrong type or a value not offered answers 400 VALIDATION_ERROR with details.field "documentContext". An analyze request without it keeps the upload's stored form; one with it replaces the form ({} with an empty one), also when the request attaches to the live analyze job, for the next read.
      - `documentKind` 'general_ledger' | 'purchase_ledger' | 'expense_report' | 'other'
      - `exclude` string
      - `period` string
      - `utilityBillsSeparate` 'yes' | 'no' | 'not_sure'
    - `questions` DocumentContextQuestion[], required
      - `choices` DocumentContextChoice[]
        - `label` string, required
        - `value` string, required
      - `id` string, required — The DocumentContext field it fills.
      - `kind` 'choice' | 'text', required
      - `maxLength` integer
      - `text` string, required
    - `version` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

## Changes

- **2026-10-04** `77d466d0e73d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greentally/apis/esgai-api/changes/document-context/questions/get.md)

---

[API](https://skmtc.dev/greentally/apis/esgai-api.md) · [All operations](https://skmtc.dev/greentally/apis/esgai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/greentally/apis/esgai-api/revisions/77d466d0e73d?raw)
