Environments
PayHero Africa is served from two hosts. Payments go to the API host; Teams — accounts, members, invites and team KYC — go to the auth host.
| Host | Base URL | Used for |
|---|---|---|
| API | https://api.payhero.africa |
Payments, discovery, beneficiaries, balances |
| Auth | https://auth.payhero.africa |
Teams & Multi-Tenancy |
The examples in these docs use two environment variables:
export PH_BASE_URL="https://api.payhero.africa"export PH_AUTH_URL="https://auth.payhero.africa"Both hosts accept the same API key.
Path structure
Section titled “Path structure”| Area | Host | Path prefix |
|---|---|---|
| Unified payments | API | /api/global/payments |
| Discovery | API | /api/global/discovery/... |
| Beneficiaries | API | /api/global/beneficiaries |
| Transaction status | API | /api/global/transaction-status |
| Account balance | API | /api/global/accounts |
| Kenya (V1) | API | /api/v2/payments, /api/v2/withdraw |
| Teams | Auth | /api/v2/accounts, /api/v2/account_invites, /api/v2/account_kycs |
API versions
Section titled “API versions”- Global (
/api/global/...) — the current, recommended API. One endpoint for pay-in and pay-out across all supported countries. - V1 (
/api/v2/payments,/api/v2/withdraw) — the Kenya wallet endpoints, kept for backward compatibility. Prefer the global endpoint for new integrations.

