Last updated 23 November 2026View as Markdown

Driving licenceDVLA check codesWebhooksSandbox

Driving licence check API

Send a driver’s licence number and the check code they made on gov.uk. DVLA’s record comes back as JSON in about 10 seconds: status, points, categories with their restrictions, and DVLA’s PDF.

Read the quickstart
  • Sandbox key straight away
  • First 5 driving licence checks free
  • No card

POST /v1/check/driving-licence

{
  "licence_number": "192GT2BD",
  "check_code": "Hb Rh fp 7g"
}
Current full licenceSample answer, made up

MISS JANE EXAMPLE DOE

3 penalty points, 1 offence

Automatic onlyTheir car licence (category B) has restriction 78 or 106, so they can drive automatic cars only, not a manual.
Licence number ends
192GT2BD
Issue number
12
Licence valid to
4 August 2028
Viewed
1 October 2026 at 09:45

Full categories

  • B20 July 2009 to 1 January 2060Automatic only
    • 78 Restricted to vehicles with automatic transmission
  • AM20 July 2009 to 1 January 2060
    • 122 Valid on successful completion of Basic Moped Training Course (CBT)

Provisional categories

  • A1 January 2007 to 1 January 2060
Returned as JSON, with DVLA’s PDF
DVLA service statusTypical live check about 10 sSandbox instantData kept 7 days at mostLive status →

Stop copying licence records off DVLA

By hand× every driver
viewdrivingrecord.service.gov.uk

Enter details

Driving licence number

Last 8 characters only. For example, 192GT2BD

192GT2BD

Check code

This code is case sensitive, For example HbRhfp7g

Hb Rh fp 7g
Check licence

Then read every category and its restriction codes, note the points, save DVLA’s PDF, and start again for the next driver.

With the APIone request each
AAAA0001ACCEPTED9.2 s
BBBB0001ACCEPTED9.8 s
CCCC0001ACCEPTED10.4 s
HbRhfp7gACCEPTED9.6 s
DDDD0001CHECK_CODE_UNUSABLE4.1 s
EEEE0001GOVUK_UNEXPECTED6.3 s

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

What happens in those 10 seconds

Your app

01
const res = await fetch(
  "https://api.checksharecode.co.uk/v1/check/driving-licence",
  { method: "POST", headers, body })

One request with the licence number and check code, and your bearer key. The spec is at /openapi.json.

DVLA, by our browser

02
viewdrivingrecord.service.gov.uk
  • Licence number entered
  • Check code entered
  • Sent once, never retried
  • Reading DVLA’s answer

We fill in DVLA’s form in a real browser, the same pages a person would. Usually 5 to 15 seconds.

Back to you

03
{ "outcome": "ACCEPTED",
  "licence_valid_to": "2028-08-04",
  "pdf_data_url": "data:…" }

The record, points, categories and DVLA’s PDF as JSON. Wait for it, or get a webhook when it’s done.

Every answer DVLA can give, before your first real driver

Your sandbox key comes the moment you sign up. These test codes answer instantly, or as slowly as DVLA if you ask, never touch DVLA and are never charged.

Read the quickstart
  • ACCEPTED

    AAAA0001

    A full licence, no points

  • ACCEPTED

    BBBB0001

    Category B with restriction 78: automatic_only true

  • ACCEPTED

    CCCC0001

    6 points from 1 offence, listed in endorsements, with the points_6_to_8 flag

  • CHECK_CODE_UNUSABLE

    DDDD0001

    DVLA did not accept the code, ask the driver for a new one

  • GOVUK_UNEXPECTED

    EEEE0001

    DVLA had a problem

  • TIMEOUT

    FFFF0001

    DVLA did not answer in time; check_code_used "unknown", so ask for a new code

  • BUSY

    GGGG0001

    Every DVLA session is in use; check_code_used false, so send the same code again

  • ACCEPTED

    HHHH0001

    Driving status Disqualified, with DR10 (category drink, 0 points) in endorsements

Any other code: a clean full licence. A code works once, in the sandbox too, so change the last 4 characters for each test.

Driving licence check APIs compared

  • Driver gives
    Check Share Code
    A check code
    VehicleMatic
    A check code
    Driver Codes
    Their app and a mandate
    CheckedSafe
    A DVLA mandate
  • API
    Check Share Code
    Yes
    VehicleMatic
    Yes
    Driver Codes
    Enterprise only
    CheckedSafe
    No
  • Per check
    Check Share Code
    £0.15 to £1.50
    VehicleMatic
    £1.10 to £1.50
    Driver Codes
    £1 to £1.60
    CheckedSafe
    £1.60
  • Evidence PDF
    Check Share Code
    Yes
    VehicleMatic
    Not listed
    Driver Codes
    Yes
    CheckedSafe
    Not listed
  • Right to work too
    Check Share Code
    Yes
    VehicleMatic
    No
    Driver Codes
    No
    CheckedSafe
    No

From each provider's website, 15 October 2026. Our price is per driving licence check: it uses 2 checks of a plan.

£0

your first 5 driving licence checks

A driving licence check uses 2 of the 10 free checks. No card.

£14

a month for 50 driving licence checks

£0.28 each. Bigger plans on the pricing page.

£0

when DVLA fails

Timeouts and DVLA errors aren’t charged. A refused code is.

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 DVLA API for driving licence checks?

Not for check codes. DVLA’s Access to Driver Data API is only for approved organisations and needs a signed declaration from each driver. The check code service is a web form, filled in by hand for each driver. Check Share Code runs that form for you: POST the licence number and check code to /v1/check/driving-licence and get DVLA’s record back as JSON. It is an independent service, not affiliated with DVLA, HM Government or gov.uk.

How can an employer or small fleet automate DVLA licence checks?

There are two ways. A fleet that re-checks many drivers on a schedule can use a licence checking provider connected to DVLA’s Access to Driver Data service: each driver signs a declaration, and the provider runs the checks while it is valid. An employer with a few drivers, or a business that checks drivers when it hires them, can use check codes with no contract or declaration: collect the driver’s licence number and check code in your own form, spreadsheet or HR system, POST them to /v1/check/driving-licence, and keep the JSON and DVLA’s PDF on the driver’s record. It is paid per check (£1.50 on the free plan with a card, less on a monthly plan), and your first 5 are free. Each later check needs a new code from the driver.

Do I need Access to Driver Data or a check code?

Use Access to Driver Data, through a provider, when you want a provider to check DVLA for you on a schedule, for example every few months, without asking drivers each time. Use a check code when you check at hiring, before a driver starts a job or when you choose to, and want no contract or signed declarations: the driver makes the code at gov.uk/view-driving-licence in a few minutes. Check Share Code does check codes only.

What is a DVLA check code?

An 8 character code a driver creates at gov.uk/view-driving-licence so someone else can see their licence record, for example Hb Rh fp 7g. Case matters. It lasts 21 days and works once: after one check it cannot be used again, so ask the driver for a new code for each check. The driver can cancel a code at any time.

What do I send?

licence_number, the driver’s licence number: all 16 characters or just the last 8 (DVLA is only sent the last 8), and check_code, the code the driver gave you. Spaces in the code are fine.

What does a driving licence check return?

The driver’s name as DVLA shows it, their driving status (for example Current full licence), the last 8 characters of the licence number, its issue number and the dates it is valid from and to, the number of offences and penalty points, each endorsement with its code, a category such as drink, drugs or insurance, its dates and points, and every category they can drive, full and provisional, with its dates, restriction codes and DVLA’s text for each. automatic_only is true when category B carries restriction 78 or 106, so they cannot drive a manual car. Flags mark 6 to 8 points, 9 or more points, a licence or category ending within 90 days, and a licence that is not a current full licence. DVLA’s own PDF comes back too.

What does it not return?

Date of birth, address and photo: DVLA’s check code service does not show them. Nor does it show conviction dates or the details of a ban (driving_status says whether they are disqualified). Each endorsement does come back, with its code (such as DR10, DG10 or IN10), a category (drink, drugs, insurance and so on), DVLA’s wording, offence date, penalty points, whether those points have expired, and when it comes off the record. If a record has penalties we cannot read whole, endorsements is null and you still get the number of offences and points, and DVLA’s PDF.

Can I check a Northern Ireland licence?

Yes, since 13 November 2026, on an endpoint of its own while it is new: send the 8 digit Northern Ireland licence number and the check code the driver makes on nidirect to /v1/check/driving-licence-ni, and the check runs on DVA’s Check Driving Licence service. issuer is DVA, and DVA’s record also gives the date of birth and address. It is in beta: DVA’s online check is itself new, so its first live checks are being verified. The endpoint is stable to build on, but if DVA’s service changes what it shows, we may release a v2 of it. See the Northern Ireland driving licence check API page.

Is DVLA’s PDF proof of entitlement?

No. pdf_data_url is DVLA’s own Save or print this licence PDF. DVLA’s terms say printouts from its service are not proof of driving entitlement, so keep it as a record of what DVLA showed and when, not as proof.

What happens when a code is wrong or already used?

DVLA refuses it without saying why (a wrong licence number, or a code that is wrong, expired, used or cancelled), and you get CHECK_CODE_UNUSABLE: ask the driver for a new code. If your account sent the same code in the last 21 days, you get CHECK_CODE_ALREADY_USED before DVLA sees it, and it is not charged. Every driving licence error carries check_code_used: when it is false, you can send the same code again.

How much does a driving licence check cost?

A driving licence check uses 2 checks of your plan’s allowance, refused codes included. Your first 10 checks are free, so 5 driving licence checks, and with a card on file each extra one is £1.50. Pro is £14 a month for 50 driving licence checks (£0.28 each), then £0.50 each. Scale is £49 a month for 250 (£0.20 each), then £0.20 each. Platform is £149 a month for 1,000 (£0.15 each), then £0.14 each. Timeouts and DVLA errors are not charged.

Who uses driving licence checks?

Employers whose staff drive for work, fleet and transport operators, delivery and courier platforms, vehicle hire firms and driver agencies. Many check when they hire and again from time to time: each check needs a new code from the driver.

Is it the same account as the share code checks?

Yes. One API key runs all four checks, and they share one allowance. Your sandbox key runs driving licence checks too, with a test code for each answer.

Your first driving licence check, in the next ten minutes

Sandbox key straight away. Your first 5 driving licence checks free.

Read the quickstart