Retry a failed delivery
retry_deliverySend one failed delivery again, by its id from get_delivery_receipt — a delivery id, not a post id. Skip it when the receipt says retry_helps: false: the same failure comes back. A delivery that succeeded is refused. A refusal carries error_code — already_succeeded (with post_url, or taken_down), in_flight, already_claimed, not_found, or is_post_id (a post id was passed; its deliveries are in the answer, pick the failed one) — and retriable, false when asking again cannot change the answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delivery_id | Yes | `id` of the failed row in get_delivery_receipt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | Present and false only on a refusal. | |
| error | No | What was refused, in a sentence, when `ok` is false. | |
| retried | No | ||
| post_url | No | On `already_succeeded`: the live post. It did land. | |
| retriable | No | False when asking again cannot change the answer. | |
| error_code | No | Machine reason for a refusal. | |
| taken_down | No | With no post_url: it went out and was removed; no live link exists. | |
| replaced_by | No | The id the post has now, when you asked with one an edit retired. An edit gives a post a new id: get_delivery_receipt and get_post_metrics answer for this current version (and `asked_for` is the id you sent); update_post and delete_post refuse with error_code `replaced`. Use this id from here on. |