---
title: "Query Task Workflow"
method: GET
path: "/tasks/{task_id}/query/{query_name}"
tags: ["Tasks"]
---

# Query Task Workflow

`GET /tasks/{task_id}/query/{query_name}`

Query a Temporal workflow associated with a task for its current state.

## Path parameters

- `query_name` string, required
- `task_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/scaleapi/apis/agentex-api.md) · [All operations](https://skmtc.dev/scaleapi/apis/agentex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scaleapi/agentex-api/revisions/1e0aaafd5780/schema)
