Getting Started
API Credentials
Obtain and manage your API keys for sandbox and production environments.
To make API requests to OuiPay, you need an API key pair. Each key pair consists of a public publishable key (for client-side SDKs or web widgets) and a secret key (for server-side REST API calls).
Key types
| Key Type | Prefix | Environment | Location |
|---|---|---|---|
| Sandbox Secret Key | sk_test_ | Sandbox | Server-side only |
| Sandbox Public Key | pk_test_ | Sandbox | Client-side & web |
| Live Secret Key | sk_live_ | Live | Server-side only |
| Live Public Key | pk_live_ | Live | Client-side & web |
Obtaining your keys
- Log into your OuiPay Dashboard.
- Navigate to Developer Settings > API Keys.
- Copy your Sandbox Secret Key (
sk_test_...) for integration testing.
Security guidelines
- Keep secret keys private: Never commit secret keys to public repositories or include them in client-side code (web browsers, mobile apps).
- Rotate compromised keys immediately: If a secret key is exposed, revoke it from the Dashboard and generate a replacement key pair.
- Environment isolation: Sandbox keys cannot perform real transactions or access live balances. Live keys cannot be used against sandbox URLs.