Authentication

Every API endpoint that starts with /volven-broker/api/ requires API key authentication. Every API endpoint that starts with /volven-broker/public/ doesn't require any authentication.

API Key Authentication

Every request requires following authentication related HTTP headers:

  • X-API-Key

  • X-API-Timestamp

  • X-API-Signature

Some requests require following business related HTTP headers:

  • X-API-User-ID

triangle-exclamation

X-API-User-ID

Some endpoints require X-API-User-ID header to identify the user for whom the action is executed. It can be any user that has been registered via your partner account (if you want to perform the action in the name of one of your users) or can be your partner account (if you want to perform the action as yourself). Check OpenAPI documentation for details.

circle-exclamation

X-API-Key

X-API-Key is simply your API Key (example: 0408ad13-cd74-4e99-8fe5-9fd2badd42ec).

circle-exclamation

X-API-Timestamp

X-API-Timestamp must be actual timestamp in Unix epoch format with millisecond precision (example: 1760721374734). When the server receives the message it verifies if current time is same as X-API-Timestamp value with 5000 ms tolerance.

circle-exclamation

X-API-Signature

X-API-Signature is calculated in following way:

  1. Prepare canonical request: timestamp + method + path (with query string, if any) + user ID (if any) + body

  2. Sign canonical request with you API Secret using HMAC SHA256 algorithm

  3. Encode the signature in Base64 format.

Example:

Assume you request looks like this:

Canonical request would look like this:

Final signature would look like this:

circle-exclamation

Final request

Finally, correctly authenticated request will look like this:

This ensures that the server can verify the authenticity of the request by comparing the received signature with its own calculation. By using these elements — X-API-Key, X-API-Timestamp, and X-API-Signature — your API requests will be secure from replay attacks while maintaining data integrity.

Last updated

Was this helpful?