Apache Airflow · Capability

Airflow API — Task Instance

Airflow API — Task Instance. 25 operations. Lead operation: Airflow Post Clear Task Instances. Self-contained Naftiko capability covering one Airflow business surface.

Run with Naftiko AirflowTask Instance

What You Can Do

POST
Postcleartaskinstances — Airflow Post Clear Task Instances
/v1/api/v2/dags/{dag-id}/cleartaskinstances
GET
Gethitldetails — Airflow Get Hitl Details
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/hitldetails
GET
Gettaskinstances — Airflow Get Task Instances
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances
PATCH
Bulktaskinstances — Airflow Bulk Task Instances
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances
POST
Gettaskinstancesbatch — Airflow Get Task Instances Batch
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/list
GET
Gettaskinstance — Airflow Get Task Instance
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}
PATCH
Patchtaskinstance — Airflow Patch Task Instance
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}
DELETE
Deletetaskinstance — Airflow Delete Task Instance
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}
GET
Gettaskinstancedependencies — Airflow Get Task Instance Dependencies
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/dependencies
PATCH
Patchtaskinstancedryrun — Airflow Patch Task Instance Dry Run
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/dry-run
GET
Getexternallogurl — Airflow Get External Log Url
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/externallogurl/{try-number}
GET
Getextralinks — Airflow Get Extra Links
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/links
GET
Getmappedtaskinstances — Airflow Get Mapped Task Instances
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/listmapped
GET
Getlog — Airflow Get Log
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/logs/{try-number}
GET
Gettaskinstancetries — Airflow Get Task Instance Tries
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/tries
GET
Gettaskinstancetrydetails — Airflow Get Task Instance Try Details
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/tries/{task-try-number}
GET
Getmappedtaskinstance — Airflow Get Mapped Task Instance
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}
PATCH
Patchtaskinstancebymapindex — Airflow Patch Task Instance
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}
GET
Gettaskinstancedependenciesbymapindex — Airflow Get Task Instance Dependencies
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/dependencies
PATCH
Patchtaskinstancedryrunbymapindex — Airflow Patch Task Instance Dry Run
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/dry-run
PATCH
Updatehitldetail — Airflow Update Hitl Detail
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/hitldetails
GET
Gethitldetail — Airflow Get Hitl Detail
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/hitldetails
GET
Gethitldetailtrydetail — Airflow Get Hitl Detail Try Detail
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/hitldetails/tries/{try-number}
GET
Getmappedtaskinstancetries — Airflow Get Mapped Task Instance Tries
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/tries
GET
Getmappedtaskinstancetrydetails — Airflow Get Mapped Task Instance Try Details
/v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/taskinstances/{task-id}/{map-index}/tries/{task-try-number}

MCP Tools

airflow-post-clear-task-instances

Airflow Post Clear Task Instances

airflow-get-hitl-details

Airflow Get Hitl Details

read-only idempotent
airflow-get-task-instances

Airflow Get Task Instances

read-only idempotent
airflow-bulk-task-instances

Airflow Bulk Task Instances

idempotent
airflow-get-task-instances-batch

Airflow Get Task Instances Batch

read-only
airflow-get-task-instance

Airflow Get Task Instance

read-only idempotent
airflow-patch-task-instance

Airflow Patch Task Instance

idempotent
airflow-delete-task-instance

Airflow Delete Task Instance

idempotent
airflow-get-task-instance-dependencies

Airflow Get Task Instance Dependencies

read-only idempotent
airflow-patch-task-instance-dry

Airflow Patch Task Instance Dry Run

idempotent
airflow-get-external-log-url

Airflow Get External Log Url

read-only idempotent
airflow-get-extra-links

Airflow Get Extra Links

read-only idempotent
airflow-get-mapped-task-instances

Airflow Get Mapped Task Instances

read-only idempotent
airflow-get-log

Airflow Get Log

read-only idempotent
airflow-get-task-instance-tries

Airflow Get Task Instance Tries

read-only idempotent
airflow-get-task-instance-try

Airflow Get Task Instance Try Details

read-only idempotent
airflow-get-mapped-task-instance

Airflow Get Mapped Task Instance

read-only idempotent
airflow-patch-task-instance-2

Airflow Patch Task Instance

idempotent
airflow-get-task-instance-dependencies-2

Airflow Get Task Instance Dependencies

read-only idempotent
airflow-patch-task-instance-dry-2

Airflow Patch Task Instance Dry Run

idempotent
airflow-update-hitl-detail

Airflow Update Hitl Detail

idempotent
airflow-get-hitl-detail

Airflow Get Hitl Detail

read-only idempotent
airflow-get-hitl-detail-try

Airflow Get Hitl Detail Try Detail

read-only idempotent
airflow-get-mapped-task-instance-2

Airflow Get Mapped Task Instance Tries

read-only idempotent
airflow-get-mapped-task-instance-3

Airflow Get Mapped Task Instance Try Details

read-only idempotent

Capability Spec

airflow-task-instance.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Airflow API — Task Instance
  description: 'Airflow API — Task Instance. 25 operations. Lead operation: Airflow Post Clear Task Instances. Self-contained
    Naftiko capability covering one Airflow business surface.'
  tags:
  - Airflow
  - Task Instance
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AIRFLOW_API_KEY: AIRFLOW_API_KEY
capability:
  consumes:
  - type: http
    namespace: airflow-task-instance
    baseUri: ''
    description: Airflow API — Task Instance business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-dags-dag_id-clearTaskInstances
      path: /api/v2/dags/{dag_id}/clearTaskInstances
      operations:
      - name: postcleartaskinstances
        method: POST
        description: Airflow Post Clear Task Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-hitlDetails
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/hitlDetails
      operations:
      - name: gethitldetails
        method: GET
        description: Airflow Get Hitl Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: integer
        - name: order_by
          in: query
          type: array
          description: 'Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported
            attributes: `ti_id, subject, responded_at, created_at,'
        - name: dag_id_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: task_id
          in: query
          type: string
        - name: task_id_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: map_index
          in: query
          type: string
        - name: state
          in: query
          type: array
        - name: response_received
          in: query
          type: string
        - name: responded_by_user_id
          in: query
          type: array
        - name: responded_by_user_name
          in: query
          type: array
        - name: subject_search
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: body_search
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: created_at_gte
          in: query
          type: string
        - name: created_at_gt
          in: query
          type: string
        - name: created_at_lte
          in: query
          type: string
        - name: created_at_lt
          in: query
          type: string
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances
      operations:
      - name: gettaskinstances
        method: GET
        description: Airflow Get Task Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: cursor
          in: query
          type: string
          description: Cursor for keyset-based pagination. Pass an empty string for the first page, then use ``next_cursor``
            from the response. When ``cursor`` is provided, ``offset``
        - name: task_id
          in: query
          type: string
        - name: run_after_gte
          in: query
          type: string
        - name: run_after_gt
          in: query
          type: string
        - name: run_after_lte
          in: query
          type: string
        - name: run_after_lt
          in: query
          type: string
        - name: logical_date_gte
          in: query
          type: string
        - name: logical_date_gt
          in: query
          type: string
        - name: logical_date_lte
          in: query
          type: string
        - name: logical_date_lt
          in: query
          type: string
        - name: start_date_gte
          in: query
          type: string
        - name: start_date_gt
          in: query
          type: string
        - name: start_date_lte
          in: query
          type: string
        - name: start_date_lt
          in: query
          type: string
        - name: end_date_gte
          in: query
          type: string
        - name: end_date_gt
          in: query
          type: string
        - name: end_date_lte
          in: query
          type: string
        - name: end_date_lt
          in: query
          type: string
        - name: updated_at_gte
          in: query
          type: string
        - name: updated_at_gt
          in: query
          type: string
        - name: updated_at_lte
          in: query
          type: string
        - name: updated_at_lt
          in: query
          type: string
        - name: duration_gte
          in: query
          type: string
        - name: duration_gt
          in: query
          type: string
        - name: duration_lte
          in: query
          type: string
        - name: duration_lt
          in: query
          type: string
        - name: task_display_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: task_group_id
          in: query
          type: string
          description: Filter by exact task group ID. Returns all tasks within the specified task group.
        - name: dag_id_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: run_id_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: state
          in: query
          type: array
        - name: pool
          in: query
          type: array
        - name: pool_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: queue
          in: query
          type: array
        - name: queue_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: executor
          in: query
          type: array
        - name: version_number
          in: query
          type: array
        - name: try_number
          in: query
          type: array
        - name: operator
          in: query
          type: array
        - name: operator_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: map_index
          in: query
          type: array
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: integer
        - name: order_by
          in: query
          type: array
          description: 'Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported
            attributes: `id, state, duration, start_date, end_date'
      - name: bulktaskinstances
        method: PATCH
        description: Airflow Bulk Task Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-list
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/list
      operations:
      - name: gettaskinstancesbatch
        method: POST
        description: Airflow Get Task Instances Batch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}
      operations:
      - name: gettaskinstance
        method: GET
        description: Airflow Get Task Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
      - name: patchtaskinstance
        method: PATCH
        description: Airflow Patch Task Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: string
        - name: update_mask
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletetaskinstance
        method: DELETE
        description: Airflow Delete Task Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-dependencies
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies
      operations:
      - name: gettaskinstancedependencies
        method: GET
        description: Airflow Get Task Instance Dependencies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-dry_run
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dry_run
      operations:
      - name: patchtaskinstancedryrun
        method: PATCH
        description: Airflow Patch Task Instance Dry Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: string
        - name: update_mask
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-externalLogUrl-try_n
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/externalLogUrl/{try_number}
      operations:
      - name: getexternallogurl
        method: GET
        description: Airflow Get External Log Url
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: try_number
          in: path
          type: integer
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-links
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links
      operations:
      - name: getextralinks
        method: GET
        description: Airflow Get Extra Links
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-listMapped
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped
      operations:
      - name: getmappedtaskinstances
        method: GET
        description: Airflow Get Mapped Task Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: run_after_gte
          in: query
          type: string
        - name: run_after_gt
          in: query
          type: string
        - name: run_after_lte
          in: query
          type: string
        - name: run_after_lt
          in: query
          type: string
        - name: logical_date_gte
          in: query
          type: string
        - name: logical_date_gt
          in: query
          type: string
        - name: logical_date_lte
          in: query
          type: string
        - name: logical_date_lt
          in: query
          type: string
        - name: start_date_gte
          in: query
          type: string
        - name: start_date_gt
          in: query
          type: string
        - name: start_date_lte
          in: query
          type: string
        - name: start_date_lt
          in: query
          type: string
        - name: end_date_gte
          in: query
          type: string
        - name: end_date_gt
          in: query
          type: string
        - name: end_date_lte
          in: query
          type: string
        - name: end_date_lt
          in: query
          type: string
        - name: updated_at_gte
          in: query
          type: string
        - name: updated_at_gt
          in: query
          type: string
        - name: updated_at_lte
          in: query
          type: string
        - name: updated_at_lt
          in: query
          type: string
        - name: duration_gte
          in: query
          type: string
        - name: duration_gt
          in: query
          type: string
        - name: duration_lte
          in: query
          type: string
        - name: duration_lt
          in: query
          type: string
        - name: state
          in: query
          type: array
        - name: pool
          in: query
          type: array
        - name: pool_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: queue
          in: query
          type: array
        - name: queue_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: executor
          in: query
          type: array
        - name: version_number
          in: query
          type: array
        - name: try_number
          in: query
          type: array
        - name: operator
          in: query
          type: array
        - name: operator_name_pattern
          in: query
          type: string
          description: 'SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR
            logic (e.g. `dag1 | dag2`). Regular expressions are **not** '
        - name: map_index
          in: query
          type: array
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: integer
        - name: order_by
          in: query
          type: array
          description: 'Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported
            attributes: `id, state, duration, start_date, end_date'
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-logs-try_number
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number}
      operations:
      - name: getlog
        method: GET
        description: Airflow Get Log
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: try_number
          in: path
          type: integer
          required: true
        - name: full_content
          in: query
          type: boolean
        - name: map_index
          in: query
          type: integer
        - name: token
          in: query
          type: string
        - name: accept
          in: header
          type: string
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-tries
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries
      operations:
      - name: gettaskinstancetries
        method: GET
        description: Airflow Get Task Instance Tries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-tries-task_try_numbe
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number}
      operations:
      - name: gettaskinstancetrydetails
        method: GET
        description: Airflow Get Task Instance Try Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: task_try_number
          in: path
          type: integer
          required: true
        - name: map_index
          in: query
          type: integer
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}
      operations:
      - name: getmappedtaskinstance
        method: GET
        description: Airflow Get Mapped Task Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
      - name: patchtaskinstancebymapindex
        method: PATCH
        description: Airflow Patch Task Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: string
          required: true
        - name: update_mask
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-dependenci
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies
      operations:
      - name: gettaskinstancedependenciesbymapindex
        method: GET
        description: Airflow Get Task Instance Dependencies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-dry_run
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dry_run
      operations:
      - name: patchtaskinstancedryrunbymapindex
        method: PATCH
        description: Airflow Patch Task Instance Dry Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: string
          required: true
        - name: update_mask
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-hitlDetail
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/hitlDetails
      operations:
      - name: updatehitldetail
        method: PATCH
        description: Airflow Update Hitl Detail
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: gethitldetail
        method: GET
        description: Airflow Get Hitl Detail
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-hitlDetail
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/hitlDetails/tries/{try_number}
      operations:
      - name: gethitldetailtrydetail
        method: GET
        description: Airflow Get Hitl Detail Try Detail
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
        - name: try_number
          in: path
          type: string
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-tries
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries
      operations:
      - name: getmappedtaskinstancetries
        method: GET
        description: Airflow Get Mapped Task Instance Tries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
    - name: api-v2-dags-dag_id-dagRuns-dag_run_id-taskInstances-task_id-map_index-tries-task
      path: /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number}
      operations:
      - name: getmappedtaskinstancetrydetails
        method: GET
        description: Airflow Get Mapped Task Instance Try Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: dag_run_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
        - name: task_try_number
          in: path
          type: integer
          required: true
        - name: map_index
          in: path
          type: integer
          required: true
    authentication:
      type: bearer
      token: '{{env.AIRFLOW_API_KEY}}'
  exposes:
  - type: rest
    namespace: airflow-task-instance-rest
    port: 8080
    description: REST adapter for Airflow API — Task Instance. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v2/dags/{dag-id}/cleartaskinstances
      name: api-v2-dags-dag-id-cleartaskinstances
      description: REST surface for api-v2-dags-dag_id-clearTaskInstances.
      operations:
      - method: POST
        name: postcleartaskinstances
        description: Airflow Post Clear Task Instances
        call: airflow-task-instance.postcleartaskinstances
        with:
          dag_id: rest.dag_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/dags/{dag-id}/dagruns/{dag-run-id}/hitldetails
      name: api-v2-dags-dag-id-dagruns-dag-run-id-hitldetails
      description: REST surface for api-v2-dags-dag_id-dagRuns-dag_run_id-hitlDetails.
      operations:
      - method: GET
        name: gethitldetails
        description: Airflow Get Hitl Details
        call: airflow-task-instance.gethitldetails
        with:
          dag_id: rest.dag_id
          dag_run_id: rest.dag_run_id
          limit: rest.limit
          offset: rest.offset
          order_by: rest.order_by
          dag_id_pattern: rest.dag_id_pattern
          task_id: rest.task_id
          task_id_pattern: rest.task_id

# --- truncated at 32 KB (65 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/airflow/refs/heads/main/capabilities/airflow-task-instance.yaml