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

# Get Task Status

> Return Cloud Tasks metadata for a given task ID.

Includes counts (dispatch_count, response_count), timestamps, and the
first/last attempt response status when available.



## OpenAPI

````yaml /openapi-webhooks.json get /api/v1/tasks/{task_id}
openapi: 3.1.0
info:
  title: Nest Data Pipeline - Webhooks
  version: 0.3.0
servers:
  - url: https://webhooks.nest.vet
security: []
paths:
  /api/v1/tasks/{task_id}:
    get:
      tags:
        - tasks
      summary: Get Task Status
      description: |-
        Return Cloud Tasks metadata for a given task ID.

        Includes counts (dispatch_count, response_count), timestamps, and the
        first/last attempt response status when available.
      operationId: get_task_status_api_v1_tasks__task_id__get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TaskStatusResponse:
      properties:
        task_id:
          type: string
          title: Task Id
          description: Cloud Tasks identifier (short task ID used in API paths).
        dispatch_count:
          type: integer
          title: Dispatch Count
          description: Total number of times the task has been dispatched.
        response_count:
          type: integer
          title: Response Count
          description: Total number of handler responses observed for this task.
        create_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Create Time
          description: UTC time when the task was created.
        schedule_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Schedule Time
          description: UTC time when the task is scheduled to run.
        dispatch_deadline_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Dispatch Deadline Seconds
          description: >-
            Per-dispatch timeout in seconds before Cloud Tasks considers the
            attempt failed.
        first_attempt:
          anyOf:
            - $ref: '#/components/schemas/TaskAttemptInfo'
            - type: 'null'
          description: Metadata for the first delivery attempt (if any).
        last_attempt:
          anyOf:
            - $ref: '#/components/schemas/TaskAttemptInfo'
            - type: 'null'
          description: Metadata for the most recent delivery attempt (if any).
      type: object
      required:
        - task_id
        - dispatch_count
        - response_count
      title: TaskStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TaskAttemptInfo:
      properties:
        schedule_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Schedule Time
          description: UTC time when this attempt was scheduled for execution.
        dispatch_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Dispatch Time
          description: UTC time when this attempt was dispatched to the target endpoint.
        response_status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Response Status Code
          description: HTTP status code returned by the target for this attempt (if any).
        response_status_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Response Status Message
          description: >-
            Status message associated with the attempt's response (if
            available).
      type: object
      title: TaskAttemptInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````