Last updated 23 November 2026View as Markdown

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.

Read the quickstart
  • 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"
}
Right to rent confirmedSample answer, made up

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
Returned as JSON, with the photo and the gov.uk PDF
gov.uk service statusTypical live check about 20 sSandbox instantData kept 7 days at mostLive status →

Stop typing share codes into gov.uk

By hand× every tenant
gov.uk/view-right-to-rent

Page 1 of 3

Enter the share code

AB1 CD2 EF3
Continue

Page 2 of 3

Enter their date of birth

01 01 1990
Continue

Page 3 of 3

Landlord or agent, and your name

Agent, Acme Lettings Ltd
Continue

Then save the PDF, work out when to check again, put it in a diary, and start again for the next tenant.

With the APIone request each
AA1AA1AA1ACCEPTED21.4 s
BB2BB2BB2REJECTED22.0 s
CC3CC3CC3NOT_FOUND19.1 s
AB1CD2EF3ACCEPTED20.6 s
DD4DD4DD4SHARE_CODE_UNUSABLE18.2 s
EE5EE5EE5GOVUK_UNEXPECTED30.0 s

Sample run: 6 checked · PDFs saved · next checks scheduled

What happens in those 20 seconds

Your app

01
const 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
gov.uk/view-right-to-rent
  • 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.

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.

Read the quickstart
  • ACCEPTED

    AA1AA1AA1

    Time limited right to rent with an end date

  • REJECTED

    BB2BB2BB2

    No right to rent

  • NOT_FOUND

    CC3CC3CC3

    No gov.uk record matches the code and date of birth

  • SHARE_CODE_UNUSABLE

    DD4DD4DD4

    gov.uk will not use this code, ask for a new one

  • GOVUK_UNEXPECTED

    EE5EE5EE5

    gov.uk had a problem

  • TIMEOUT

    FF6FF6FF6

    gov.uk did not answer in time, retry later

  • BUSY

    GG7GG7GG7

    Every gov.uk session is in use, retry after Retry-After

  • ACCEPTED

    ST5ST5ST5

    No time limit

Any other code: ACCEPTED, no time limit.

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.

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.

Read the quickstart