API Secret
VTPE includes your API Secret in anAuthorization header on every request it sends to your API and on every webhook. Use the same header when calling VTPE APIs from your system.
Timestamp
All requests between VTPE and your API include anX-Timestamp header with a Unix timestamp. This timestamp is used as part of the HMAC signature calculation for webhooks and helps prevent replay attacks on standard API requests.
HMAC Signature
VTPE signs every webhook request with an HMAC-SHA256 signature and includes it in theX-Signature header. The signature is computed by concatenating the raw request body with the timestamp string, then hashing with your HMAC Secret.
Verifying Incoming Requests from VTPE
When you receive any request from VTPE, perform the following checks in order:- Check that the
Authorizationheader matches your API Secret exactly - Check that the
X-Timestampvalue is within an acceptable time window. We recommend rejecting timestamps older than 5 minutes or more than 5 minutes in the future - For webhook POST requests, verify the
X-Signatureheader matches the HMAC signature you compute locally
