Skip to content
ERPDocs
Developers · Verify

ERPDocs Verify API

Base URL /api/v1/verify. Same bearer keys and error envelope as the SignPack API. Sandbox keys never reach a government system.

The collection's "Verify & Onboard" folder uses the verify_key variable and sends a fresh Idempotency-Key on every POST.

Before you start

  • Register your organisation in Verify (Settings › Business). Sandbox opens when the automated checks pass and you accept the Verify terms. Live opens after ERPDocs vets your organisation, and each government source is approved for you separately: a live call to one you don't have yet returns 403 source_not_approved.
  • Create an API key in Admin › API & Webhooks with the scopes you need: verify.kyb, verify.entitylocker, verify.digilocker, verify.read, verify.documents, verify.onboard, verify.onboard.data.
  • Every POST needs an Idempotency-Key header (8–128 characters: letters, digits and . _ : -). The same key with the same body returns the same response and is not billed again. A key reused with a different body returns 422.
  • Every call carries a purpose code approved for your account.

Prices, status and a sample response for each API: the API catalogue.

Endpoints

MethodPathWhat it does
POST/sessionsCreate a consent session. Returns hosted_url for the person (15 minutes, single use).
GET/sessions/{id}Status, masked fields and match results.
GET/sessions/{id}/documents/{doc_id}Download a document once. Afterwards: 410 document_purged.
POST/sessions/{id}/cancelCancel a session that has not finished.
POST/gstin · /udyam · /panLookups. Available once each API Setu approval arrives.
GET/requests · /requests/{id}Your verifications, filterable by reference_id.
GET/usage · /sourcesQuota, wallet and which sources are live for your key.
POST/watchlistRe-check a GSTIN every month. A change sends verify.reverification.changed.
GET/watchlistYour watchlist.
POST/watchlist/{id}/removeStop re-checking a GSTIN.

Create a session

curl -X POST https://www.erpdocs.com/api/v1/verify/sessions \
  -H "Authorization: Bearer $ERPDOCS_KEY" \
  -H "Idempotency-Key: hire-4821-identity" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "digilocker",
    "documents": ["PANCR", {"type": "ADHAR", "required": false}],
    "purpose": "employee_onboarding_identity",
    "subject_hint": {"name": "Priya Sharma", "dob": "1994-03-12"},
    "redirect_url": "https://hr.example.in/onboarding/done",
    "reference_id": "hire-4821"
  }'

Aadhaar is always optional. Marking it "required": true returns 400 aadhaar_cannot_be_required. For Aadhaar you receive aadhaar_masked, the issuer-signature check and match results. No document, no demographics.

redirect_url must exactly match an entry in your redirect allowlist.

Onboard

Flows are built in Verify › Flows. In the API a flow is a journey and one person's onboarding is a run. These endpoints start runs and read their results. Scope verify.onboard; reading what people typed or uploaded also needs verify.onboard.data.

MethodPathWhat it does
GET/onboard/journeysYour flows and their steps.
POST/onboard/journeysCreate a flow from a definition.
POST/onboard/runsStart a run for one person (journey_id, subject.name, subject.email). Returns their personal link (7 days). The same reference_id while their run is open gives that run back (resumed). Optional return_url brings them back to your site.
GET/onboard/runs/{id}Status, match outcome, and client_data counts when the flow collects details or files.
GET/onboard/runs/{id}/dataDetails, files and acknowledgements the person gave you, with full values. Each call is logged. 410 data_purged after your retention period.
GET/onboard/runs/{id}/files/{key}One uploaded file, with X-Content-SHA256. Can be downloaded again until the data is deleted.
GET/onboard/runs/{id}/evidenceThe sealed evidence PDF once the run ends.

Documents fetched from DigiLocker or Entity Locker are never part of /data; download them once through /sessions/{id}/documents.

Putting a flow on your website: your server starts a run for each person and redirects them to its link; save the run id against your user, not the link. How it works.

Webhooks

Consent sessions: verify.session.completed, verify.session.failed, verify.session.expired, verify.session.consent_denied. Onboard runs: onboard.run.completed, onboard.run.mismatch, onboard.run.failed, onboard.run.cancelled, onboard.run.review, onboard.run.paused, onboard.run.changes_requested, onboard.run.expired. Watchlist: verify.reverification.changed. Your account: client.suspended, client.reinstated, client.terminated. Signed the same way as SignPack webhooks. Payloads never carry what a person typed, uploaded or shared: call the API for that. Payloads.

Limits

LimitDefaultError
Lookups per minute (live)60429 rate_limited
Sessions and onboarding starts per minute (live)20429 rate_limited
Reads per minute (live)300429 rate_limited
Any call per minute (sandbox)10429 rate_limited
Same identifier per 24 hours5429 subject_limit
Consent sessions for one person per day5429 consent_limit
Daily and monthly unitsYour plan or contract429 quota_exceeded
Wallet balancePrepaid402 insufficient_balance
Government source at capacityShared503 upstream_throttled

Responses carry X-RateLimit-* headers, and on live keys X-Quota-Remaining and X-Wallet-Balance. If our limiter cannot be reached we return 503 limiter_unavailable rather than let calls through. Failed upstream calls are never billed.

Sandbox identifiers

GSTIN (valid checksum; scenario = 13th character)
    27ABCDE1234F1Z0  active
    27ABCDE1234F2ZZ  cancelled
    27ABCDE1234F3ZY  suspended
    27ABCDE1234F4ZX  not found
    27ABCDE1234F5ZW  upstream error
    27ABCDE1234F6ZV  upstream timeout
    27ABCDE1234F7ZU  upstream throttled

PAN (scenario = last digit of the numeric block)
    ABCPD0001E  valid, name matches
    ABCPD0002E  valid, name does not match
    ABCPD0004E  not found
    ABCPD0005E  upstream error

Udyam (scenario = last digit)
    UDYAM-MH-00-0000001  active
    UDYAM-MH-00-0000004  not found
    UDYAM-MH-00-0000005  upstream error

Consent flows: the authorize URL points at the hosted mock authorize page
(`/v/mock/authorize`) which lets the tester allow or deny. A subject hint
whose name contains "Mismatch" yields documents under a different name so
name-matching can be exercised.

Document types: DigiLocker PANCR, DRVLC, ADHAR. Entity Locker GSTIN_CERT, INC_CERT, UDYAM_CERT.