Processing a legal agreement can be fast accurate easy

Our APIs reduce the full process to under a second.

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
      }
    }
  ]
}

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

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

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.

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

Need something bespoke?

Every business is different.

  • You may not have a team of developers who are comfortable integrating REST APIs in your system.
  • You may want a solution which integrates with your CRM and other existing systems.
  • You may work with a different form of legal contract.

Thankfully we specialise in the integration and building of automated solutions for processing complex legal agreements.

Enquire with a time and we can book in a call to discuss what would work best for you.