Check export status and get the download link
amber_get_export_statusCheck the status of an export started by amber_export_memories and get its download link once complete. Poll to track progress, detect failures, and retrieve a signed link valid for 7 days.
Instructions
Check an export started by amber_export_memories, and collect its download link once it is finished. Not rate-limited. Read-only. Requires an active subscription.
Statuses: pending (queued), running (writing the file), complete (ready -- download_url is set), failed (gave up; error says why).
Poll every few seconds. memory_count climbs while it runs, so a caller can tell progress from a stall. Only report the export as ready to the user once status is complete.
The download_url is signed and valid for 7 days, matching how long the export itself is kept, so an interrupted download can be RESUMED with a Range request rather than restarted. Call this again for a fresh link if it has expired, and note an old link. The export itself is kept for 7 days, after which this returns code: not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The id returned by `amber_export_memories`. An unknown or expired id returns `code: not_found`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | Why the export failed. Null unless status is `failed`. | |
| status | Yes | `pending` queued, `running` writing, `complete` ready to download, `failed` stopped (see `error`). A stalled export becomes `failed` with a reason rather than sitting on `running`. | |
| task_id | Yes | The task this report is about. | |
| chunk_count | Yes | How many background passes have written a piece of the file. Progress, and the reason a large export takes more than one poll. | |
| exported_at | Yes | The moment the export represents. Every memory in the file is as it was at this instant, whatever the export took to finish. | |
| download_url | Yes | Signed download link, set only when status is `complete`. Short-lived: poll again for a fresh one rather than reusing it. | |
| memory_count | Yes | Memories written so far. This is the FINAL count once status is complete. | |
| include_deleted | Yes | Whether this archive carries TRASHED memories as well as active ones. Stated rather than inferred, because the count alone cannot tell a full backup from a partial one: `POST /backup` (the unattended route) always includes the trash, while `amber_export_memories` includes it only when asked. If the user wanted a BACKUP, this should be true. |