Handle expired result links in a PDF API

3 November 2026

Hands hold a phone beside an open laptop.
Illustrative photograph. Cropped and resized. Photo: “William Iven 2015-02-11 (Unsplash).jpg” — William Iven firmbee / Wikimedia Commons. · CC0 1.0

When a recipient reports an expired result link, check the job, the stored output and the access grant separately. If the right result still exists and the recipient is still authorised, issue a new way to retrieve that same version. A new processing run may produce different bytes or another charge; an expired URL alone is no reason to start one.

Check what expired

An access denial can mean an expired grant, a revoked permission, an unknown object or another failure. Look up the job and stable output identifier using the service’s authorised status route. Confirm that the intended artifact exists, that its retention period has not ended and that the recipient still has permission. If those checks fail, keep the original job history and investigate the actual cause. Reissuing a link must not circumvent a withdrawn permission.

The available local batch evidence shows why job status has to stand on its own. Its page-count-v1 operation recorded an initially retryable item SYN-I03 as successful after a second attempt, and SYN-I04 as a permanent parse failure. Successful items have a page count and source digest. These identify a processing result and its input, not a generated PDF download. The test made no network calls, implemented no HTTP API and did not test caller authentication. It created no signed result links or recipient acknowledgements. Batch results · Batch contract

Keep an access record alongside the job

For the hypothetical exercise, assume a result was produced and its link expired before the intended recipient retrieved it. Fill the remaining states only when their evidence exists.

StateRecordWhat permits the next step
Processing succeededJob, item, operation and stable output versionConfirm that the requested downloadable object still exists and belongs to the intended case.
Earlier link expiredGrant or link reference, expiry and observed retrieval failureVerify the specific cause independently. Keep bearer URLs and tokens out of ordinary logs.
Reissue requestedAuthenticated requester, approved scope, purpose and target output versionRecheck current permission, then issue fresh access to that version or record the reason for refusal.
Recipient acknowledgement pendingDelivery attempt and expected version marker or output digestAsk the recipient or receiving system to confirm the expected version was received and usable.

A successful HTTP response alone does not prove the recipient received all bytes, opened them or imported the document. Agree on the level of evidence needed for this handoff. For a system-to-system transfer, a receipt containing the output version and independently calculated output digest may suffice. If human review is required, keep that acknowledgement separate. Test both with harmless data and record what the recipient actually observed.

Decide whether a new run is needed

If retention has removed the output, tell the requester which original version can no longer be retrieved. Obtain authority for any regeneration and identify the new operation or new version explicitly. Preserve the original successful job, failed delivery and reason for issuing a replacement. If the existing result can be delivered, keep its processing history unchanged and close only the access issue once the intended receiver’s confirmation is recorded.

Part of the Reconcile partial failures in a batch PDF job guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).