Simple HTTP endpoints, clear JSON responses.
Authenticate with an API key, upload ID photos as standard multipart form data, or generate hosted verification links—with safe retries and signed webhooks built in.
Sandbox vs. Live Keys
Pass your key in the X-API-KEY header. Use sk_test_ keys for free local development and automated tests, and sk_live_ keys for real production checks.
Safe Network Retries
Include an Idempotency-Key UUID header when posting checks. Retrying a timed-out request within 24 hours returns the original result without charging twice.
Supported File Formats
Accepts standard JPEG, PNG, WebP, and PDF uploads up to 15 MB (up to 64 megapixels), automatically verifying file headers before processing.
Three endpoints cover direct uploads, hosted links, and XSCORE.
Verify a government ID in real time with optional back barcode, live selfie matching, name/DOB matching, and strict 21+ enforcement.
front_imageFile (required)Front of government ID (JPEG, PNG, or WebP, up to 15 MB).
back_imageFile (optional)Back of the ID card containing the PDF417 barcode.
selfie_imageFile (optional)Live selfie matched against the portrait on the ID.
expected_name / expected_dobForm stringOptional account holder name or birth date to cross-check.
require_21_plusForm booleanDeclines valid IDs if the person is under 21 years old.
Create a one-time hosted verification link (rvs_...) you can send by SMS, QR code, or redirect—for standard ID checks or XSCORE applicant packets.
session_type"identity" | "xscore"Choose a standard ID + selfie check or a full XSCORE packet.
expires_in_minutesinteger (default: 15)How long the link stays active before expiring.
webhook_urlHTTPS URLYour endpoint to receive signed completion events.
redirect_urlHTTPS URLWhere to send the user after they finish verification.
Start an XSCORE applicant check via API, automatically linking a verified ID to uploaded bank statements, pay stubs, and lease documents.
customer_reference_idstring (required)Your own internal application, lease, or user ID.
applicant_namestring (required)Legal name checked across bank statements and pay stubs.
applicant_addressstring (optional)Street address matched against utility bills or leases.
verification_log_idUUID (optional)Existing ID check UUID (auto-matched if omitted).
Verify Webhook Signatures
Every webhook includes an X-Rabbit-Signature header signed with your webhook secret over ${timestamp}.${rawBody} using HMAC-SHA256 so you know the event came from IDRabbit.
import crypto from "node:crypto";
import express from "express";
const app = express();
app.post(
"/webhooks/idrabbit",
express.raw({ type: "application/json" }),
(req, res) => {
const sigHeader = req.header("X-Rabbit-Signature") ?? "";
const parts = Object.fromEntries(
sigHeader.split(",").map((pair) => pair.split("="))
);
const timestamp = Number(parts.t);
if (!timestamp || Math.abs(Date.now() / 1000 - timestamp) > 300) {
return res.status(400).send("Expired webhook timestamp");
}
const rawBody = req.body.toString("utf8");
const expected = crypto
.createHmac("sha256", process.env.IDRABBIT_WEBHOOK_SECRET!)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
const valid =
parts.v1 &&
expected.length === parts.v1.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
if (!valid) return res.status(401).send("Invalid HMAC signature");
const event = JSON.parse(rawBody);
// Handle verification.completed | verification.rejected | xscore.completed
res.status(200).json({ received: true, id: event.id });
}
);Start verifying IDs in minutes.
Create a free account and get a sandbox API key right away—no credit card or sales call required. Pay just $0.15 per live check when you go live.