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.
- 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"
}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.
Why an API
Stop typing share codes into gov.uk
Page 1 of 4
Enter the share code
Page 2 of 4
Enter their date of birth
Page 3 of 4
Your job title and organisation
Page 4 of 4
Why are you checking their status?
Then save the PDF, note when their status ends, and start again for the next customer.
Sample run: 6 checked · PDFs saved · next checks scheduled
1 request
instead of four pages typed by hand
About 20 s
a typical live check, gov.uk included
0 diaries
valid_until comes back whenever their status has an end date
How it works
What happens in those 20 seconds
Your app
01const 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- 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.
Sandbox
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.
ACCEPTED
AA1AA1AA1Skilled Worker with a valid until date
ACCEPTED
BB2BB2BB2Family or Private Life: cannot access public funds
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
ST5ST5ST5Settled status with no time limit
Any other code: ACCEPTED, settled status with no time limit.
Compared
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.
Questions
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.