Get the status and result of an async parse job
Changed onPoll for the status and result of an async parse job submitted via POST /api/v3/parse with options.async=true. Returns the same envelope shape as the synchronous parse endpoint once status is completed.
curl https://api.lighton.ai/api/v3/parse/parse_Kg \
-H 'Authorization: Bearer $TOKEN'
Recommended polling cadence: 1s for the first 10s, then 5s, capped at 30s. Stop polling once status is in {completed, failed}.
Request
- Base URLhttps://api.lighton.ai
- URLhttps://api.lighton.ai/api/v3/parse/{id}
- AuthHTTP bearer
Path parameters
Public parse job id (e.g. parse_Kg) returned by POST /api/v3/parse with options.async=true. Malformed or unknown tokens return 404.
Response
Async parse job status and (once terminal) result. status is pending/processing while in flight, completed on success, failed on failure. The result and usage blocks are populated only on success; the error block is populated only on failure.
Changes
- breaking
added the new path request parameter
id - info
api operation id
api_v3_parse_retrievewas added - info
the endpoint scheme security
bearerAuthwas added to the API - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking