Start here
Quickstart
Build on staging, where checks return test results and you choose each identity outcome, then go live by changing two environment variables. Four steps take you from a new key to a finished credit report.
1. Get a staging key
Staging has its own dashboard at staging.thegreatrenter.com, with accounts and keys separate from production. API access is switched on per account by your account manager, so ask for staging access along with production. Then create a key with read_write scope. It is shown once, so store it straight away, and set both variables:
# Staging: build and test here (sk_test_ key from the staging dashboard)
export TGR_API_BASE=https://dev-api.thegreatrenter.com/api/v1
export TGR_API_KEY=sk_test_...
# Production: switch both when you go live (sk_live_ key)
# export TGR_API_BASE=https://api.thegreatrenter.com/api/v1
# export TGR_API_KEY=sk_live_...2. See what you can order
GET /products/ lists every product your company can order, with the price that applies to you. Each product value is also the path you order it from.
curl "$TGR_API_BASE/products/" \
-H "X-Api-Key: $TGR_API_KEY"{
"data": [
{
"product": "identity_verification",
"name": "Identity Verification (OneID)",
"kind": "check",
"price": "<your price>",
"currency": "CAD"
},
{
"product": "credit_check",
"name": "Credit Check",
"kind": "check",
"price": "<your price>",
"currency": "CAD"
}
]
}3. Order a check
Send the applicant to the product's endpoint. This example orders a credit report. The response comes back straight away with a reference and status: in_progress; the result follows when the bureau responds. Send an Idempotency-Key so a retried request never places a second order.
# One unique key per intended order; reuse it if you retry this request.
export TGR_IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "$TGR_API_BASE/credit_check/" \
-H "X-Api-Key: $TGR_API_KEY" \
-H "Idempotency-Key: $TGR_IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "jane.doe@example.com",
"first_name": "Jane",
"middle_name": "Q",
"last_name": "Doe",
"date_of_birth": "1990-05-01",
"sex": "F",
"birth_place": { "country": "CA", "city": "Toronto", "province": "ON" },
"residences": [
{
"street_address": "1 King St W",
"unit": "1200",
"city": "Toronto",
"province": "ON",
"country": "CA",
"postal_code": "M5H1A1",
"start_date": "2022-06-01"
}
]
}'{
"reference": "TGR_CA_1A2B3C4D5",
"product": "credit_check",
"status": "in_progress",
"message": null,
"payment_status": "paid",
"amount": "<your price>",
"currency": "CAD",
"applicant": { "name": "Jane Q Doe", "email": "jane.doe@example.com" },
"created_at": "2026-07-03T12:00:00Z",
"completed_at": null
}A 402 means there's no card on file or the card was declined, and a 422 that billing or the billing address isn't finished; see going live. A second order for the same applicant and product on the same day returns 409 duplicate_daily_order, unless the earlier one ended failed. Retrying with the same Idempotency-Key and the same body returns the original order instead.
4. Get the result
Subscribe a webhook (preferred), or poll the order on the same product endpoint you ordered from until status is completed, failed or action_required. Poll each order at most every 30 seconds and stop once it has finished. For a credit report, the normalized result is in credit.
Every poll counts toward the 2,000 reads an hour per key: at one read every 30 seconds, about 17 open orders use it up. Identity verifications wait on the applicant, whose link lasts 14 days, so use webhooks for those.
curl "$TGR_API_BASE/credit_check/TGR_CA_1A2B3C4D5/" \
-H "X-Api-Key: $TGR_API_KEY"Building with a coding agent?
Point it at the API team's llms.txt, an index of the guides and every endpoint written for agents, or paste their prompt into Claude Code, Codex, Cursor, Windsurf, GitHub Copilot or another agent:
Integrate The Great Renters (TGR) tenant screening API into my backend.
What it does: my server orders screening checks for an applicant and gets the results by webhook or by polling. Products, each at its own endpoint:
- POST /identity_verification/ hosted ID + selfie check; the response has a one_id_url to send to the applicant
- POST /credit_check/, /global_watchlist/, /adverse_media/ single checks
- POST /basic_screening/, /enhanced_screening/ packages
- POST /custom_screening/ two or three single checks in one order
- GET /products/ products and prices
On staging, the identity verification link lets you pick approved, in review or declined, so test every outcome.
Read these docs before writing code:
- Index: https://dev-api.thegreatrenter.com/api/v1/docs/llms.txt
- Getting started: https://dev-api.thegreatrenter.com/api/v1/docs/md/getting-started.md
- Webhooks: https://dev-api.thegreatrenter.com/api/v1/docs/md/webhooks.md
- Troubleshooting: https://dev-api.thegreatrenter.com/api/v1/docs/md/troubleshooting.md
Environments:
- Staging: https://dev-api.thegreatrenter.com/api/v1 with an sk_test_ key. Build and test here.
- Production: https://api.thegreatrenter.com/api/v1 with an sk_live_ key.
Rules:
- Authenticate with the X-Api-Key header. Read the key from the TGR_API_KEY environment variable; never hard-code or log it.
- Send an Idempotency-Key header on every order.
- Read each order from the same product endpoint it was ordered on.
- Prefer the webhooks and verify the X-Webhook-Signature header as the webhooks page describes. Webhook endpoints are registered in the TGR dashboard, not via the API.
- If polling, check each order at most every 30 seconds. Do not retry 4xx responses, except 429 after its Retry-After interval.
- When a request fails, look up its status and message on the troubleshooting page before changing code.Staging and testing
Staging runs the same API with test results, so code built against it works unchanged in production. Its accounts, keys and webhook endpoints are separate from production's.
| Compared | Staging | Production |
|---|---|---|
| Base URL | https:// | https:// |
| Key | sk_test_... | sk_live_... |
| Dashboard | staging.thegreatrenter.com | app.thegreatrenter.com |
| Credit, watchlist, adverse media | The same clear sample result for every order | Real results |
| Identity verification | Free; you pick the outcome on the hosted page | A real ID and selfie check |
| Validation, responses, webhooks | Same as production | Same as staging |
What staging returns
Credit reports come back clear with a score of 857 and no collections, bankruptcies or late payments; global watchlist and adverse media come back clear with no match. Only the applicant's name, date of birth and address are echoed back, whatever else you send. A review, a low score or a match can't be produced on staging, so build those paths from the example payloads in the API team's reference. Invalid payloads are rejected with the same errors as in production, so you can test your error handling.
Test every identity outcome
With an sk_test_ key, the one_id_url page opens with a Choose a test result picker. Each choice produces the same response and webhooks as a real verification:
| Pick | Webhook event | status | result | is_identity_verified |
|---|---|---|---|---|
| Approved | identity_verification.completed | verified | clear | true |
| In review | identity_verification.completed | in_review | review | null |
| In review, then approved | identity_verification.review_resolved (decision: approved) | verified | clear | true |
| In review, then rejected | identity_verification.review_resolved (decision: rejected) | failed | flagged | false |
| Declined | identity_verification.completed | failed | flagged | false |
After In review or Declined you also pick the reason, which comes back in review_reason or failure_reason. In review: an underage ID sent to review, or a borderline selfie match. Declined: an expired document, under the minimum age, an MRZ checksum failure, an unreadable document, a face match below the decline threshold, a liveness face attack, or an IP address on a blocklist.
Getting a clean Approved
One order per applicant, product and day
409. Only an order that ended failed doesn't count, and an in-review or declined test ends completed, so it does. Use different applicant details for each outcome you test that day.Going live
- Create an
sk_live_key in app.thegreatrenter.com, and switchTGR_API_BASEtohttps://api.thegreatrenter.com/api/v1andTGR_API_KEYto the new key. - Finish billing in the dashboard, including a billing address so tax can be calculated (otherwise orders return
422). If your account pays per API call, add a card before your first order (otherwise402); for a high volume of checks, ask support about monthly invoicing. - If you use an IP allowlist, add every production server that calls the API, including the ones that poll.
- Register your production webhook endpoint in the production dashboard and store its signing secret: staging endpoints and secrets don't carry over.
- Keep sending an
Idempotency-Keyon every order and verifyingX-Webhook-Signatureon every delivery.
Authentication
Every product endpoint takes an API key in the X-Api-Key header. Keys belong to your company: sk_test_ keys come from the staging dashboard and work on staging, sk_live_ keys come from app.thegreatrenter.com and work in production. If you don't have an account yet, start here.
- Scopes. Placing an order needs a key with
WRITEorREAD_WRITEscope. Read endpoints, including PDF reports, accept a key of any scope, so give reporting jobs a read-only key. - IP allowlist. If your company has one, every call must come from a listed address, including the servers that poll for results; anything else gets
403. With no addresses listed, all addresses are allowed. The allowlist is managed in the dashboard. - API endpoints only. Keys work on the endpoints in this reference. Dashboard endpoints, including the ones that manage webhooks, refuse them with
403. - Failures. A missing, invalid, inactive or expired key returns
401(create a new key when one expires). The wrong scope, an IP that isn't allowlisted, or an account without API access returns403.
Keep keys on the server
Endpoints
Paths are relative to https://dev-api.thegreatrenter.com/api/v1 on staging and https://api.thegreatrenter.com/api/v1 in production. Each product has the same three routes: order, list, and get one. Read an order from the product endpoint you placed it on; another product's endpoint answers 404. Send order bodies as JSON; every order route accepts an optional Idempotency-Key header for safe retries.
| Method | Path | What it does |
|---|---|---|
| GET | /products/ | Products you can order, with your price and currency. |
| POST | /credit_check/ | Order Credit Report. |
| GET | /credit_check/ | List your Credit Report orders, newest first. |
| GET | /credit_check/{reference}/ | One Credit Report order and its result. |
| POST | /identity_verification/ | Order Identity Verification. |
| GET | /identity_verification/ | List your Identity Verification orders, newest first. |
| GET | /identity_verification/{reference}/ | One Identity Verification order and its result. |
| POST | /global_watchlist/ | Order Global Watchlist. |
| GET | /global_watchlist/ | List your Global Watchlist orders, newest first. |
| GET | /global_watchlist/{reference}/ | One Global Watchlist order and its result. |
| POST | /adverse_media/ | Order Adverse Media. |
| GET | /adverse_media/ | List your Adverse Media orders, newest first. |
| GET | /adverse_media/{reference}/ | One Adverse Media order and its result. |
| POST | /basic_screening/ | Order Basic Screening. |
| GET | /basic_screening/ | List your Basic Screening orders, newest first. |
| GET | /basic_screening/{reference}/ | One Basic Screening order and its result. |
| POST | /enhanced_screening/ | Order Enhanced Screening. |
| GET | /enhanced_screening/ | List your Enhanced Screening orders, newest first. |
| GET | /enhanced_screening/{reference}/ | One Enhanced Screening order and its result. |
| POST | /custom_screening/ | Order Custom Screening. |
| GET | /custom_screening/ | List your Custom Screening orders, newest first. |
| GET | /custom_screening/{reference}/ | One Custom Screening order and its result. |
| POST | /identity_verification/{reference}/review/ | Approve, decline, or ask for a resubmission on a verification in review. |
| GET | /request/{reference}/report/pdf/ | A finished order's report as a PDF: summary, full, or credit detail. |
Packages. basic_screening runs the Standard bundle and enhanced_screening the Complete bundle in a single order. Their identity step is a document check on ID images you supply, unless hosted identity verification is enabled for your account; see identity verification.
The applicant
Order endpoints share the applicant fields below. Dates are YYYY-MM-DD. Five fields are always required: email, first_name, middle_name, last_name, and date_of_birth. Send an empty string for middle_name when the applicant has none; the applicant must be 18 to 120 years old. Residences are required for every product except identity verification on oneId_1. The quickstart shows a complete body.
| Field | Type | Description |
|---|---|---|
first_namerequired | string | Legal first name. |
middle_namerequired | string | Middle name or initial; send an empty string when there is none. |
last_namerequired | string | Legal last name. |
emailrequired | string | The applicant's email address. |
date_of_birthrequired | date | The applicant's date of birth; they must be 18 to 120 years old. |
residences | array | Required for every product except identity verification on oneId_1. See the residence fields below. |
phone_number | string | The applicant's phone number. |
sex | string | For example F. |
birth_place | object | country, province and city. |
identification | object | Optional. Used by packages: ID image URLs to verify at order time; see below. |
Residences
| Field | Type | Description |
|---|---|---|
street_addressrequired | string | Street number and name. |
unit | string | Unit or apartment number. |
cityrequired | string | City. |
provincerequired | string | Two-letter code, for example ON or NY. |
countryrequired | string | Two-letter code, for example CA or US, not a country name. |
postal_coderequired | string | For example M5H1A1. |
start_daterequired | date | When the applicant moved in. |
Residence rules
- No
start_datein the future, and no two residences with the same start date. The latest start date is the current address; each earlier residence ends when the next one starts. - The history must cover at least the last six months: the oldest
start_datemust be more than six months ago, so an applicant who moved recently includes their previous address. Your account can be set to require one, two or three years; the error message states the period that applies. - At least one residence must be in Canada (
country: CA); otherwise the screening provider rejects the order and it endsfailed. - On identity verification with
oneId_1, residences can be left out, or sent for your own records without the six-month rule.
Identification (packages)
Add an identification object to a basic_screening or enhanced_screening order to include a document check: a front_url (required), an optional back_url, and an optional document_type. The images are verified when you order, and an IDENTITY_VERIFICATION check is added to the report. If the images can't be read, the order stops at action_required with a message saying what to fix; order again with a clearer image. When hosted identity verification is enabled for your account, identification is accepted but ignored.
Orders and results
Fetching an order returns the fields below; list endpoints wrap them in a paginated response. Placing an order returns an acknowledgement without report or credit: fetch the order for those. Identity verification adds one_id_url, link_expires_at, and identity_verification. Save the reference: it's how you fetch the result and how webhooks identify the order.
| Field | Type | Description |
|---|---|---|
reference | string | The order's ID, for example TGR_CA_1A2B3C4D5. |
product | string | Which product was ordered, for example credit_check. |
status | string | Where the order is; see the statuses below. |
message | string | null | A plain-language explanation when the order needs attention or could not be completed. |
payment_status | string | pending, invoiced, paid, or failed. |
amount, currency | string | What the order cost, and in which currency. |
applicant | object | The applicant's name and email. |
report | array | null | Check-level results, one entry per case: id, created, overall_status, overall_score, and a checks array of type, status, score, sub_score and output_claims. |
credit | object | null | Credit orders and packages: the normalized credit result, described below. Null until the bureau returns the report. |
created_at, completed_at | date-time | When the order was placed and when it finished. |
Statuses
| Field | Type | Description |
|---|---|---|
pending | working | Recorded; payment is being taken. |
action_required | check message | Paid or invoiced and being submitted, or waiting on corrected input. Read message. |
in_progress | working | With the provider. For identity verification, until the applicant finishes the hosted flow. |
completed | finished | The result is available. |
failed | finished | Payment or submission failed; no result will arrive. When the provider rejected the order, message says why and a card charge is refunded automatically. |
If you poll, stop at completed, failed or action_required, and check each order at most every 30 seconds. invited, opened, started and payment_required belong to the dashboard flow and are not used by product orders. Treat any value you don't recognise as still in progress.
The credit object
The bureau is picked from the applicant's most recent address, and credit has the same shape wherever they live. Scales differ by region, so read score_range instead of assuming 300 to 900. When the bureau returns an itemised file, credit.detail holds it in sections; each section lists its own columns, so read those rather than hard-coding field names, and treat an empty rows array as nothing reported.
"credit": {
"bureau": "equifax_us",
"country": "US",
"status": "COMPLETE",
"score": 710,
"score_range": { "min": 300, "max": 850 },
"band": "GOOD",
"date_created": "2026-07-03T12:19:00Z",
"claims": { "credit_score": 710, "has_bankruptcies": false }
}Safe retries and duplicates
Give every new order a unique Idempotency-Key of at most 255 characters, such as a UUID, and reuse it when you retry that order. The same key and body place no new order and return the original with 200 and Idempotent-Replayed: true, even when the original failed, so you always learn its reference. Reusing a key with a different body returns 409. Keys are scoped to your company and never expire.
Separately, a second order for the same applicant and product on the same calendar day (America/Toronto time) is refused with 409 duplicate_daily_order, with or without the header. Reuse the existing order or order again on a later day. An order that ended failed doesn't count, so a genuine retry is always allowed.
Billing
Every order is priced for your company. Accounts that pay per API call are charged by card when they order and refunded automatically if the provider rejects the order, so you only pay for orders that succeed; with no card on file or a declined card, the order returns 402. Accounts on monthly invoicing get the order on their invoice instead.
Custom screening
POST /custom_screening/ runs two or three of credit_check, global_watchlist and adverse_media as one order, with one reference, one charge and one combined report, instead of calling each check endpoint separately. Send the applicant as usual, plus a checks list.
# A new key for this order (reusing another order's key with a different body returns 409).
export TGR_IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "$TGR_API_BASE/custom_screening/" \
-H "X-Api-Key: $TGR_API_KEY" \
-H "Idempotency-Key: $TGR_IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"checks": [
"credit_check",
"adverse_media"
],
"email": "jane.doe@example.com",
"first_name": "Jane",
"middle_name": "Q",
"last_name": "Doe",
"date_of_birth": "1990-05-01",
"sex": "F",
"birth_place": {
"country": "CA",
"city": "Toronto",
"province": "ON"
},
"residences": [
{
"street_address": "1 King St W",
"unit": "1200",
"city": "Toronto",
"province": "ON",
"country": "CA",
"postal_code": "M5H1A1",
"start_date": "2022-06-01"
}
]
}'- A single check, an unknown or repeated check, or identity verification returns
400. Order a single check at its own endpoint, and identity verification at/identity_verification/. - Results: poll
GET /custom_screening/{reference}/, or subscribe to the checks' own completion events (credit_check.completed,global_watchlist.completed,adverse_media.completed). One fires for each check in the order once the combined result is ready, andreportthen carries every check's result. - Fetch a custom order from
/custom_screening/even when the event that told you iscredit_check.completed: an order is read from the endpoint it was placed on, and any other answers404.
Identity verification
A standalone identity verification works differently from the other checks, because the applicant has to take part: they upload a government ID and complete a selfie and liveness check on a page the provider hosts.
POST /identity_verification/returns aone_id_url, valid for 14 days (link_expires_at).- You send that link to the applicant. The Great Renter does not email them, and the order stays
in_progressuntil they finish. - When they do,
identity_verificationon the order holds the outcome:status(verified,in_review,failedorpending),result,is_identity_verified, the extracted name, date of birth and document details, and anywarnings. - The order's own
statusbecomescompletedas soon as there's a decision, includingin_review. So for a final answer, wait foridentity_verification.review_resolved, or keep checking untilidentity_verification.statusisverifiedorfailed.
# A new key for this order (reusing another order's key with a different body returns 409).
export TGR_IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "$TGR_API_BASE/identity_verification/" \
-H "X-Api-Key: $TGR_API_KEY" \
-H "Idempotency-Key: $TGR_IDEMPOTENCY_KEY" \
-H "X-IDV-Provider: oneId_1" \
-H "Content-Type: application/json" \
-d '{
"email": "jane.doe@example.com",
"first_name": "Jane",
"middle_name": "Q",
"last_name": "Doe",
"date_of_birth": "1990-05-01"
}'{
"reference": "TGR_CA_1A2B3C4D5",
"product": "identity_verification",
"status": "in_progress",
"message": null,
"payment_status": "paid",
"amount": "<your price>",
"currency": "CAD",
"applicant": { "name": "Jane Q Doe", "email": "jane.doe@example.com" },
"created_at": "2026-07-03T12:00:00Z",
"completed_at": null,
"one_id_url": "https://verify.example.com/session/abc123",
"link_expires_at": "2026-07-17T12:00:00Z"
}The optional X-IDV-Provider header picks the provider for one order; oneId_1 is the only value accepted (oneId_2 is no longer supported and returns 400). Without it, your company's configured provider is used, or the platform default if none is set. On oneId_1, residences can be left out, so send the header if you leave them out. On staging, the link lets you choose each outcome.
Hosted identity verification in packages
basic_screening and enhanced_screening orders also return one_id_url and link_expires_at: send the link to the applicant. The package's other checks run only after their identity is approved, and the order detail and completion webhook include an identity_verification outcome.Status-only identity results
identity_verification returns only the provider, status, result, verification flag, warnings, review or failure reason, and resubmission_options. Applicant names, dates of birth, document details, and images are omitted from API responses and webhooks.Reviewing a result
When a verification comes back in_review, record a decision with POST /identity_verification/{reference}/review/, using a write-capable key. Every request needs a decision and an actor, your identifier for the person deciding, such as their email.
| Field | Type | Description |
|---|---|---|
approve | decision | Closes the order as completed; the status becomes verified. |
decline | decision | Closes the order as completed; the status becomes failed. |
resubmit | decision | Reopens the order as in_progress with status pending. Send the applicant the returned one_id_url. |
corrections | object | Optional on any decision, to fix a misread document field: given_name, family_name, date_of_birth, document_type (P, ID, DL, RP or SSC) and document_number. The applicant record itself is never changed. |
resubmit_nodes | array | Optional only with resubmit. Pass retry targets from the result's resubmission_options, or omit it to retry all eligible steps automatically. |
POST /api/v1/identity_verification/TGR_CA_1A2B3C4D5/review/
X-Api-Key: <your write-capable API key>
Content-Type: application/json
{
"decision": "approve",
"actor": "admin@example.com",
"comment": "Identity confirmed."
}A decision can only be made once. 200 returns the updated order; store it. On 409 (review unavailable for this order, or no longer in review), 429 or 502, don't repeat the decision blindly: fetch the order and check its state first. 403 means the key can't write, or manual review isn't enabled for your company. Every successful decision is logged with the actor, the API key, the time, and the result before and after.
PDF reports
GET /request/{reference}/report/pdf/ returns a completed order's report as a PDF, the same one the dashboard produces, for your records or to show a client. A read-only key is enough.
| Field | Type | Description |
|---|---|---|
full | default | The detailed report, including the credit file. |
summary | version | A one-page summary. |
credit_detail | version | Only the credit file, in full. |
curl "$TGR_API_BASE/request/TGR_CA_1A2B3C4D5/report/pdf/?version=summary" \
-H "X-Api-Key: $TGR_API_KEY" \
-o report-summary.pdfPass the version as ?version=. Sections depend on the checks that were ordered, and sections the bureau reported nothing for are left out. Before the order completes, the endpoint answers 400 with "Request is not complete and report not ready".
Webhooks
Register an endpoint URL in the dashboard, choose its events, and The Great Renter POSTs a signed payload to it when a matching order finishes. Endpoints are managed by the account owner or an admin with a dashboard login, not with API keys, and separately on staging and production. The signing secret is shown once, when you register the URL, so store it straight away.
| Event | Fires when |
|---|---|
| credit_check.completed | A Credit Report order finishes. |
| identity_verification.completed | An Identity Verification order reaches a decision: verified, in review or failed. |
| global_watchlist.completed | A Global Watchlist order finishes. |
| adverse_media.completed | A Adverse Media order finishes. |
| basic_screening.completed | A Basic Screening package finishes. |
| enhanced_screening.completed | A Enhanced Screening package finishes. |
| identity_verification.review_resolved | An identity check that was in manual review is approved or rejected. |
| report.ready | Reserved for standard property-screening report completion. |
A custom_screening order has no event of its own: it fires the completion event of each check it includes.
Delivery
- An HTTP
POSTwithContent-Type: application/jsonto every active endpoint subscribed to the event, signed in two headers:X-Webhook-Signature(use this one) andX-Signature, kept for existing integrations. - Respond with any
2xxwithin 10 seconds. Acknowledge first and do the heavy work asynchronously. - A non-
2xx, a timeout, or a connection error is retried with backoff, up to five attempts in all. - Inactive endpoints are skipped, and deactivating an endpoint also cancels its queued deliveries.
- The endpoint URL must be publicly reachable. A private, loopback or internal address is rejected when you register it, and a delivery to a URL that later resolves to one is blocked, not retried.
Handle repeats
identity_verification.review_resolved by its event_id. If your receiver was down for longer than the retries, reconcile the same way.Verifying the signature
X-Webhook-Signature looks like t=1700000000,v1=5257a8…: t is the send time in Unix seconds and v1 is a hex-encoded HMAC-SHA256, keyed by your endpoint secret, of t, a ., and the raw request body. Recompute it over the exact bytes you received, before any JSON parsing, compare in constant time, and reject deliveries whose t is more than about five minutes old, which blocks replays. X-Signature, an HMAC of the body alone, can't detect a replay.
import crypto from "node:crypto";
import express from "express";
const TOLERANCE_SECONDS = 300; // reject deliveries more than 5 minutes old
// X-Webhook-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">
function isValidSignature(rawBody, header, secret) {
const parts = Object.fromEntries(
String(header ?? "").split(",").map((item) => {
const at = item.indexOf("=");
return [item.slice(0, at).trim(), item.slice(at + 1).trim()];
}),
);
const timestamp = Number(parts.t);
if (!Number.isInteger(timestamp) || !parts.v1) return false;
if (Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.`)
.update(rawBody)
.digest();
const received = Buffer.from(parts.v1, "hex");
return received.length === expected.length && crypto.timingSafeEqual(expected, received);
}
const app = express();
// Keep the raw bytes: the signature covers the body exactly as sent.
app.post("/webhooks/tgr", express.raw({ type: "application/json" }), (req, res) => {
if (!isValidSignature(req.body, req.get("X-Webhook-Signature"), process.env.TGR_WEBHOOK_SECRET)) {
return res.sendStatus(401);
}
const event = JSON.parse(req.body.toString("utf8"));
jobs.enqueue(event); // your own queue: answer within 10 seconds, process afterwards
res.sendStatus(200);
});Payloads
A <product>.completed event carries the order's reference, status, completed_at and report, plus credit for credit results.
{
"event": "credit_check.completed",
"reference": "TGR_CA_1A2B3C4D5",
"status": "completed",
"completed_at": "2026-07-03T12:20:00Z",
"report": [
{ "id": "case-abc", "overall_status": "COMPLETE", "checks": ["..."] }
],
"credit": {
"bureau": "equifax_us",
"country": "US",
"status": "COMPLETE",
"score": 710,
"score_range": { "min": 300, "max": 850 },
"band": "GOOD",
"date_created": "2026-07-03T12:19:00Z",
"claims": { "credit_score": 710, "has_bankruptcies": false }
}
}For identity verification, an identity_verification object takes the place of credit. The top-level status is the order's, and is completed once the check reaches a decision: read the outcome from identity_verification.status (verified, in_review or failed). A check that lands in review is followed by identity_verification.review_resolved, whose decision is approved or rejected. Document images are never included. These examples are in the status-only shape; companies with full results also get name, date_of_birth and identity_document.
{
"event": "identity_verification.completed",
"report": [ { "status": "In Review" } ],
"status": "completed",
"reference": "TGR_CA_10D6AF8A8",
"completed_at": "2026-11-13T18:33:56.414659+00:00",
"identity_verification": {
"result": "review",
"status": "in_review",
"provider": "oneId_1",
"warnings": ["Date of birth mismatch with provided information"],
"review_reason": "Date of birth mismatch with provided information",
"failure_reason": "",
"is_identity_verified": null,
"resubmission_options": [
{ "status": "In Review", "feature": "ID_VERIFICATION", "node_id": "feature_ocr" },
{ "status": "Approved", "feature": "LIVENESS", "node_id": "feature_liveness" },
{ "status": "Approved", "feature": "FACE_MATCH", "node_id": "feature_face_match" },
{ "status": "Approved", "feature": "IP_ANALYSIS", "node_id": "feature_ip_analysis" }
]
}
}Don't build on warnings
warnings are human-readable notes that can appear on any outcome, including verified, and new ones can appear at any time. Don't match on their text. Use status and is_identity_verified for the outcome, and review_reason or failure_reason for why a check went to review or failed.Errors, limits and pagination
Errors come back in one of three shapes: {"detail": "..."} for authentication and permission errors, {"field": ["message"]} for validation errors, and {"error": "...", "code": "..."} for order errors. Don't retry a 4xx except 429: fix the request instead. When the screening provider rejects an order (502), the order is recorded as failed, its message says why, and a card charge is refunded automatically.
| Status | Message or code | How to fix it |
|---|---|---|
| 401 | Invalid or inactive API key | The key is wrong, revoked or inactive. Use an sk_test_ key on staging and an sk_live_ key in production. |
| 401 | Authentication credentials were not provided. | The X-Api-Key header is missing. Check its name and that your code sends it. |
| 401 | API key has expired. | Create a new key in the dashboard. |
| 403 | Access denied: unauthorized IP for this company. | Add every server that calls the API, including pollers, to the allowlist in the dashboard. Don't retry until it's added. |
| 403 | API access is not enabled for your account. Contact your account manager to request access. | Ask your account manager to enable it. |
| 403 | You do not have permission to perform this action. | The key's scope doesn't allow the call (a read key placing an order), or it's a dashboard endpoint. Use a read_write key on the endpoints in this reference. |
| 403 | billing_suspended | Your billing account is suspended. Contact your account manager. |
| 400 | Residence history must cover at least … Add the previous address. | Add earlier addresses until the oldest start_date covers the period in the message. |
| 400 | Residence start_date cannot be in the future. / Two residences cannot share the same start_date. / At least one residence is required. | Fix the start_dates: none in the future, no two the same. |
| 400 | The applicant must be at least 18 years old to be screened. / Please check the date of birth — it looks incorrect. | Send date_of_birth as YYYY-MM-DD and check it; it must be 18 to 120 years ago. |
| 400 | This field is required. | A required field is missing. middle_name is required: send "" when there is none. |
| 402 | payment_failed | No card on file, or the card was declined, on an account that pays per call. Add or update the card, or ask support about monthly invoicing. |
| 409 | duplicate_daily_order | This applicant already has an order for this product today (America/Toronto). Reuse it, or order on a later day. |
| 409 | idempotency_key_reused | The Idempotency-Key was already used with a different body. Use a new key for each new order. |
| 422 | billing_incomplete / tax_unavailable | Finish billing and add a billing address in the dashboard. |
| 502 / failed | A residence country is not valid. … | Send two-letter country codes such as CA or US, not names. |
| 502 / failed | A required applicant detail is missing, … | Send province with every residence, as a two-letter code such as ON or NY. |
| 502 / failed | At least one of the applicant's residences must be in Canada. | Include at least one Canadian address (country: CA). |
| 502 / failed | The order could not be submitted for screening. … | Check the details against the payload rules and place a new order. If it keeps failing, contact support with the reference. |
| 404 | No Request matches the given query. | The reference doesn't exist, or you're reading it from a different product endpoint than it was ordered on. A list page past the end answers Invalid page., and the PDF endpoint answers Request not found. |
| 429 | Request was throttled. Expected available in … seconds. | Wait for the Retry-After interval, then back off. |
The full list, with each endpoint's example responses, is in the API team's troubleshooting guide.
Rate limits
Limits apply per API key and are counted across every product endpoint: 2,000 reads an hour and 120 orders an hour. Exceeding either returns 429 with a Retry-After header giving the seconds to wait before retrying.
Pagination
List endpoints return orders newest first, a page at a time, as count, totalPages, currentPage, and data. Pass page and limit to page through; the default limit is 10 and the maximum is 100. A page past the end returns 404. Use search for a partial, case-insensitive match on reference, applicant name, or email; reference and email for exact case-insensitive matches; and status for one or more comma-separated statuses. Filters combine with AND. ordering selects the result order.
Ready to build?
Keys are issued to company accounts. Email us with what you're building and ask for staging access at the same time, so you can build and test before you go live. Read how pricing and access work, or browse the full API reference.
Talk to us about access