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, generated fresh on every request. Returned by the Verification and Validation APIs and by Authentication Start Login. 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 as a bare object with a machine-readable code and a human-readable message, with an HTTP status in the 4xx or 5xx range and no envelope:
{
"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 gateway codes below are used consistently across services. The set that applies to a given endpoint, and the exact message text, are listed in that API's page.
| HTTP | Code | Description |
|---|---|---|
| 400 | INVALID_PARAMS | A required field is missing. The response includes a fields object identifying each offending field. Field-format errors are reported per service. |
| 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. The governing principle is that you are charged when the platform produced an answer, and not when the request was rejected before it could be answered — so a genuine "did not match" result is chargeable, while an authentication failure, an unknown path or an upstream outage is not. One exception applies: a Validation request for a well-formed id_card_no with no matching record returns HTTP 404 NOT_FOUND and 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.
