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
$ 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
}
}
]
}
Compare
Manual review and general-purpose AI tools both buckle once volume shows up. Herein doesn't.
How it works
Three steps, one request.
We use a specialised AI model to parse raw bytes into valid, structured information.
-
01
Select the API relevant to your contract type.
-
02
Upload a list of contracts.
-
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
- …
Output
Sign in and view our Developer Docs for the full schema.
Who it's for
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.
Security
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
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