Processing a legal agreement made accurate fast easy

Our APIs reduce the full process to under a second.

Your documents are never stored · Scanned or digital PDFs

herein-api — curl 200 OK · 640ms
$ curl https://api.herein.io/v1/credit-agreements \
    -H "Authorization: Bearer $HEREIN_TOKEN" \
    -F "file=@senior-facilities-agreement.pdf"

{
  "document": {
    "title": "Senior Facilities Agreement",
    "governing_law": "England and Wales"
  },
  "parties": [
    {
      "name": "Borrower Holdings Ltd",
      "roles": ["borrower"]
    },
    {
      "name": "Alpine Guarantee Corp",
      "roles": ["guarantor"]
    }
  ],
  "facilities": [
    {
      "id": "f1",
      "type": "term",
      "total_commitment": {
        "amount": "250000000.00",
        "currency": "EUR"
      },
      "interest": {
        "base_rate": "euribor",
        "spread_bps": 325
      }
    }
  ]
}

Already used by

Manual review and general-purpose AI tools both buckle once volume shows up. Herein doesn't.

Manual review Claude Code Herein
Fast Hours per document 1–2 min per document ~100× faster under a second per document, thousands at once
Accurate Error-prone, inconsistent between reviewers Prompts drift on edge cases and long documents Purpose-built model, schema-validated output
Easy Manual re-keying, no structure Needs prompting and manual checking API integrated with your system, easy

Three steps, one request.

We use a specialised AI model to parse raw bytes into valid, structured information.

  1. 01

    Select the API relevant to your contract type.

  2. 02

    Upload a list of contracts.

  3. 03

    Receive the results, ready to integrate with your workflows.

Example: Credit Agreements

Input

  • PDF senior-facilities-agreement.pdf digital
  • PDF revolving-credit-facility.pdf digital
  • PDF amendment-and-restatement.pdf scanned
  • …
AI model

Output

Structured JSON — parties, facilities, dates, all typed and ready to use. See it live ↑

Sign in and view our Developer Docs for the full schema.

Anyone who handles complex legal agreements.

Banks and lenders

Terms, commitments and pricing lifted out of a signed facility and into your own systems.

Law firms

A bundle of agreements turned into structured data you can read at a glance instead of page by page.

Loan administrators

Whole portfolios processed in bulk, on the same schema every time.

Working with something else? The same approach applies to any form of complex agreement — tell us what you handle.

Your data stays protected

Your contracts aren't saved in a database, we can't even access the processes which are running on the machine so your data is hidden from us.

The system is split into three planes. Your documents only ever exist in one of them, and it is the one nobody can reach — including us.

Control plane

Accounts, tokens and billing.

  • Holds the only database
  • Records page counts and timings
  • Never receives a document

Data plane

Where your contracts are read.

  • No database
  • No disk — memory only
  • No route to the internet
  • No shell to log in to

We have no way in.

Enrichment plane

Market rates.

  • Sees a currency, a rate and a date
  • Never sees a document
  • Never sees who you are lending to

Get Started

Self-serve

Start with the API

Five free tokens, the full schema, and the developer docs. Enough to run your own contracts through and see the output before you commit to anything.

  • 5 free API tokens
  • Full schema and developer docs
  • Scanned or digital PDFs
Sign up and get 5 free API tokens

Bespoke

Need something built around you?

Every business is different, and REST is not always the right seam. We specialise in the integration and building of automated solutions for processing complex legal agreements.

  • No developers to hand for the integration
  • Needs to sit alongside your CRM and existing systems
  • A different form of legal contract entirely
Book a call