Authentication
Vpay uses OAuth2 client credentials (via Keycloak) to issue JWT access tokens for server-to-server API calls.Obtain a token
POST /api/public/security/auth
| Field | Type | Required | Description |
|---|---|---|---|
client_id | string | Yes | Terminal client ID (OAuth2 client) |
client_secret | string | Yes | Terminal client secret |
| Field | Type | Description |
|---|---|---|
token | string | JWT access token |
expiresIn | number | Token lifetime in seconds |
401 with a ProblemDetails body.
Use the token
Include the token on every protected endpoint:- Authentication scheme:
vpay(JWT validation) - Role:
VpayTerminal
client_id used at authentication time.
Optional correlation header
You may send an operation correlation ID on any request:Token lifecycle
- Request a new token before
expiresInelapses. - Do not embed tokens in client-side code or public pages.
- Store
client_secretonly on your backend.
Related
Get auth token
Full endpoint reference for
POST /api/public/security/auth.
