Handle expired result links in a PDF API
3 November 2026
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.
| State | Record | What permits the next step |
|---|---|---|
| Processing succeeded | Job, item, operation and stable output version | Confirm that the requested downloadable object still exists and belongs to the intended case. |
| Earlier link expired | Grant or link reference, expiry and observed retrieval failure | Verify the specific cause independently. Keep bearer URLs and tokens out of ordinary logs. |
| Reissue requested | Authenticated requester, approved scope, purpose and target output version | Recheck current permission, then issue fresh access to that version or record the reason for refusal. |
| Recipient acknowledgement pending | Delivery attempt and expected version marker or output digest | Ask 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).
