Asynchronous checks
POST https://api.checksharecode.co.uk/v1/check/right-to-work/async, POST https://api.checksharecode.co.uk/v1/check/right-to-rent/async, POST https://api.checksharecode.co.uk/v1/check/immigration-status/async and POST https://api.checksharecode.co.uk/v1/check/driving-licence/async queue a check and answer at once with its id. We run it, retry it if gov.uk fails, then post the result to your callback URL, or keep it for you to fetch. Same request body, same result and same error codes as the matching synchronous endpoint.
Use it when you would rather not hold a request open while gov.uk answers, when you check many applicants at once, or when you want us to retry a check gov.uk failed. It works on every plan, and with sandbox keys too.
Headers
Bearer rtw_live_…200, so a retry after a network error never runs or charges a second check.applicant-4411-check-1sandbox-latency=realistic makes a test code take as long as a live check. See test codes. Live keys ignore it.sandbox-latency=realisticBody
checker_name.landlord or agent. The other endpoints refuse checker_type. See Right to rent.other_purpose when purpose is other. The other endpoints refuse them. See Immigration status.https://api.acme.example/hooks/rtw?applicant=4411applicant-4411curl https://api.checksharecode.co.uk/v1/check/right-to-work/async \
-H "Authorization: Bearer $CHECKSHARECODE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: applicant-4411-check-1" \
-d '{
"share_code": "AB1CD2EF3",
"date_of_birth": "1990-01-01",
"company_name": "Acme Ltd",
"callback_url": "https://api.acme.example/hooks/rtw?applicant=4411",
"client_reference": "applicant-4411"
}'{
"id": "chk_5f2a8c1e9b7d4a6f8e3c2b1a0d9f8e7c",
"status": "queued",
"mode": "live",
"client_reference": "applicant-4411",
"callback_url": "https://api.acme.example/hooks/rtw?applicant=4411",
"attempts": 0,
"result": null,
"error": null,
"result_expires_at": null,
"result_expired": false,
"created_at": "2026-09-28T10:00:00.000Z",
"completed_at": null
}The 202 has a Location header with the check’s URL, such as /v1/check/right-to-work/async/chk_…. Bad input, a bad key, an exhausted quota and rate limits come back straight away with the usual error, so you never wait for a webhook to learn a request was wrong.
Get a check
GET the URL in the Location header, such as /v1/check/right-to-work/async/:id, /v1/check/right-to-rent/async/:id, /v1/check/immigration-status/async/:id or /v1/check/driving-licence/async/:id, with the same key, and you get the check as it stands. Check ids are shared, so any of these paths returns any of your checks. If you set a callback URL you don’t need to poll: the webhook carries this same object.
{
"id": "chk_5f2a8c1e9b7d4a6f8e3c2b1a0d9f8e7c",
"status": "succeeded",
"mode": "live",
"client_reference": "applicant-4411",
"callback_url": "https://api.acme.example/hooks/rtw?applicant=4411",
"attempts": 1,
"result": { …the same object POST /v1/check/right-to-work returns… },
"error": null,
"result_expires_at": "2026-10-05T10:00:14.000Z",
"result_expired": false,
"created_at": "2026-09-28T10:00:00.000Z",
"completed_at": "2026-09-28T10:00:14.000Z"
}| Field | Type | Meaning |
|---|---|---|
| id | string | The check’s id, chk_ and 32 characters. |
| status | "queued" | "running" | "succeeded" | "failed" | Where the check is. succeeded and failed are final. |
| mode | "live" | "test" | Whether a live or a sandbox key queued it. |
| result | object | null | When succeeded: exactly what the synchronous endpoint returns, photo and PDF included. |
| error | { code, message } | null | When failed: the same code and message the synchronous endpoint would have returned. A driving licence check adds check_code_used. |
| attempts | integer | How many times we ran it. More than 1 means we retried. |
| callback_url | string | null | Where the result is posted. null means poll only. |
| client_reference | string | null | Your id for the check, as you sent it. |
| result_expires_at | date-time | null | When we delete the result: 7 days after the check ends. |
| result_expired | boolean | true once the result is deleted. status and error stay readable. |
| created_at, completed_at | date-time | When it was queued, and when it ended. |
Outcomes and retries
- Same outcomes as the sync API. What the synchronous endpoint answers with
200ends assucceeded. What it answers with an error ends asfailedwith that error code, soNOT_FOUNDis afailedcheck. Each is charged the way the synchronous endpoint charges it. - We retry for you.
TIMEOUT,BUSYandINTERNALare run again, up to 3 attempts in all, after about 30 seconds and then 2 minutes.GOVUK_UNEXPECTEDis run once more. Only the final outcome is charged. - Retries add time. A check that needs every retry takes a few minutes to end.
- A driving licence code is never sent twice. A check code works once, so we retry a driving licence check only when DVLA never saw its code (
check_code_usedisfalse). Otherwise it ends asfailed, and you ask the driver for a new code.
How long we keep the result
The result, photo and PDF included, is kept encrypted for 7 days after the check ends, so we can deliver it to you. Then it is deleted, with your client_reference and callback_url: result becomes null and result_expired becomes true. Save what you need when it arrives. The check’s status and error code stay readable for 30 days.
Limits and errors
- Checks in progress count. A queued or running live check counts against your allowance, so a free account can’t queue more checks than it has left (
402 QUOTA_EXCEEDED). Paid plans, and Free with a card, have no cap. - 100 in progress at once. Past that,
POSTanswers429 RATE_LIMITEDwithRetry-After. - Unknown ids.
GETanswers404 CHECK_NOT_FOUNDwhen no check with that id belongs to this key’s account and mode. A sandbox key can’t read a live check, and the other way round. - Sandbox keys run the same flow with the test codes, so you can build your webhook handler before you spend a live check. A sandbox key your agent got without an account can poll, but can’t use
callback_urluntil it is claimed.
Deprecated: POST /api/check/async
POST /api/check/async and GET /api/check/async/:id still work for right to work checks, as before, and refuse the other checks. Their responses carry a Deprecation header, and no date has been set to turn them off. To move, send the same body to POST /v1/check/right-to-work/async, and read checks from the URL in the Location header. Checks you already queued can be read from either path.