Getting Started
Authentication
Authenticate external API requests with secret or API keys.
External requests authenticate with a secret or API key against
/api/v1/external/*. The key belongs to an app owned by your customer account.
curl https://api.ouipay.africa/api/v1/external/wallets \
-H "Authorization: Bearer sk_test_..."You may also send X-Api-Key: sk_test_... (or ak_test_... / live prefixes).
Key types
| Prefix | Environment | Permissions |
|---|---|---|
sk_test_ / ak_test_ | Sandbox | External API |
sk_live_ / ak_live_ | Live | External API |
pk_* | Either | Publishable only — rejected on /external/* |
Rotating keys
Dashboard → Developer → select app → regenerate Secret, API, or Public key. The previous active key of that type is revoked when the new one is minted.
Key leaked?
Rotate immediately from the dashboard.
IP allowlisting
Optionally restrict secret and API keys to source IPs. Requests from other
addresses return 403 with error.code = "IP_DENIED".
Errors
| HTTP | error.code | Cause |
|---|---|---|
| 401 | MISSING_API_KEY / INVALID_API_KEY / KEY_REVOKED | Missing, malformed, or revoked key |
| 403 | PUBLIC_KEY_NOT_ALLOWED | pk_* used on a server route |
| 403 | IP_DENIED | Source IP not on the key allowlist |
| 403 | FEATURE_DISABLED | Developer feature is off |
| 403 | OWNER_ACCOUNT_REQUIRED | App has no active owning customer |