Pakistan LawBot
    LawBot API · v1.0GA

    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.

    99.9%Uptime SLA
    <200msAvg. latency
    RESTJSON API
    OAuth 2.0Auth standard
    01 · Quick start · 5 lines of code

    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..."
    01

    Get your API key

    Sign up free and copy your key from the dashboard. No card needed for Starter tier.

    02

    Install the SDK

    npm install @lawbot/sdk or pip install lawbot. Or use raw REST — both fully supported.

    03

    Make your first request

    Send a legal question and get a structured JSON response with AI analysis, citations, and confidence score.

    02 · API endpoints

    Six endpoints, full coverage.

    Base URL: https://api.lawbot.pk

    POST/v1/legal/query

    Submit a natural language legal question and receive an AI-generated answer based on Pakistani law.

    POST/v1/documents/analyze

    Upload a contract or legal document (PDF/DOCX) and get a structured analysis with risk flags.

    GET/v1/lawyers/search

    Search the verified lawyer marketplace by specialization, city, language, and rating.

    POST/v1/cases

    Create and manage legal cases programmatically, including documents and timeline events.

    GET/v1/statutes/{act_id}

    Retrieve full text or specific sections of Pakistani statutes from our legal database.

    DELETE/v1/cases/{case_id}

    Permanently delete a case and all associated documents (GDPR-compliant data erasure).

    03 · Documentation

    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

    PlanRequests/minRequests/monthConcurrent
    Starter101002
    Growth10010,00010
    Enterprise1,000Unlimited100

    Need a higher rate limit?

    Enterprise customers get custom limits, dedicated infrastructure, and a 99.9% uptime SLA.

    Contact sales
    04 · API pricing

    Start free, scale as you grow.

    All plans include access to the legal AI engine and statute database.

    Starter
    Free
    100 / month
    • Legal Q&A API
    • Statute search
    • JSON responses
    • Community support
    Most popular
    Growth
    $29/mo
    10,000 / month
    • Everything in Starter
    • Document analysis
    • Lawyer search API
    • Webhooks
    • Email support
    Enterprise
    Custom
    Unlimited
    • 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.

    Contact DevRel