Overview
This section covers direct integration with the Verifymy RESTful API endpoints.
Use this approach when you need maximum flexibility or are working with a programming language not supported by our SDKs.
⚠️ IMPORTANT
If you are an active customer, please ensure you are using the most recent version of the API. If you need access to v2 of our API for your current integration, you can find the docs here.
Environments
| Environment | Base URL | Purpose |
|---|---|---|
Sandbox |
|
Testing and development |
Production |
|
Live data and real-world use |
⚠️ CAUTION
Each environment requires separate API keys. Do not use the same keys for both environments.
Authentication
All API requests must be authenticated using HMAC Authentication.
The HMAC header is required for requests with payloads to ensure data integrity.
Authorization: hmac {api_key}:{hmac_signature}
The signature is calculated over different content depending on whether the request carries a body.
POST – For requests with a body, sign the request body:
hmac_signature = HMAC-SHA256(request_body, api_secret)
GET – For requests without a body, sign the request URI:
hmac_signature = HMAC-SHA256(request_uri, api_secret)
The header format is identical for both cases. The HMAC prefix is always required.
API Call Examples
PHP
$api_key = 'YOUR_API_KEY';
$api_secret = 'YOUR_API_SECRET';
$request_body = json_encode($payload);
$hmac_signature = hash_hmac('sha256', $request_body, $api_secret);
$hmac_header_value = 'hmac ' . $api_key . ':' . $hmac_signature;
// Add to your request headers
$headers = [
'Authorization' => $hmac_header_value,
'Content-Type' => 'application/json'
];