API Credentials
Obtain and manage secret, API, and public keys for sandbox and production apps.
A developer is a OuiPay customer who opts into Developer access on the same dashboard account. Apps you create are owned by that account; API usage runs as that customer (wallet, KYC, limits).
Access
| Layer | Control |
|---|---|
| Opt-in | Dashboard → Developer |
| Production apps | Owner KYC level ≥ 2 |
Credentials
Each Developer application has three always-retrievable credentials:
| Key type | Prefix | Use |
|---|---|---|
| Secret key | sk_test_ / sk_live_ | Server-to-server REST (/api/v1/external/*) |
| API key | ak_test_ / ak_live_ | Server-to-server REST (/api/v1/external/*) |
| Public key | pk_test_ / pk_live_ | Client / publishable surfaces only |
Keys are shown whenever you open Developer Settings. Rotate a type when you need a new value; the previous active key of that type is revoked immediately.
Authenticate external calls with Authorization: Bearer sk_… or
X-Api-Key: sk_… (same for ak_). Public keys are rejected on server routes
(PUBLIC_KEY_NOT_ALLOWED).
curl https://api.ouipay.africa/api/v1/external/wallets \
-H "Authorization: Bearer sk_test_..."External API
Base path: /api/v1/external/*
| Method | Path |
|---|---|
GET | /external/wallets |
GET | /external/transactions |
GET | /external/transactions/{id} |
API request logs
Every authenticated call to /api/v1/external/* is written to
Developer → API request logs: method, path, HTTP status, error code, IP,
duration. Bodies and secrets are never stored.
IP allowlist
Restrict Secret and API keys to your static egress IPs (literals or CIDR). An empty allowlist means any IP may present the key. Public keys ignore IP allowlists.
Webhook callbacks
Register an HTTPS callback URL on the app to receive signed event POSTs. The
webhook signing secret is always visible on the subscription and is separate
from your API credentials. Verify X-OuiPay-Signature over {timestamp}.{body}.
Obtaining your keys
- Log into the OuiPay customer Dashboard.
- Open Developer and enable Developer access if prompted.
- Create a sandbox app (production requires completed KYC).
- Copy Secret / Public / API keys. Configure IP allowlist and webhook URL as needed.
Security guidelines
- Keep secret and API keys on servers only — never ship them in browsers or mobile apps.
- Prefer IP allowlisting for production.
- Rotate compromised keys immediately from Developer Settings.
- Sandbox keys and sandbox apps are isolated from live event fan-out.