Right to rentLandlords and agentsWebhooksSandbox
Right to rent check API
Send a tenant’s share code and date of birth from your lettings software. gov.uk’s answer comes back as JSON in about 20 seconds, with the dates, photo and gov.uk PDF.
- Sandbox key straight away
- First 10 live checks free
- No card
POST /v1/check/right-to-rent
{
"share_code": "AB1CD2EF3",
"date_of_birth": "1990-01-01",
"checker_type": "agent",
"checker_name": "Acme Lettings Ltd"
}JANE EXAMPLE DOE
They have the right to rent in the UK until 1 January 2027.
- Valid until
- 1 January 2027
- Check again by
- 1 October 2027
- gov.uk reference
- WE-EXAMPLE-12
- Checked by
- Acme Lettings Ltd
Why an API
Stop typing share codes into gov.uk
Page 1 of 3
Enter the share code
Page 2 of 3
Enter their date of birth
Page 3 of 3
Landlord or agent, and your name
Then save the PDF, work out when to check again, put it in a diary, and start again for the next tenant.
Sample run: 6 checked · PDFs saved · next checks scheduled
1 request
instead of gov.uk’s form, typed by hand
About 20 s
a typical live check, gov.uk included
0 diaries
recheck_date comes back whenever there is a date to check again
How it works
What happens in those 20 seconds
Your app
01const res = await fetch( "https://api.checksharecode.co.uk/v1/check/right-to-rent", { method: "POST", headers, body })
One request with the share code and date of birth, and your bearer key. The spec is at /openapi.json.
gov.uk, by our browser
02- Share code entered
- Date of birth entered
- Landlord or agent chosen
- Reading gov.uk’s answer
We fill in gov.uk’s form in a real browser, the same pages a person would. Usually 15 to 40 seconds.
Back to you
03{ "outcome": "ACCEPTED",
"recheck_date": "2027-10-01",
"pdf_data_url": "data:…" }The outcome, dates, photo and gov.uk PDF as JSON. Wait for it, or get a webhook when it’s done.
Sandbox
Every answer gov.uk can give, before your first real tenant
Your sandbox key comes the moment you sign up. These test codes answer instantly, or as slowly as gov.uk if you ask, never touch gov.uk and are never charged.
ACCEPTED
AA1AA1AA1Time limited right to rent with an end date
REJECTED
BB2BB2BB2No right to rent
NOT_FOUND
CC3CC3CC3No gov.uk record matches the code and date of birth
SHARE_CODE_UNUSABLE
DD4DD4DD4gov.uk will not use this code, ask for a new one
GOVUK_UNEXPECTED
EE5EE5EE5gov.uk had a problem
TIMEOUT
FF6FF6FF6gov.uk did not answer in time, retry later
BUSY
GG7GG7GG7Every gov.uk session is in use, retry after Retry-After
ACCEPTED
ST5ST5ST5No time limit
Any other code: ACCEPTED, no time limit.
Compared
Right to rent check APIs compared
- API
- Check Share Code
- Yes
- ukrtwchecker.co.uk
- Yes
- gov.uk by hand
- No
- Price
- Check Share Code
- £14 for 100 a month
- ukrtwchecker.co.uk
- £19 for 100 a month
- gov.uk by hand
- Free, staff time
- Photo and PDF
- Check Share Code
- Every response
- ukrtwchecker.co.uk
- When requested
- gov.uk by hand
- Download by hand
- Dates
- Check Share Code
- ISO 8601
- ukrtwchecker.co.uk
- DD/MM/YYYY
- gov.uk by hand
- Written out
From each provider's website, 28 September 2026.
£0
your first 10 live checks
Unlimited sandbox. No card.
£14
a month for 100 checks
Bigger plans on the pricing page.
£0
when gov.uk fails
Timeouts and gov.uk errors aren’t charged.
Ask your AI about this API
It reads this page, then tells you if it fits, what it costs and what building it takes.
Questions
Before you build
Is there a Home Office right to rent API?
No. gov.uk has no API for right to rent checks. The official route is the form at gov.uk/view-right-to-rent, filled in by hand for each tenant. Check Share Code runs that check for you: POST the tenant’s share code and date of birth to /v1/check/right-to-rent and get the outcome, the end date of their permission, their photo, a reference and the gov.uk PDF back as JSON. It is an independent service, not affiliated with HM Government, the Home Office or gov.uk.
What is a right to rent share code?
A 9 character code a tenant creates at gov.uk/prove-right-to-rent to prove their right to rent in England. You check it together with their date of birth. A code made for right to work will not open a right to rent check.
What does a right to rent check return?
Whether the tenant has a right to rent, their name and photo, the date their permission ends, the date to check again by, a Home Office reference and the gov.uk PDF.
When do I check a tenant again?
The response has recheck_date: the later of the date their permission ends and one year after this check. It is null when their right to rent has no time limit.
Who has to do right to rent checks?
Landlords and letting agents in England, for every adult who will live in the property. Send checker_type as landlord or agent, and checker_name as the landlord or the company.
Is it the same account and price as right to work?
Yes. One API key runs all three checks (right to work, right to rent and immigration status), and they share one allowance: your first 10 live checks free, then from £14 a month for 100.
Your first right to rent check,
in the next ten minutes
Sandbox key straight away. Your first 10 live checks free.