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

# Suspended task payload

> Retrieves the payload with which a task was suspended, typically for tasks awaiting external interaction or data.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/samplehc/openapi.documented.yml get /api/v2/tasks/{taskId}/suspended-payload
openapi: 3.0.3
info:
  title: Sample Healthcare API
  description: API for Sample Healthcare
  version: 1.0.0
servers: []
security: []
paths:
  /api/v2/tasks/{taskId}/suspended-payload:
    get:
      tags:
        - Task
      summary: Suspended task payload
      description: >-
        Retrieves the payload with which a task was suspended, typically for
        tasks awaiting external interaction or data.
      parameters:
        - schema:
            type: string
          in: path
          name: taskId
          required: true
          description: The unique identifier of the suspended task.
      responses:
        '200':
          description: The payload of the suspended task.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: >-
                      Not Found, the task with the specified ID was not found or
                      is not suspended.
                required:
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: >-
                      Internal server error while retrieving the suspended
                      payload.
                required:
                  - error
                additionalProperties: false

````