On this page
This page describes behaviour shared by all Verifined services. The per-API pages specify only what differs; where a page states something different from this one, the page governs, because it reflects the published behaviour of that specific service.
Endpoint host
All services are served over HTTPS. The endpoints are published as fully-qualified URLs on the production host https://verifined.co. Each API's endpoint block gives the exact method and path to call.
API keys
Every request must carry your API key in the Authorization header, in the form FINEMA <api-key>. Keys are issued to your company by Finema during onboarding and are tied to your account, your entitlements and your usage plan. All usage is logged against the key that made the call.
Authorization: FINEMA <api-key>Request format
- Endpoints that take a body accept JSON and should be called with
Content-Type: application/json. - String values are UTF-8. Thai-language name fields must be supplied in Thai script and without a title such as นาย or นาง.
- Identifiers are sent as strings, not numbers, so that leading zeros are preserved.
- Requests should be made from your backend. See Security and data handling.
Transaction identifiers
Verifined uses two distinct identifiers. Both are UUID version 4 values, and quoting them makes support requests much faster to resolve.
tr_idA record reference for one API call. Returned by the Verification and Validation APIs and by Authentication Start Login; Check Login Status responses do not include it. Whether an error response includes it is shown in each API's examples. Store it with your own audit record of the transaction.
transaction_idAuthentication API only. A handle for one login attempt, which spans several calls: it is returned when the login is started and then supplied back when checking status. It is not a per-request identifier.
Error model
Errors arise at two levels. Gateway-level errors are raised before the underlying service runs — a malformed request, an unusable API key, an unknown path — and are returned with an HTTP status in the 4xx or 5xx range and a body containing a machine-readable code and a human-readable message. INVALID_PARAMS responses also include a fields object, and the Verification API also returns a tr_id.
{
"code": "INVALID_TOKEN",
"message": "Token is invalid"
}Service-level outcomes — a mismatch, a record that does not exist — are not errors in this sense. They are returned inside the normal success envelope with HTTP 200, as described in each API's page. Exceptions: the Validation API returns HTTP 404 NOT_FOUND when no record matches, and the Authentication API returns HTTP 410 when a login result has already been retrieved or has expired.
The codes below are shared across services. Each API returns only the codes listed in its own status-code table, which also gives the exact message text.
| HTTP | Code | Description |
|---|---|---|
| 400 | INVALID_PARAMS | A required field is missing, or a field value is not accepted (for example an empty or unsupported scope). The response includes a fields object identifying each offending field. Other field-format errors are returned with HTTP 200 by the Verification and Validation APIs. |
| 400 | INVALID_TOKEN | The Authorization header is missing. |
| 401 | INVALID_TOKEN | The Authorization header is malformed, unrecognised or expired. |
| 404 | URL_NOT_FOUND | The request path does not exist. Check the method and the path. |
| 500 | INTERNAL_SERVER_ERROR | An unexpected failure inside the platform. Safe to retry after a short delay. |
| 502 | BAD_GATEWAY | The platform could not reach, or could not parse a reply from, the authoritative source. |
| 503 | — | The upstream data source is temporarily unavailable. Retry later rather than treating the identity as unverified. |
Metered usage
Usage is metered against the API key that made the call. In general, a request is charged when the service returns a result with HTTP 200, and is not charged when it is rejected with a 4xx or 5xx status. As a result, a Verification No 2 response and a Validation INVALID_STRING response (input in the wrong format) are charged even though no record lookup is performed; a Validation request for a well-formed id_card_no with no matching record returns HTTP 404 NOT_FOUND and is not charged; and each Authentication Start Login call is charged when it is made, whether or not the user completes the login, while Check Login Status is not charged.
Security and data handling
- Keep the API key on your backend. Never embed it in a browser page, a mobile application binary or any client-side code, and never expose it through a public repository.
- Request only the data you need. This applies most directly to the Authentication API, where the scope you request is shown to the person on the consent screen and determines what you then have to store and protect.
- Do not put personal data in URLs. Verifined follows this rule itself: when a ThaID login completes, the browser is redirected back to your site carrying only a
transaction_idand astatus, never identity attributes. - Log the `tr_id`, not the payload. It is enough to trace any call with Finema support, and it keeps personal data out of your application logs.
- If a key may have been exposed, contact Finema for a replacement rather than continuing to use it.
