---
title: "Get Task Runs Graph Data"
method: GET
path: "/query/v2/tasks/runs_graph_data"
tags: ["QUERIES_V2"]
---

# Get Task Runs Graph Data

`GET /query/v2/tasks/runs_graph_data`

Per-day cost + runtime time series for ONE Snowflake task (the cost graph
on the task-detail drill-down). Scoped to the qualified (database_name,
schema_name, name) identity, summed across every warehouse the task ran on,
read from snowflake_tasks_aggregated. ``start_date`` / ``end_date`` are
optional (the UI date picker): when supplied the series is limited to that
range; when omitted it covers the task's full retained history. Warehouse
RBAC is enforced inline (the rollup carries warehouse_name).

## Query parameters

- `database_name` string, required
- `schema_name` string, required
- `name` string, required
- `start_date` string, date-time, nullable
- `end_date` string, date-time, nullable
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- WorkloadGraphDataResponse
  - `data` object[], required

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
