v1.0 — Live

DraftRight API

AI-powered legal document generation, audio transcription, file conversion, contract analysis, and agreement building. One API key, one integration.

📄
14 Templates
Legal docs in seconds
🎙
1GB Audio
Smart-split transcription
Agreement Builder
Transcripts to contracts
🔍
Company Search
UK Companies House

Base URL: https://draftright.co.uk/api

Authentication

API Key (Business)

Include your key in the x-api-key header.

curl -H "x-api-key: dr_your_api_key_here" \
  https://draftright.co.uk/api/invoice/scan \
  -F "file=@invoice.pdf"

Bearer Token (Consumer)

From /api/auth/login.

curl -H "Authorization: Bearer eyJhbG..." \
  https://draftright.co.uk/api/documents/generate \
  -d '{"templateId":"nda","answers":{...}}'
Get an API key: Sign up at draftright.co.uk → Business Dashboard → Get API Key. Keys are prefixed with dr_.

Plans & Pricing

Consumer

Free

£0/mo
  • 1 document/mo (watermarked)
  • 3 transcriptions/day (10min)
  • File conversion (100MB)
  • Agreement preview only
  • No diarise/summarise

Pro

£7.99/mo
  • Unlimited documents
  • 20 transcriptions/day (60min)
  • 500MB uploads
  • Diarise, summarise, translate
  • 5 agreements/month
  • PDF & DOCX downloads

Elite

£14.99/mo
  • Everything in Pro
  • 50 transcriptions/day (2hr)
  • 1GB uploads
  • Unlimited agreements
  • Regenerate with edits
  • Priority AI models

Business API

Starter

£99/mo
  • 200 calls/month
  • Invoice scanning
  • Bulk conversion
  • No contract analysis
  • No agreements

Growth

£299/mo
  • 1,000 calls/month
  • 10 agreements/month
  • Contract analysis
  • Transcription API
  • Company search

Scale

£799/mo
  • 5,000 calls/month
  • 50 agreements/month
  • Expense scanning
  • Company monitoring
  • HR packs

Enterprise

£1,499/mo
  • 15,000 calls/month
  • 200 agreements/month
  • Custom integrations
  • Dedicated support
  • SLA guarantee

Quick Start

1. Get your API key

POST /api/business/onboard
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json

{ "companyName": "Acme Ltd", "email": "dev@acme.com" }

2. Scan an invoice

curl -X POST https://draftright.co.uk/api/invoice/scan \
  -H "x-api-key: dr_your_key" \
  -F "file=@invoice.pdf"

3. Check usage

curl https://draftright.co.uk/api/biz-dashboard \
  -H "Authorization: Bearer YOUR_TOKEN"

Errors

All errors return JSON with an error field.

{ "error": "Monthly API limit reached", "used": 200, "limit": 200, "upgrade": true }
CodeMeaningAction
400Bad requestCheck required params
401Invalid authCheck API key or token
403Feature not on planUpgrade
429Rate limit hitWait or upgrade
500Server errorRetry or contact support

Document Generator

Generate UK legal documents from 14 templates. AI-powered with legislation references.

Free: 1/mo Pro: Unlimited Elite: Unlimited
POST/api/documents/generateGenerate document
templateIdstringrequiredTemplate ID (see list)
answersobjectrequiredKey-value pairs for template questions
aiContextstringoptionalExtra instructions (e.g. "make formal")
curl -X POST https://draftright.co.uk/api/documents/generate \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "nda",
    "answers": {
      "party1_name": "Acme Ltd",
      "party2_name": "Jane Smith",
      "purpose": "Partnership discussion",
      "duration": "2 years"
    }
  }'

Response:

{
  "content": "NON-DISCLOSURE AGREEMENT\n\nDate: 13 March 2026...",
  "templateId": "nda",
  "wordCount": 1247
}

Transcriber

Transcribe audio/video up to 1GB. Smart-splits long recordings at silence breaks, processes chunks with context continuity.

Free: 3/day 10min Pro: 20/day 60min Elite: 50/day 2hr
POST/api/transcribeTranscribe audio/video
filefilerequiredMP3, MP4, WAV, M4A, WEBM, OGG, FLAC, MOV, AVI, MKV
languagestringoptionalISO 639-1 (e.g. "en"). Auto-detected if omitted.
timestampsbooloptionalInclude SRT timestamps
diarisebooloptionalSpeaker labels (Pro+)
summarisebooloptionalAI summary (Pro+)
curl -X POST https://draftright.co.uk/api/transcribe \
  -H "Authorization: Bearer TOKEN" \
  -F "file=@meeting.mp3" \
  -F "timestamps=true" \
  -F "diarise=true" \
  -F "summarise=true"

Response:

{
  "text": "Welcome to the masterclass...",
  "duration": 5586,
  "srt": "1\n00:00:00,000 --> 00:00:13,640\nWelcome...",
  "summary": "A 90-minute NLP masterclass covering...",
  "diarised_text": "[Speaker 1] Welcome..."
}

File Converter

Convert between 15+ formats. Documents, images, audio, video.

POST/api/converter/:typeConvert file
typepathrequiredConversion ID (see formats)
filesfilerequiredFile to convert
curl -X POST https://draftright.co.uk/api/converter/pdf_to_word \
  -H "Authorization: Bearer TOKEN" \
  -F "files=@document.pdf" --output converted.docx

Returns binary file download.

Smart Doc Reader

Upload any document and chat with it. AI extracts data, answers questions, provides summaries.

Pro+
POST/api/smart-doc/uploadUpload for analysis
filefilerequiredPDF, DOCX, or TXT

After upload, use /api/smart-doc/chat to ask questions about the document.

Agreement Builder

Upload meeting recordings or transcripts. AI extracts parties, terms, obligations, deadlines, financial terms — then generates a professional legal agreement.

Free: Preview Pro: 5/mo Elite: Unlimited
3-pass AI pipeline: Extract parties → Analyse terms & obligations → Generate legal agreement with UK legislation references.
POST/api/agreement/createBuild from transcripts
filesfile[]requiredUp to 5 files (audio, video, PDF, DOCX, TXT)
titlestringoptionalAgreement title
templateTypestringoptionalnda, freelance_contract, service_agreement, coaching_agreement, employment_contract, tenancy, loan_agreement, partnership_agreement, consulting_agreement, general
providerstringoptionalopenai (default), anthropic, groq
curl -X POST https://draftright.co.uk/api/agreement/create \
  -H "Authorization: Bearer TOKEN" \
  -F "files=@meeting.mp3" \
  -F "title=Service Agreement" \
  -F "templateType=service_agreement"

Response:

{
  "draftId": 42,
  "status": "processing",
  "message": "Analysing transcripts..."
}

Poll GET /api/agreement/:id for status. When ready, the full agreement is in generated_content.

GET/api/agreement/:idGet draft
curl https://draftright.co.uk/api/agreement/42 \
  -H "Authorization: Bearer TOKEN"

Returns parties, agreed terms, obligations, deadlines, financial terms, and generated content.

GET/api/agreement/:id/download?format=pdf|docx|txtDownload
curl https://draftright.co.uk/api/agreement/42/download?format=pdf \
  -H "Authorization: Bearer TOKEN" --output agreement.pdf

Invoice Scanner

Extract structured data from PDF/image invoices using OCR + AI.

Starter+
POST/api/invoice/scanx-api-key auth
filefilerequiredPDF, JPG, or PNG (max 25MB)
curl -X POST https://draftright.co.uk/api/invoice/scan \
  -H "x-api-key: dr_your_key" \
  -F "file=@invoice.pdf"
{
  "vendor": "Acme Supplies Ltd",
  "invoiceNumber": "INV-2026-0142",
  "date": "2026-03-01",
  "dueDate": "2026-03-31",
  "total": 1250.00,
  "tax": 250.00,
  "currency": "GBP",
  "lineItems": [
    { "description": "Web Development", "qty": 1, "unitPrice": 1000, "total": 1000 }
  ]
}

Contract Analysis

AI analysis of contracts: clause breakdown, red flags, compliance score, key dates.

Growth+
POST/api/contract/analysex-api-key auth
filefilerequiredPDF, DOCX, or TXT (max 25MB)
curl -X POST https://draftright.co.uk/api/contract/analyse \
  -H "x-api-key: dr_your_key" \
  -F "file=@contract.pdf"
{
  "summary": "12-month service agreement...",
  "complianceScore": 78,
  "clauses": [...],
  "redFlags": [
    { "clause": "4.2", "risk": "Unlimited liability", "severity": "high" }
  ],
  "keyDates": [
    { "date": "2026-04-01", "event": "Start date" }
  ]
}

File Conversion (API)

Convert files via API key.

Starter+
POST/api/converter/:typex-api-key auth
curl -X POST https://draftright.co.uk/api/converter/pdf_to_word \
  -H "x-api-key: dr_your_key" \
  -F "files=@document.pdf" --output converted.docx

Transcription (API)

Full transcription via API key. Same capabilities as consumer.

Growth+
POST/api/transcribex-api-key auth
curl -X POST https://draftright.co.uk/api/transcribe \
  -H "x-api-key: dr_your_key" \
  -F "file=@recording.mp3" \
  -F "timestamps=true" \
  -F "summarise=true"

Agreement Builder (API)

Programmatically generate legal agreements from transcripts via API.

Growth: 10/mo Scale: 50/mo Enterprise: 200/mo
POST/api/agreement/api/createx-api-key auth
filesfile[]requiredUp to 5 files
titlestringoptionalAgreement title
templateTypestringoptionalAuto-detected if omitted
providerstringoptionalopenai, anthropic, groq
curl -X POST https://draftright.co.uk/api/agreement/api/create \
  -H "x-api-key: dr_your_key" \
  -F "files=@meeting.mp3" \
  -F "title=Service Agreement" \
  -F "templateType=service_agreement"
{
  "draftId": 42,
  "status": "ready",
  "parties": [
    { "name": "Sarah", "role": "provider", "organisation": "The Coaching Corner" }
  ],
  "agreedTerms": [
    { "term": "500/month coaching", "confidence": "high", "category": "payment" }
  ],
  "generatedContent": "SERVICE AGREEMENT\n\nDate: 13 March 2026...",
  "usage": { "used": 3, "limit": 10 }
}

Company Search

Search UK Companies House.

Growth+
GET/api/company/search?q=:querySearch companies
curl "https://draftright.co.uk/api/company/search?q=Tesco" \
  -H "x-api-key: dr_your_key"
GET/api/company/profile/:numberFull profile
curl "https://draftright.co.uk/api/company/profile/00445790" \
  -H "x-api-key: dr_your_key"

Usage Stats

Real-time usage by endpoint, daily breakdown, recent activity.

GET/api/biz-dashboardBearer auth
curl https://draftright.co.uk/api/biz-dashboard \
  -H "Authorization: Bearer TOKEN"

Document Templates

IDNameCategory
tenancyTenancy Agreement (AST)Property
section21Section 21 ResponseProperty
noise_complaintNoise Complaint LetterProperty
deposit_disputeDeposit Dispute LetterProperty
employment_contractEmployment ContractEmployment
resignationResignation LetterEmployment
grievanceGrievance LetterEmployment
ndaNon-Disclosure AgreementBusiness
freelance_contractFreelance ContractBusiness
loan_agreementLoan AgreementBusiness
refund_requestRefund Request LetterPersonal
council_tax_appealCouncil Tax AppealPersonal
flight_delayFlight Delay ClaimPersonal
parking_appealParking Fine AppealPersonal

Conversion Formats

Type IDFromTo
pdf_to_wordPDFDOCX
word_to_pdfDOCXPDF
excel_to_pdfXLSXPDF
csv_to_excelCSVXLSX
jpg_to_pdfJPGPDF
png_to_pdfPNGPDF
mp4_to_mp3MP4MP3
mov_to_mp4MOVMP4
avi_to_mp4AVIMP4
mkv_to_mp4MKVMP4
mp3_to_wavMP3WAV
wav_to_mp3WAVMP3
m4a_to_mp3M4AMP3
png_to_jpgPNGJPG
jpg_to_pngJPGPNG

Rate Limits

Monthly. Resets on the 1st.

PlanAPI CallsAgreementsMax File
Starter200/mo25MB
Growth1,000/mo10/mo500MB
Scale5,000/mo50/mo500MB
Enterprise15,000/mo200/mo1GB

Need help?

draftrightofficial@gmail.com

Go to DraftRight →