> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Human Input Form

> **Available for**: Chatflow, Workflow apps.

Returns the contents of a paused Human Input form. Requires web app delivery on an old Human Input node, or **Initiator** among the recipients of a new one.

For the full sequence of Human Input calls, see [Human Input Flow](/en/api-reference/guides/human-input-flow).



## OpenAPI

````yaml /en/api-reference/openapi_service.json get /form/human_input/{form_token}
openapi: 3.0.1
info:
  description: >-
    REST API for Dify applications and knowledge bases. Application endpoints
    authenticate with an app API key; knowledge endpoints authenticate with a
    dataset API key.
  title: Dify Service API
  version: 1.0.0
servers:
  - description: >-
      Base URL of the Dify Service API. For self-hosted deployments, replace it
      with your own API base URL.
    url: https://{api_base_url}
    variables:
      api_base_url:
        default: api.dify.ai/v1
        description: Host and path of the API base URL, without the `https://` prefix.
security:
  - ApiKeyAuth: []
tags:
  - description: Operations related to chat messages and interactions.
    name: Chat Messages
  - description: File upload and preview operations.
    name: Files
  - description: Operations related to end user information.
    name: End Users
  - description: User feedback operations.
    name: Feedback
  - description: Operations related to managing conversations.
    name: Conversations
  - description: Text-to-Speech and Speech-to-Text operations.
    name: Audio
  - description: Operations to retrieve application settings and information.
    name: Applications
  - description: Operations related to managing annotations for direct replies.
    name: Annotations
  - description: Endpoints for resuming paused workflows that require human input.
    name: Human Input
  - description: Operations for executing and managing workflows.
    name: Workflow Runs
  - description: Operations related to text generation and completion.
    name: Completion Messages
  - description: >-
      Operations for managing knowledge bases, including creation,
      configuration, and retrieval.
    name: Knowledge Bases
  - description: >-
      Operations for creating, updating, and managing documents within a
      knowledge base.
    name: Documents
  - description: Operations for managing document chunks and child chunks.
    name: Chunks
  - description: >-
      Operations for managing knowledge base metadata fields and document
      metadata values.
    name: Metadata
  - description: Operations for managing knowledge base tags and tag bindings.
    name: Tags
  - description: Operations for retrieving available models.
    name: Models
  - description: >-
      Operations for managing and running knowledge pipelines, including
      datasource plugins and pipeline execution.
    name: Knowledge Pipeline
  - description: Ask a knowledge base a question and stream the answer.
    name: Queries
  - description: Inspect what a query retrieved and why.
    name: Query Records
  - description: Run a research question in the background and collect its results.
    name: Research Tasks
  - description: >-
      Read the documents in a knowledge base, their files, revisions, and
      chunks; label documents with metadata.
    name: Documents and Chunks
  - description: >-
      Follow, cancel, or retry indexing, and list the knowledge base's
      background tasks.
    name: Indexing Tasks
  - description: >-
      Follow the deletion of a document file, a batch of files, or a source
      until it finishes.
    name: Deletion Jobs
  - description: >-
      Manage the sources that feed a knowledge base, their sync schedules, and
      their connections.
    name: Sources
  - description: >-
      Sync a source now, import website pages or provider items, and follow,
      cancel, or retry the runs.
    name: Source Syncs and Imports
  - description: >-
      Read and change the knowledge base's models and retrieval settings, and
      follow the migration a change starts.
    name: Settings
paths:
  /form/human_input/{form_token}:
    get:
      tags:
        - Human Input
      summary: Get Human Input Form
      description: >-
        **Available for**: Chatflow, Workflow apps.


        Returns the contents of a paused Human Input form. Requires web app
        delivery on an old Human Input node, or **Initiator** among the
        recipients of a new one.


        For the full sequence of Human Input calls, see [Human Input
        Flow](/en/api-reference/guides/human-input-flow).
      operationId: getChatflowHumanInputForm
      parameters:
        - description: >-
            Access token for the paused form, returned in the
            `human_input_required` event from the Run Workflow or Send Chat
            Message endpoint in streaming mode.
          in: path
          name: form_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                success:
                  summary: Response Example
                  value:
                    expiration_time: 1745510400
                    form_content: >-
                      Please review the draft, edit it if needed, and approve or
                      request changes.


                      {{#$output.draft#}}


                      Feedback for the writer:


                      {{#$output.feedback#}}


                      Priority:


                      {{#$output.priority#}}


                      Cover image:


                      {{#$output.attachment#}}


                      Supporting documents:


                      {{#$output.attachments#}}
                    inputs:
                      - default:
                          selector:
                            - '1745298311954'
                            - text
                          type: variable
                          value: ''
                        output_variable_name: draft
                        type: paragraph
                      - default:
                          selector: []
                          type: constant
                          value: No changes needed.
                        output_variable_name: feedback
                        type: paragraph
                      - option_source:
                          selector: []
                          type: constant
                          value:
                            - low
                            - medium
                            - high
                        output_variable_name: priority
                        type: select
                      - allowed_file_extensions: []
                        allowed_file_types:
                          - image
                          - document
                        allowed_file_upload_methods:
                          - local_file
                          - remote_url
                        output_variable_name: attachment
                        type: file
                      - allowed_file_extensions: []
                        allowed_file_types:
                          - image
                          - document
                        allowed_file_upload_methods:
                          - local_file
                          - remote_url
                        number_limits: 5
                        output_variable_name: attachments
                        type: file-list
                    resolved_default_values:
                      draft: >-
                        Our April release adds scheduled exports and faster
                        search. Turn them on from the Settings page.
                    user_actions:
                      - button_style: primary
                        id: approve
                        title: Approve
                      - button_style: default
                        id: reject
                        title: Request changes
              schema:
                properties:
                  expiration_time:
                    description: >-
                      Unix timestamp (seconds) after which this form can no
                      longer be submitted.
                    format: int64
                    nullable: true
                    type: integer
                  form_content:
                    description: >-
                      The form's body in Markdown, with the run's variables
                      already filled in. Place each input where its placeholder,
                      `{{#$output.<output_variable_name>#}}`, appears.
                    type: string
                  inputs:
                    description: Form input field definitions.
                    items:
                      properties:
                        allowed_file_extensions:
                          description: >-
                            File extensions allowed when `allowed_file_types`
                            includes `custom`, as the builder entered them, such
                            as `.md`. Dify ignores case and the leading `.` when
                            it checks a file against them. Present for `file`
                            and `file-list` inputs.
                          items:
                            type: string
                          type: array
                        allowed_file_types:
                          description: >-
                            File categories the recipient may upload. Present
                            for `file` and `file-list` inputs. Values: `image`,
                            `document`, `audio`, `video`, `custom`.
                          items:
                            type: string
                          type: array
                        allowed_file_upload_methods:
                          description: >-
                            Upload methods the recipient may use. Values:
                            `local_file`, `remote_url`. Present for `file` and
                            `file-list` inputs.
                          items:
                            type: string
                          type: array
                        default:
                          description: >-
                            A `paragraph` input's default, as the builder
                            configured it; `null` when it has none. Absent from
                            other input types.


                            To pre-fill the field, use `value` when `type` is
                            `constant`, and
                            `resolved_default_values[output_variable_name]` when
                            `type` is `variable`.
                          nullable: true
                          properties:
                            selector:
                              deprecated: true
                              description: >-
                                Legacy field: the variable's path when `type` is
                                `variable`. Use `resolved_default_values`
                                instead.
                              items:
                                type: string
                              type: array
                            type:
                              description: >-
                                `constant` for fixed text in `value`, or
                                `variable` for a workflow variable whose value
                                in this run is in `resolved_default_values`.
                              type: string
                            value:
                              description: >-
                                The text to pre-fill when `type` is `constant`.
                                When `type` is `variable`, ignore it: it isn't
                                the run's value and is often `""`.
                              type: string
                          type: object
                        number_limits:
                          description: >-
                            Maximum number of files the recipient may upload.
                            Present only for `file-list` inputs.
                          type: integer
                        option_source:
                          description: >-
                            A `select` input's options, listed in `value`.
                            Absent from other input types.
                          properties:
                            selector:
                              deprecated: true
                              description: Legacy field. Use the options in `value`.
                              items:
                                type: string
                              type: array
                            type:
                              description: Always `constant` on this endpoint.
                              type: string
                            value:
                              description: >-
                                The options the recipient can choose from,
                                already resolved when the builder took them from
                                a variable.
                              items:
                                type: string
                              type: array
                          type: object
                        output_variable_name:
                          description: >-
                            Variable name used to reference this input's
                            submitted value inside the workflow. Corresponds to
                            the key in the submission `inputs` object.
                          type: string
                        type:
                          description: >-
                            Form input control type. Available values:
                            `paragraph` (multi-line text input), `select`
                            (single-choice from a list), `file` (single file
                            upload), and `file-list` (multiple file uploads).
                          type: string
                      type: object
                    type: array
                  resolved_default_values:
                    additionalProperties:
                      type: string
                    description: >-
                      Each variable default's value in this run, keyed by the
                      `paragraph` input's `output_variable_name`. Pre-fill a
                      field from here when its `default.type` is `variable`.


                      Constant defaults aren't included: pre-fill those from
                      `default.value`.


                      Values are strings; an object or list arrives as JSON
                      text. A variable with no value in this run comes back as
                      `""` or with no key at all. Either way, leave the field
                      empty.
                    type: object
                  user_actions:
                    description: Available submission actions.
                    items:
                      properties:
                        button_style:
                          description: >-
                            Visual style of the button. Available values:
                            `primary`, `default`, `accent`, `ghost`.
                          type: string
                        id:
                          description: >-
                            Identifier of the action button. Pass as `action` on
                            [Submit Human Input
                            Form](/en/api-reference/human-input/submit-human-input-form)
                            when the recipient selects this button.
                          maxLength: 20
                          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
                          type: string
                        title:
                          description: Button label shown to the recipient.
                          maxLength: 100
                          type: string
                      type: object
                    type: array
                type: object
          description: Form contents retrieved successfully.
        '404':
          content:
            application/json:
              examples:
                not_found:
                  summary: not_found
                  value:
                    code: not_found
                    message: Form not found
                    status: 404
          description: '`not_found` : Form not found.'
        '412':
          content:
            application/json:
              examples:
                human_input_form_expired:
                  summary: human_input_form_expired
                  value:
                    code: human_input_form_expired
                    message: >-
                      This form has expired,
                      form_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    status: 412
                human_input_form_submitted:
                  summary: human_input_form_submitted
                  value:
                    code: human_input_form_submitted
                    message: >-
                      This form has already been submitted by another user,
                      form_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    status: 412
          description: >-
            - `human_input_form_submitted` : Form already submitted. Forms are
            one-shot; the first response wins regardless of which user submits
            it.

            - `human_input_form_expired` : The form's expiration time has
            passed, or its run was stopped (for example, with [Stop Workflow
            Task](/en/api-reference/workflow-runs/stop-workflow-task) or [Stop
            Chat Message
            Generation](/en/api-reference/chat-messages/stop-chat-message-generation)).
components:
  securitySchemes:
    ApiKeyAuth:
      bearerFormat: API_KEY
      description: >-
        Every request authenticates with an API key: `Authorization: Bearer
        {API_KEY}`. App endpoints take an app API key; knowledge endpoints take
        a knowledge base API key ([Get
        Started](/en/api-reference/guides/get-started)).


        Keep keys server-side; never embed them in client code. Requests with a
        missing or invalid key fail with HTTP `401` (`unauthorized`).
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.