OuiPay
API ReferenceAuthentication

Authentication

Bearer and X-Api-Key authentication for the external API.

External endpoints authenticate the same way:

Authorization: Bearer <sk_or_ak_key>

or:

X-Api-Key: <sk_or_ak_key>
Key prefixEnvironmentUse
sk_test_ / ak_test_SandboxExternal API
sk_live_ / ak_live_LiveExternal API
pk_*EitherNot accepted on /api/v1/external/*

Required headers

HeaderWhenPurpose
Authorization or X-Api-KeyEvery /external/* requestServer credential
Content-TypeRequests with a JSON bodyapplication/json

Code example

curl https://api.ouipay.africa/api/v1/external/wallets \
  -H "Authorization: Bearer sk_test_..."

Errors

HTTPerror.codeCause
401MISSING_API_KEY / INVALID_API_KEY / KEY_REVOKEDMissing, malformed, or revoked key
403PUBLIC_KEY_NOT_ALLOWED / IP_DENIEDValid credential, disallowed use

See Getting started → Authentication.