Last updated 23 November 2026View as Markdown

Immigration statusBanks, lenders, universitiesWebhooksSandbox

Immigration status check API

Send a share code and date of birth, with who is checking and why. gov.uk’s answer comes back as JSON in about 20 seconds: their status, when it ends, the photo and the gov.uk PDF.

Read the quickstart
  • Sandbox key straight away
  • First 10 live checks free
  • No card

POST /v1/check/immigration-status

{
  "share_code": "AB1CD2EF3",
  "date_of_birth": "1990-01-01",
  "company_name": "Example Bank",
  "job_title": "Account opening officer",
  "purpose": "personal_finance"
}
Immigration status confirmedSample answer, made up

JANE EXAMPLE DOE

Skilled Worker

Valid from
1 January 2024
Valid until
1 January 2027
Nationality
CAN
gov.uk reference
SC-EXAMPLE-12
Checked for
Example Bank, Leeds branch

They can

  • live in the UK until 1 January 2027
  • study

They cannot

  • They cannot access public funds.
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 customer
gov.uk/check-immigration-status

Page 1 of 4

Enter the share code

AB1 CD2 EF3
Continue

Page 2 of 4

Enter their date of birth

01 01 1990
Continue

Page 3 of 4

Your job title and organisation

Account opening officer
Continue

Page 4 of 4

Why are you checking their status?

Personal finance
Continue

Then save the PDF, note when their status ends, and start again for the next customer.

With the APIone request each
AA1AA1AA1ACCEPTED20.4 s
BB2BB2BB2ACCEPTED21.0 s
CC3CC3CC3NOT_FOUND18.7 s
AB1CD2EF3ACCEPTED19.6 s
DD4DD4DD4SHARE_CODE_UNUSABLE17.9 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/immigration-status",
  { 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/check-immigration-status
  • Share code entered
  • Date of birth entered
  • Job title and organisation entered
  • Reason 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",
  "valid_until": "2027-01-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 customer

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

    Skilled Worker with a valid until date

  • ACCEPTED

    BB2BB2BB2

    Family or Private Life: cannot access public funds

  • 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

    Settled status with no time limit

Any other code: ACCEPTED, settled status with no time limit.

Immigration status 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 immigration status API?

No. gov.uk has no API for immigration status checks. The official route is the form at gov.uk/check-immigration-status, filled in by hand for each person. Check Share Code runs that check for you: POST the person’s share code and date of birth, with your organisation, job title and reason, to /v1/check/immigration-status and get their status, the dates it is valid, what they can and cannot do, 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 an immigration status share code?

A 9 character code, starting with S, that a person creates at gov.uk/view-prove-immigration-status to prove their status for a reason other than work or renting, such as opening a bank account. It lasts 90 days. You check it together with their date of birth.

What does an immigration status check return?

The person's name, date of birth, nationality and photo, their status in gov.uk's words, the dates it is valid from and until, what they can and cannot do in the UK, a Home Office reference and the gov.uk PDF.

What do I send?

share_code, date_of_birth, company_name (your organisation, with its branch), job_title (the job title of the person checking) and purpose, the reason gov.uk asks for: one of driving_licence, student_loan, education_or_training, health_insurance_card, personal_finance, homelessness_or_council_housing, travel, other. With purpose set to other, add your reason as other_purpose. gov.uk’s own words for the reason come back as purpose.

Is there a REJECTED outcome?

No. outcome is ACCEPTED whenever gov.uk shows a status. A code gov.uk cannot find, or will not use, comes back as an error code (NOT_FOUND or SHARE_CODE_UNUSABLE), as for the other checks.

When does their status end?

valid_until is the day their status ends. It is null when there is no time limit, as with settled status.

Who uses immigration status checks?

Banks, building societies and lenders, universities and colleges, councils deciding on housing or homelessness help, and anyone checking eligibility for a driving licence, a student loan or a health insurance card.

Is it the same account and price as right to work?

Yes. One API key runs all three checks, and they share one allowance: your first 10 live checks free, then from £14 a month for 100.

Your first immigration status check, in the next ten minutes

Sandbox key straight away. Your first 10 live checks free.

Read the quickstart