Skip to content

How do I handle a video API reference expiring between user approval and worker submission?

Pause when an approved reference is no longer accessible. Keep the original approval record and revalidate a deliberate replacement asset before dispatch.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Store a preflight timestamp

Record the verified asset ID, approved source revision and quote. Check accessibility under the same owner just before the queued job starts.

Recover scope

Re-upload the same authorized bytes if permitted, then compare the new ID, verified runtime and quote. If anything materially changed, get fresh approval of that exact request.

Keep existing jobs separate

If a generation may previously have been submitted, reconcile that job first rather than creating a second attempt to fix missing media.

Pass condition

No worker substitutes an unreviewed reference or changes a spending commitment automatically.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation