Optical Character Recognition (OCR)

Overview

The OCR API extracts identity information from photos of documents — driver’s licences, passports, Medicare cards, and more. Submit an image and receive structured data back: name, date of birth, document number, expiry, and other fields — ready to prefill a form or feed into a verification check.

Key Features

  • Extracts structured data from a wide range of Australian identity documents
  • Asynchronous processing — submit and poll, or receive results via webhook
  • Extracted data can be used directly to prefill document verification requests
  • Supports both front and back of multi-sided documents
  • Available in sandbox and production modes

How It Works

Submit
Your server sends the document image. We return a job reference immediately.
Process
Our service analyses the image and extracts structured data fields.
Result
Poll the provided status URL or wait for a webhook callback to receive the extracted data.

Common Use Cases

Form prefill

Extract document data to auto-fill an application form and reduce user friction

Verification pipeline

Feed OCR output directly into DVS or other checks without manual data entry

Document capture

Capture and extract identity data as the first step of an onboarding flow

One click services API

API Overview

Example Parameters

ParameterDescription
imageThe document image, base64-encoded
document_typeOptional hint for the document type (e.g. drivers_licence, passport)

Example Request

POST /ocr

{
  "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgAB...",
  "document_type": "drivers_licence",
}

Example Response

{
  "status": "processing",
  "session_id": "e5f6a7b8-c9d0-1234-efab-345678901234",
  "poll_url": "https://operation.oneclickservices.com.au/e5f6a7b8-..."
}

Payload

{
        "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
        "pages": [
            {
                "words": [
                    ...
                ],
                "lines": [
                    ...
                ]
            }
        ],
        "documents": [
            {
                "fields": [
                    ...
                ]
            }
        ]
    }