GET
/
job
/
{job_id}
import os
from reducto import Reducto

client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),  # This is the default and can be omitted
)
job = client.job.get(
    "job_id",
)
print(job.status)
{
  "status": "Pending",
  "result": {
    "job_id": "<string>",
    "duration": 123,
    "pdf_url": "<string>",
    "usage": {
      "num_pages": 123
    },
    "result": {
      "type": "full",
      "chunks": [
        {
          "content": "<string>",
          "embed": "<string>",
          "enriched": "<string>",
          "enrichment_success": false,
          "blocks": [
            {
              "type": "Header",
              "bbox": {
                "left": 123,
                "top": 123,
                "width": 123,
                "height": 123,
                "page": 123,
                "original_page": 123
              },
              "content": "<string>",
              "image_url": "<string>"
            }
          ]
        }
      ],
      "ocr": {
        "words": [
          {
            "text": "<string>",
            "bbox": {
              "left": 123,
              "top": 123,
              "width": 123,
              "height": 123,
              "page": 123,
              "original_page": 123
            }
          }
        ],
        "lines": [
          {
            "text": "<string>",
            "bbox": {
              "left": 123,
              "top": 123,
              "width": 123,
              "height": 123,
              "page": 123,
              "original_page": 123
            }
          }
        ]
      },
      "custom": "<any>"
    }
  },
  "progress": 123,
  "reason": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

job_id
string
required

Response

200
application/json
Successful Response
status
enum<string>
required
Available options:
Pending,
Completed,
Failed,
Idle
result
object | null
progress
number | null
reason
string | null