Developers

The Lorosign API

Upload a document, let the AI read and verify it, then collect legally binding signatures. One REST API for signing and understanding.

read a document
curl https://api.lorosign.com/v1/documents/doc_8f21/read
  -H "Authorization: Bearer loro_sk_live_..."
  -H "Content-Type: application/json"

One API for the whole document lifecycle.

Read and analyze

Send any file and get a summary, extracted obligations, and risk flags with citations to the exact line.

Sign with proof

Collect legally binding signatures and pull a tamper-evident audit trail for every envelope.

Run your own agents

Create agents from your playbook and review incoming documents against your own rules.

Webhooks and events

Subscribe to document.read, signature.completed, and agent.flagged to drive your workflow.

Endpoints

  • POST/v1/documentsUpload a document of any length.
  • POST/v1/documents/{id}/readRun AI analysis: summary, clauses, and risk flags.
  • POST/v1/documents/{id}/signRequest and place legally binding signatures.
  • GET/v1/documents/{id}Fetch status, results, and the audit trail.
  • POST/v1/agentsCreate a private reading agent from your playbook.
  • POST/v1/agents/{id}/reviewReview a document against your agent's rules.

Response

Structured results you can act on.

Every read returns a summary plus typed flags with a clause reference and a risk level, so you can route, block, or escalate in code.

200 OK
{
  "id": "doc_8f21",
  "pages": 248,
  "summary": "Master services agreement with a 24-month term.",
  "flags": [
    { "clause": "12.3", "type": "auto_renewal", "risk": "high" },
    { "clause": "8.1",  "type": "liability_cap", "risk": "medium" }
  ],
  "status": "ready"
}

Authentication

Authenticate with a secret key in the Authorization header. Keep live keys server-side and rotate them from your dashboard at any time.

Authorization: Bearer loro_sk_live_3a9f...

Quickstart

  1. 01

    Create a key

    Generate a secret key in the dashboard under Developers.

  2. 02

    Upload a document

    POST the file to /v1/documents and keep the returned id.

  3. 03

    Read, then sign

    Call /read for analysis, then /sign to collect signatures.

Start building in minutes.

Create an account to get your test key. No credit card needed.

Get your API key