Apache Airflow Task Instance API (v2)

The Task Instance API from Apache Airflow — 20 operation(s) for task instance.

Operations 25

GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} Airflow Get Task Instance #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} Airflow Patch Task Instance #
DELETE /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} Airflow Delete Task Instance #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped Airflow Get Mapped Task Instances #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies Airflow Get Task Instance Dependencies #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies Airflow Get Task Instance Dependencies #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries Airflow Get Task Instance Tries #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries Airflow Get Mapped Task Instance Tries #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index} Airflow Get Mapped Task Instance #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index} Airflow Patch Task Instance #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances Airflow Get Task Instances #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances Airflow Bulk Task Instances #
POST /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/list Airflow Get Task Instances Batch #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number} Airflow Get Task Instance Try Details #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number} Airflow Get Mapped Task Instance Try Details #
POST /api/v2/dags/{dag_id}/clearTaskInstances Airflow Post Clear Task Instances #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dry_run Airflow Patch Task Instance Dry Run #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dry_run Airflow Patch Task Instance Dry Run #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} Airflow Get Log #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/externalLogUrl/{try_number} Airflow Get External Log Url #
PATCH /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/hitlDetails Airflow Update Hitl Detail #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/hitlDetails Airflow Get Hitl Detail #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/hitlDetails/tries/{try_number} Airflow Get Hitl Detail Try Detail #
GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/hitlDetails Airflow Get Hitl Details #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/airflow-task-instance-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

airflow-task-instance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Airflow Task Instance API
  description: Airflow API. All endpoints located under ``/api/v2`` can be used safely, are stable and backward compatible. Endpoints located under ``/ui`` are dedicated to the UI and are subject to breaking change depending on the need of the frontend. Users should not rely on those but use the public ones instead.
  version: '2'
tags:


# --- truncated at 32 KB (115 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/apache-airflow/refs/heads/main/openapi/airflow-task-instance-api-openapi.yml