On this page
The Validation API compares a person's submitted identity information against the Verifined Database. Given a Thai national ID (id_card_no) together with the person's first name, last name and birth date, it confirms whether the record exists and which of those attributes match.
Optimised for low-latency, high-volume workloads, the endpoint validates identity using only the ID card number, name and birth date — no laser ID is required, enabling frictionless checks at scale. Typical applications include user onboarding and KYC, trust-and-safety and fraud prevention, and account-integrity checks.
https://verifined.co/api/public/v1/thai-id/validateRequest
Header
AuthorizationstringRequiredThe API key used to call the Validation API. Your usage is logged against this key.
Example
FINEMA xxx...Content-TypestringOptionalMedia type of the request body.
Example
application/json
Body
id_card_nostringRequiredThai national ID card number. Must be 13 digits, numbers only, no hyphen (-).
Example
"1103700382xxx"first_namestringRequiredFirst name as shown on the ID card. Thai only; must not include a title (e.g. นาย / นาง).
Example
"สมชาย"last_namestringRequiredLast name as shown on the ID card. Thai only.
Example
"ใจดี"birth_datestringRequiredBirth date in
YYYY-MM-DD, where the year is in AD (CE).Example
"1991-12-31"
curl -X POST 'https://verifined.co/api/public/v1/thai-id/validate' \
--header 'Authorization: FINEMA <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id_card_no": "1103700382xxx",
"first_name": "สมชาย",
"last_name": "ใจดี",
"birth_date": "1991-12-31"
}'Response
Returned when the request is processed. A correctly formatted id_card_no with no matching record returns HTTP 404 instead (see Result codes).
{
"verified": true,
"code": "MATCHED",
"message": "Found; everything matched",
"tr_id": "3582be57-f84e-4c3c-9fd7-67b4c6169ae9"
}Response fields
verifiedbooleantrueonly when theid_card_no, birth date, first name and last name all match.falsein every other case, including an invalidid_card_noformat.codestringResult code. One of
MATCHED,NAME_MISMATCH,DOB_MISMATCH,MISMATCH,INVALID_STRING.messagestringHuman-readable description of the result.
tr_idstringUnique transaction ID, generated per request (UUID v4). Use for tracing / support.
Result codes
verified is true only when every field matches (MATCHED). The table shows how the main field combinations map to a result. ✓ = matched, ✗ = did not match, — = not evaluated. Invalid = id_card_no fails its format check (13 digits, numeric only); no lookup is performed.
| ID no | Birth date | First name | Last name | verified | code | message |
|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | true | MATCHED | Found; everything matched |
| ✓ | ✓ | ✓ | ✗ | false | NAME_MISMATCH | Found (id card number and birth date matched); last name did not match |
| ✓ | ✓ | ✗ | ✓ | false | NAME_MISMATCH | Found (id card number and birth date matched); first name did not match |
| ✓ | ✓ | ✗ | ✗ | false | NAME_MISMATCH | Found (id card number and birth date matched); neither first nor last name matched |
| ✓ | ✗ | ✓ | ✓ | false | DOB_MISMATCH | id card number and name matched, but the birth date did not |
| ✓ | ✗ | ✗ | ✗ | false | MISMATCH | Only the id card number matched; nothing else did |
| Invalid | — | — | — | false | INVALID_STRING | id_card_no or laser_id has an invalid format. |
| ✗ | — | — | — | — | — | HTTP 404 NOT_FOUND |
Status codes and charging
| HTTP | Description | Charged |
|---|---|---|
| 200 | Result returned successfully — matched, mismatched, or an invalid id_card_no format. | Yes |
| 400 | INVALID_PARAMSA required key is missing from the body. | No |
| 400 | INVALID_TOKENThe Authorization header is missing. | No |
| 401 | INVALID_TOKENThe API key is invalid or expired. | No |
| 404 | URL_NOT_FOUNDThe request path does not exist. | No |
| 404 | NOT_FOUNDid_card_no is correctly formatted but no record was found. | No |
| 500 | INTERNAL_SERVER_ERRORAn unexpected server-side error occurred. | No |
