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/validateimport { 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.
| Field | Type | Description |
|---|---|---|
| plate | string | The plate text. Required. |
| country | string | ISO 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.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A required field is missing or has the wrong type. |
| 401 | unauthorized | The bearer token is missing or not recognized. |