Almost every endpoint completes within the request. A small number of operations do real work in the background — generating a document, calling a payment provider, processing an unbounded collection — and those return immediately with a task you poll.

You can tell them apart from the reference: an asynchronous operation is documented as returning **202 Accepted**.

### The pattern

**1. Start the work.** The operation returns `202` with a task:

```json
{
    "id": "6512a0b3f8d4c21a9e7b3f09",
    "task_type": "create_pay_link",
    "status": "pending",
    "result_resource_type": null,
    "result_resource_id": null,
    "failure_reason": null,
    "created_at": "2026-08-11T14:30:52Z",
    "updated_at": "2026-08-11T14:30:52Z"
}
```

**2. Poll for completion** at the single shared status endpoint, using the task's `id`:

```
GET /api/v3/async_tasks/6512a0b3f8d4c21a9e7b3f09
```

Every asynchronous operation in the API polls the same endpoint. There is one to implement, not one per feature.

**3. Fetch the result.** On success the task carries a **pointer**, not the result itself:

```json
{
    "status": "succeeded",
    "result_resource_type": "pay_link",
    "result_resource_id": "6512a0b3f8d4c21a9e7b3f10"
}
```

Read the finished record from that resource's own endpoint — here, `GET /api/v3/pay_links/6512a0b3f8d4c21a9e7b3f10`. The task never carries the result inline and never carries a URL, so the result is always fetched through a documented, typed endpoint you already know how to read.

### Status values

| `status`    | Meaning                                                        |
| ----------- | -------------------------------------------------------------- |
| `pending`   | Still running. Keep polling.                                   |
| `succeeded` | Done. `result_resource_type` and `result_resource_id` are set. |
| `failed`    | Terminal. `failure_reason` explains why. Do not keep polling.  |

`pending` means background work in flight and nothing else. A business state that merely sounds pending — awaiting payment, awaiting approval — is a different field with its own specific value.

### Polling advice

Poll with a short initial delay and back off — roughly one second, then two, then four, capping around thirty. Do not poll in a tight loop.

**Tasks do not live forever.** They are retained for a limited period after their last update and then removed. Polling a task past its retention returns **404**, so treat a 404 on a task you have not seen complete as an inconclusive result, not as a failure — check the target resource before retrying the operation.

**No result is delivered to you.** There are no webhooks or callbacks for task completion, and there is no `Location` header on the `202`. Polling is the only mechanism.
