Developer Documentation

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.

Base URL
https://api.idrabbit.com/api/v1
Auth Header
X-API-KEY: sk_live_* | sk_test_*
Safe Retries
Idempotency-Key: <uuid>
Webhook Header
X-Rabbit-Signature: t=...,v1=...
Authentication

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.

Reliability

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.

Uploads

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.

API Endpoints

Three endpoints cover direct uploads, hosted links, and XSCORE.

POST/api/v1/verification/verify/id
multipart/form-data•$0.15 / live check ($0 in sandbox)

Verify a government ID in real time with optional back barcode, live selfie matching, name/DOB matching, and strict 21+ enforcement.

Parameters
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 string

Optional account holder name or birth date to cross-check.

require_21_plusForm boolean

Declines valid IDs if the person is under 21 years old.

POST/api/v1/remote/create
application/json•$0.20 / completed session

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.

Parameters
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 URL

Your endpoint to receive signed completion events.

redirect_urlHTTPS URL

Where to send the user after they finish verification.

POST/api/v1/xscore/init
multipart/form-data•Included with XSCORE packet

Start an XSCORE applicant check via API, automatically linking a verified ID to uploaded bank statements, pay stubs, and lease documents.

Parameters
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).

Signed Webhooks

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.

SIGNATURE HEADER
X-Rabbit-Signature: t=1763220400,v1=5d8f29a4e12c9b...
8-second delivery timeout • HTTPS required in production
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 });
  }
);
Get Started

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.