Receiving keys
Saber provides two key sets โ sandbox and production โ each with an API Key (client_id) and API Secret (client_secret). Use these to generate an authentication token (API Signature) for your requests.
Contact your Saber representative to get access to Saber dashboard. API Keys are generated from the dashboard.
Generating the authentication token
1
Generate a timestamp
2
Create the signature string
The signature string differs by request type:
- Admin Operation
- User Operation
- Web Widget / SDK
For merchant-level requests not tied to a specific user (e.g. create a user):
3
Generate the HMAC-SHA256 signature
signature can now be used to authenticate API requests.Full example
Request headers
The earlier header names
X-CLIENT-ID (client ID) and X-CLIENT-SECRET (generated signature) have been replaced:You may still find the older names referenced in some documentation. We suggest using the new headers, but both work โ theyโre backwards compatible.