Why Use Direct Savings External API?
🔹 Fast & Reliable – Optimized for speed and uptime. 🔹 Developer-Friendly – RESTful architecture with intuitive endpoints. 🔹 Secure – HMAC signature-based authentication for secure access.Authentication & Security
All endpoints require HMAC signature authentication via theAuthorization header.
The authentication uses HMAC (Hash-based Message Authentication Code) to sign requests. You must generate a signature using your secret key and include it in the Authorization header along with your public key in the format: public_key:signature.
Authentication Process
- Generate HMAC Signature: Create an HMAC signature by creating an HMAC hash of the request body (JSON stringified) using your secret key
- Format Authorization Header: Combine your public key and signature in the format:
public_key:signature - Send Request: Include the formatted value in the
Authorizationheader
Example
pub_abc123xyzis your provided public keyabc123def456ghi789...is the HMAC signature generated using your secret key
Contact your account manager to obtain your public key and secret key for generating signatures.
Error Handling
The API uses standard HTTP status codes:200 OK: Request successful400 Bad Request: Invalid request parameters or validation errors401 Unauthorized: Invalid or missing authentication credentials404 Not Found: Requested resource not found422 Unprocessable Entity: Request is well-formed but cannot be processed500 Internal Server Error: Server error
