Docs / Plates

Validate a plate

Checks a license plate against the format for a country. An invalid plate still returns 200. This does not check a vehicle registry.

POST/v1/plates/validate
import { Client } from "@liveapiio/liveapi";

const client = new Client({ token: process.env.LIVEAPI_TOKEN });

const plate = await client.validatePlate("34 ABC 123", "TR");

Request

Send Authorization: Bearer YOUR_TOKEN. The token stays on your server. Each library reads it from the environment and calls this endpoint for you.

FieldTypeDescription
platestringThe plate text. Required.
countrystringISO country code. Required.

Response

200 with valid: false means the format does not match. That response still uses one call.

Errors

A failed request returns { "error": { "code", "message" } } and does not use a call.

StatusCodeWhen
400invalid_requestA required field is missing or has the wrong type.
401unauthorizedThe bearer token is missing or not recognized.

We value your privacy

We use necessary cookies to run this website. With your consent, we would also like to use analytics and marketing cookies. Read our cookie policy.