API Key
Generated from Settings → API Security in the UnPay Dashboard.API Security & Encryption
In addition to API Key authentication, all Payout and Service endpoints require end-to-end payload encryption. This protects sensitive financial data in transit. To make an API call, you must:- Serialize your request payload to a JSON string.
- Encrypt it using AES-256-CBC with your dashboard-issued AES Key and AES IV.
- Encode the output as a HEX string.
- Pass the HEX string in the
bodyfield.
AES Key & IV
Both keys are generated from the UnPay Dashboard under Settings → API Security:- AES Key — Secret encryption key
- AES IV — Initialization vector
AES-256-CBC Encryption Guide
Learn how to encrypt payloads with step-by-step code examples in Node.js, Python, and PHP.