1. Home
  2. Docs

Quick start

Everything you need for a first working call, in about ten minutes. The full endpoint reference and Postman collection come with your sandbox keys.

Environments

There are two environments with identical endpoints. Keys only work in the environment they were issued for.

Sandboxhttps://sandbox.yetlix.com/v1
Returns fixed test data. Free, not billed.
Livehttps://api.yetlix.com/v1
Calls real sources. Billed per successful check.

Authentication

Send your client ID and secret as headers on every request. Keep the secret on your server. Never ship it inside a mobile app or front-end code; call Yetlix from your backend instead.

x-client-idYour client ID, e.g. yx_live_4f2a…
x-client-secretYour secret. Rotate it from the dashboard if it leaks.
x-request-idOptional. Your own unique ID. Sending the same one twice within 24 hours returns the first result instead of running the check again.

Live keys only accept requests from IP addresses you have allow-listed. Add your server IPs before switching to live.

Your first call

PAN verification is the simplest check to start with. Replace the keys with your sandbox keys and run this from a terminal.

Terminal
curl -X POST https://sandbox.yetlix.com/v1/verify/pan \
  -H "x-client-id: $YETLIX_CLIENT_ID" \
  -H "x-client-secret: $YETLIX_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"pan":"ABCPV1234K","name":"Rohit Verma","consent":"Y"}'

The consent field is required on every check that touches personal data. Send "Y" only after your user has agreed to the check on your screen. Requests without it are rejected with CONSENT_REQUIRED.

Response format

All endpoints return the same envelope. Check status first, then read data.

200 OK
{
    "status": "success",
    "request_id": "req_7Hq2kD91",
    "data": {
        "pan": "ABCPV1234K",
        "pan_status": "VALID",
        "full_name": "ROHIT KUMAR VERMA"
    },
    "billable": true,
    "timestamp": "2026-11-17T10:42:18+05:30"
}

A check that runs but finds nothing (an invalid PAN, a closed account) still returns 200 with status: "success". The answer is inside data. Non-200 codes mean the check itself could not run.

Errors

HTTP / codeWhat it means and what to do
400 INVALID_INPUTA field is missing or in the wrong format. errors lists each field.
400 CONSENT_REQUIREDconsent was not "Y". Collect consent and resend.
401 UNAUTHORISEDWrong keys, or sandbox keys used on live.
402 LOW_BALANCEPrepaid wallet is empty. Recharge from the dashboard.
403 IP_NOT_ALLOWEDThe calling IP is not on your allow-list.
429 RATE_LIMITEDToo many requests. Wait for the seconds in Retry-After.
503 SOURCE_UNAVAILABLEThe government or bank source is down. Not billed. Retry later or use a fallback check.
500 INTERNAL_ERROROur problem. Not billed. Send us the request_id.

Webhooks

DigiLocker, reverse penny drop and other multi-step checks finish after your first call returns. Give us a webhook_url and we POST the final result there.

Each webhook carries an x-yetlix-signature header: an HMAC-SHA256 of the raw body using your webhook secret. Verify it before trusting the payload.

verify-webhook.php
$body = file_get_contents('php://input');
$expected = hash_hmac('sha256', $body, getenv('YETLIX_WEBHOOK_SECRET'));

if (!hash_equals($expected, $_SERVER['HTTP_X_YETLIX_SIGNATURE'] ?? '')) {
    http_response_code(401);
    exit;
}

$event = json_decode($body, true);
// $event['type'] e.g. "digilocker.completed"
http_response_code(200);

Reply with any 2xx within 10 seconds. If you don’t, we retry five times over roughly an hour.

Rate limits

Sandbox accounts can make 10 requests a second. Live limits are set per account based on your plan and the source; government sources have their own caps, so tell us about expected spikes (a sale, a campaign) a few days ahead.

Going live

  1. Share your business KYC: GST or incorporation certificate, company PAN, and an authorised signatory’s ID.
  2. Show us where and how you collect consent in your app (a screenshot is enough).
  3. Add your server IPs to the allow-list.
  4. Sign the agreement and recharge your wallet or choose a plan.
  5. Swap the base URL and keys. Nothing else changes.

Stuck anywhere? Email info@yetlix.com with your request ID, or call +91 88000 27675.