# Task APIs

**Base URL:** `/api/v1/tasks`

These endpoints allow callers to poll the status of asynchronous operations initiated by any Guardian `/push` endpoint, returning the task state, progress, and result or error detail.

**Authentication:** All endpoints require a valid JWT Bearer token (`Authorization: Bearer <token>`). Obtain a token via `POST /accounts/login`.

***

## Endpoints

| Method | Endpoint          | Description                                                  | Auth Required |
| ------ | ----------------- | ------------------------------------------------------------ | ------------- |
| GET    | `/tasks/{taskId}` | Return the current status and result of an asynchronous task | Yes           |

***

## Endpoint Details

* [Returning Task Statuses](/docs/develop/tasks-and-external/task-apis/returning-task-statuses.md) — `GET /tasks/{taskId}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guardian.hedera.com/docs/develop/tasks-and-external/task-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
