Preflight a file
Sugar wrapper. Runs a preflight-only job. Async (201) by default; sync: true waits for the result.
Authorizations
Your secret key as a bearer token, e.g. Authorization: Bearer sk_live_…. Secret keys are server-side only.
Body
Submit one or more files for preflight. By default the response is 201 Accepted and the job runs asynchronously. Set sync: true to wait up to ~27 s for the result (200 on completion, 202 + pending: true on timeout). An optional webhook is called when the job reaches a terminal status regardless of sync mode.
List of files to preflight. Each becomes its own Task under a single Job. Even a single file must be wrapped in an array.
1 - 50 elementsWhen true, the request waits for the job to complete (up to ~27 s). Returns 200 with { job } on success, or 202 with pending: true on timeout. The default is false (async 201).
Response
Sync completion (sync: true)