> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Follow work that is still in progress

> How V3 reports a write that has not finished: write receipts, proposal rounds, reads and webhooks, and when an AdCP task id appears instead.

Most V3 writes finish inside the call. Some do not: a retry after a lost
response, a proposal round that is still contacting sellers, or a buy a seller
is still moderating. V3 reports each of these through a typed result you read
again, not through one shared task queue. This page says which mechanism
applies and what to do next.

| Situation | What you get | What to do |
| - | - | - |
| A keyed HTTP write is still recovering | `202 Accepted`, `Retry-After` and `data.receipt` | [Poll the receipt](https://docs.apostra.com/v3/async-progress.md#write-receipts) |
| `request_proposals` is contacting sellers | `status: "running"` | [Retry the same key](https://docs.apostra.com/v3/async-progress.md#proposal-rounds) until it is terminal |
| A buy is waiting on a seller or on you | A media buy status and `pendingReason` | [Read the media buy](https://docs.apostra.com/v3/async-progress.md#read-the-resource) |
| You want to hear about a change | A signed webhook | [Subscribe, then repair with a read](https://docs.apostra.com/v3/async-progress.md#webhooks) |
| You called a storefront directly over AdCP | An AdCP `task_id` | [Follow the AdCP task](https://docs.apostra.com/v3/async-progress.md#the-adcp-task-envelope) |

## Write receipts

Send an `Idempotency-Key` header with every V3 HTTP write. When a write is still
in flight or its outcome is uncertain, retrying the same operation, key and body
returns `202 Accepted` with a `Retry-After` header. Every `202` carries
`data.receipt`: an opaque ID, the operation, a state, a state version, a change
time and a `pendingReason`.

Poll that exact receipt with the same credential and account scope:

```text theme={null}
GET https://api.apostra.com/api/v3/receipts/{receiptId}
```

Use `pendingReason` to decide whether to wait, inspect the affected resource or
follow the ordinary recovery guidance. A terminal receipt records that the
write succeeded or failed. To get the typed result of the write, replay the
original keyed write. The [V3 HTTP API](https://docs.apostra.com/v3/http-api.md#retry-a-write) page has the
full retry rules, including how long a completed receipt is kept.

## Proposal rounds

`request_proposals` is normally `running` while background work contacts the
sellers eligible for the buyer. Retry the same call with the same key until its
`status` is `complete`, `partial` or `failed`. A seller has 90 seconds to answer
or to acknowledge the brief, and a seller that acknowledges in time has up to 5
minutes from the start of its attempt to finish, so a round can stay `running`
for about 5 minutes. A buyer can have only one running proposal round at a time.
The [tool reference](https://docs.apostra.com/v3/tool-reference.md) lists each seller outcome and reason
code.

## Read the resource

For a media buy, `get` with `kind: "media_buy"` returns the current status and,
when the buy is waiting, a `pendingReason`. The
[media buy lifecycle](https://docs.apostra.com/v3/media-buy-lifecycle.md) page defines each status and
says who owns the next move. Poll the read at a modest interval, and prefer a
webhook (below) when one fits.

## Webhooks

A V3 webhook is a signed prompt to make a read, not a copy of the resource.
Register an endpoint, then subscribe with `save_notification_config` and an
`eventSubscription`. The events that announce a media buy change are
`media_buy.status_changed`, `media_buy.budget_changed`,
`media_buy.flight_changed`, `media_buy.creative_changed`,
`media_buy.targeting_changed` and `media_buy.object_discovered`; each names the
read to repair from. Verification, retries and the full event catalog are on the
[webhook endpoints](https://docs.apostra.com/v3/webhooks.md) page.

## The AdCP task envelope

When your agent calls an Apostra storefront directly over AdCP, for example
`create_media_buy`, a seller that accepts asynchronously answers with a
`submitted` task envelope that carries a `task_id`. Resolve it with the AdCP
`tasks_get` operation on the same agent, or register a `push_notification_config`
on the original call so the platform delivers the completion to your webhook.
`submitted` and `working` mean keep waiting; the task ends `completed`,
`input-required` or `failed`. A `task_id` is not a `media_buy_id`: do not treat
the buy as live until the task completes. The
[media buy lifecycle](https://docs.apostra.com/v3/media-buy-lifecycle.md#asynchronous-acceptance-the-submitted-task)
page has the full envelope and what each terminal state means.

V3 tool results do not carry an AdCP `task_id`; a V3 caller follows receipts,
proposal rounds, reads and webhooks as above.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.