Trigger Airflow DAG run via stable REST API

domain: airflow.apache.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure Airflow 2.x is running with the REST API enabled; the stable API is available at /api/v1/ by default.
  2. Authenticate: obtain a session or use HTTP Basic Auth credentials passed in the Authorization header for each request.
  3. Send a POST request to /api/v1/dags/{dag_id}/dagRuns with a JSON body containing at minimum a logical_date or conf object.
  4. Inspect the response body: a 200 or 409 status with a dag_run_id field confirms the run was created or already exists.
  5. Poll GET /api/v1/dags/{dag_id}/dagRuns/{dag_run_id} until the state field is one of success, failed, or upstream_failed.
  6. Retrieve task-instance logs if needed via GET /api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances.

Known gotchas

Related routes

Trigger an Airflow 3 DAG run via the v2 REST API and retrieve the run status
airflow.apache.org · 5 steps · unrated
Configure Airflow 2.x REST API authentication and use it to programmatically manage DAG pausing, unpausing, and triggering from an external system
airflow.apache.org · 6 steps · unrated
Configure Airflow dataset-aware (data-driven) scheduling to trigger DAGs on upstream data availability
airflow.apache.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans