Authentication
Every request to the API must be authenticated using an API key.
The same authentication model applies whether you interact with the REST API directly or use one of the official SDKs.
Creating and managing API keys
API keys are managed from your dashboard. Visit Profile › API Access to create, rename, pause, re-enable, or revoke API keys.
Changes take effect immediately.
You may have multiple active keys at the same time.
See Security for guidance on key storage, rotation, and exposure risks.
How authentication works
The API accepts authentication via an HTTP header, a JSON field in the request body, or a query parameter.
All documentation examples use the recommended method: HTTP header + POST + JSON body. This is the safest and most predictable approach in production environments.
Recommended method: HTTP header
curl "https://api.verifyvat.com/v1/verify" \ -H "x-api-key: {YOUR_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "type": "no_orgnr", "id": "914778271" }'This method avoids accidental key exposure through logs, URLs, or intermediaries.
Using authentication with the SDKs
The official SDKs use the same API key mechanism as the REST API.
By default, SDK clients automatically read configuration from environment variables and work out of the box when these are present.
VERIFYVAT_API_KEY={YOUR_API_KEY}# Optional override for custom deployments# VERIFYVAT_BASE_URL=https://api.verifyvat.comSDK client configuration
You can also provide credentials explicitly when creating a client.
import { createVerifyVatClient } from '@verifyvat/sdk'
const client = createVerifyVatClient({ apiKey: '{YOUR_API_KEY}',})from verifyvat_sdk import VerifyVatClient
client = VerifyVatClient(api_key="{YOUR_API_KEY}")See SDK overview for installation, configuration, and runtime behaviour.
Alternative authentication methods
Alternative mechanisms are supported for compatibility, but are not recommended for general use.
### JSON body:POST https://api.verifyvat.com/v1/verifyContent-Type: application/json{ "api-key": "{YOUR_API_KEY}"}
### Query parameter:GET https://api.verifyvat.com/v1/verify?api-key={YOUR_API_KEY}These methods behave identically at the API level, but increase the risk of accidental key exposure.