The sv-api-key Header
We use a single header for all API interactions:
| Header Key | Value |
|---|---|
sv-api-key | Your concatenated API key |
Constructing your Key
Instead of a single static token, smatvirtual uses a concatenated key format. This allows you to switch between different operators or environments (Staging/Production) by simply modifying the string. The key follows this exact structure:PUBLIC_KEY . OPERATOR_SLUG
Components:
- PUBLIC_KEY: Your unique merchant identifier (e.g.,
SV.pk_live_88234) public key always starts with"SV.". - OPERATOR_SLUG: The unique identifier for your specific brand or region (e.g.,
smatvirtual-us).
Example Implementation
Include the key in the headers of your server-side requests. Never expose this key in client-side code (JavaScript/Frontend).Security Best Practices
Server-to-Server Only
Only call our API from your backend. Exposing your sv-api-key in a browser
allows anyone to initiate sessions on your behalf.
