StampMitraDevelopers
About 5 minutes

Make your first API call

Sign up, grab a sandbox key and verify a PAN. Then choose how you want to build.

  1. Create a sandbox account

    Email, mobile and password. No credit card or manual approval. You get a sk_test_ key right away.

  2. Save your API key

    The raw key is shown exactly once. Store it as an environment variable and send it on every request with either header.

    # .env
    STAMPMITRA_API_KEY=sk_test_xxxxxxxxxxxx
    
    # every request
    Authorization: Bearer sk_test_xxxxxxxxxxxx   # or  x-api-key: …
  3. Verify a PAN. Choose your path.

    Verify a PAN in real time.

    cURLPOST /v1/verify/pan
    curl -X POST "https://api-b2b.stampmitra.in/v1/verify/pan" \
      -H "Authorization: Bearer $STAMPMITRA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"pan":"ABCDE1234F","name":"Rahul Kumar"}'

    Build it with AI

    New

    Copy a ready-made prompt into Claude, Cursor, Lovable or Google AI Studio. It already knows our endpoints.

    Integrate the StampMitra API (Indian identity verification and e-Stamp Paper) into my app.
    
    API facts (source of truth: https://developer.stampmitra.in/llms.txt)
    - Base URL: https://api-b2b.stampmitra.in
    - Auth: send "Authorization: Bearer <key>" (or "x-api-key: <key>") on every request
    - Requests and responses are JSON. Send Content-Type: application/json on POST.
    - Use a SANDBOX key (sk_test_...) while building. Read it from the environment variable STAMPMITRA_API_KEY.
    - Never hard-code the key, never expose it to the browser, never log it.
    …
  4. Read the response, then go live

    A successful call returns a normalized result. Keep the referenceId for your records.

    Expected response200 OK
    {
      "referenceId": "SMV-20260927-8F42K7",
      "pan": "ABCDE1234F",
      "type": "Individual",
      "valid": true,
      "registeredName": "RAHUL KUMAR",
      "fatherName": "SURESH KUMAR",
      "panStatus": "VALID",
      "panStatusCode": "E",
      "panStatusDescription": "Existing and valid PAN",
      "nameMatchResult": "MATCH",
      "nameMatchScore": "100",
      "aadhaarSeedingStatus": "y",
      "aadhaarSeedingStatusDescription": "Aadhaar linked",
      "lastUpdatedAt": "2023-04-01",
      "message": "PAN is Valid"
    }

Ready to go live?

Build and test in Sandbox. Apply for production access from the dashboard when it works.