Build legal apps powered by Pakistani law.
Integrate AI legal analysis, verified lawyer search, and Pakistan's full statute database into your product with a single REST API.
Your first API call.
import LawBot from '@lawbot/sdk';
const client = new LawBot({
apiKey: process.env.LAWBOT_API_KEY,
});
const response = await client.legal.query({
question: "What are the bail conditions under Section 497 CrPC?",
jurisdiction: "PK",
language: "en",
});
console.log(response.answer);
// "Under Section 497 of the Code of Criminal Procedure,
// bail is a matter of right for bailable offences..."Get your API key
Sign up free and copy your key from the dashboard. No card needed for Starter tier.
Install the SDK
npm install @lawbot/sdk or pip install lawbot. Or use raw REST — both fully supported.
Make your first request
Send a legal question and get a structured JSON response with AI analysis, citations, and confidence score.
Six endpoints, full coverage.
Base URL: https://api.lawbot.pk
/v1/legal/querySubmit a natural language legal question and receive an AI-generated answer based on Pakistani law.
/v1/documents/analyzeUpload a contract or legal document (PDF/DOCX) and get a structured analysis with risk flags.
/v1/lawyers/searchSearch the verified lawyer marketplace by specialization, city, language, and rating.
/v1/casesCreate and manage legal cases programmatically, including documents and timeline events.
/v1/statutes/{act_id}Retrieve full text or specific sections of Pakistani statutes from our legal database.
/v1/cases/{case_id}Permanently delete a case and all associated documents (GDPR-compliant data erasure).
Everything you need to ship.
Authentication
All API requests must include your API key in the Authorization header using Bearer token format.
Never expose your API key in client-side code. Use environment variables and a backend proxy.
curl https://api.lawbot.pk/v1/legal/query \
-H "Authorization: Bearer sk_live_your_api_key_here" \
-H "Content-Type: application/json"Rate limits
| Plan | Requests/min | Requests/month | Concurrent |
|---|---|---|---|
| Starter | 10 | 100 | 2 |
| Growth | 100 | 10,000 | 10 |
| Enterprise | 1,000 | Unlimited | 100 |
Need a higher rate limit?
Enterprise customers get custom limits, dedicated infrastructure, and a 99.9% uptime SLA.
Contact salesStart free, scale as you grow.
All plans include access to the legal AI engine and statute database.
- Legal Q&A API
- Statute search
- JSON responses
- Community support
- Everything in Starter
- Document analysis
- Lawyer search API
- Webhooks
- Email support
- Everything in Growth
- Case management API
- SLA guarantee
- Dedicated support
- Custom rate limits
- On-premise option
Start building, right now.
Get your free API key in under 30 seconds. No credit card. Full access to the Starter tier.
