Skip to main content
GET
/
api
/
v3
/
parse
/
{id}
Get the status and result of an async parse job
curl --request GET \
  --url https://api.lighton.ai/api/v3/parse/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.lighton.ai/api/v3/parse/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.lighton.ai/api/v3/parse/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lighton.ai/api/v3/parse/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.lighton.ai/api/v3/parse/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.lighton.ai/api/v3/parse/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.lighton.ai/api/v3/parse/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "parse_Kg",
  "status": "pending",
  "created_at": "2026-03-31T10:00:00+00:00",
  "completed_at": null,
  "processing_time_ms": null,
  "document": {
    "filename": "report.pdf",
    "page_count": null,
    "file_size_bytes": 245120,
    "mime_type": "application/pdf"
  },
  "result": null,
  "usage": null,
  "progress": null,
  "error": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

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.

Returned by GET /api/v3/parse/<id> — async parse job status + (once terminal) result.

Same shape as the sync ParseResponseSerializer but with completion fields (result, usage, completed_at, processing_time_ms, document.page_count) allowed to be null while the job is still in flight, plus an error block populated only on terminal failure.

id
string
required
status
string
required
created_at
string<date-time>
required
completed_at
string<date-time> | null
required
processing_time_ms
integer | null
required
document
object | null
required
result
object | null
required
usage
object | null
required
progress
object | null
required

Live progress while a polled async job is in flight.

error
object | null
required

Failure details surfaced on terminal-failed async parse jobs.