API reference
Every endpoint at a glance.
Gateway
Daraja-compatible endpoints at the root of the host. Authenticate with a bearer token, except for the token request itself.
| Method | Path | Purpose |
|---|---|---|
| GET | /oauth/v1/generate | Exchange consumer key and secret for a bearer token (HTTP Basic). |
| POST | /mpesa/stkpush/v1/processrequest | Send an STK Push. |
| POST | /mpesa/stkpushquery/v1/query | Query an STK Push by CheckoutRequestID. |
Dashboard
Endpoints under /v1 for the dashboard, authenticated with a dashboard login token. Environment-scoped reads require ?environment=sandbox or ?environment=live.
| Method | Path | Purpose |
|---|---|---|
| GET | /v1/credentials | List your credentials. |
| POST | /v1/credentials | Create a credential. The secret is shown once. |
| GET | /v1/overview | Collection totals for the environment. |
| GET | /v1/transactions | List transactions. |
| GET | /v1/transactions/{checkoutRequestID} | Transaction detail. |
| GET | /v1/callbacks/dead-lettered | List dead-lettered callbacks. |
| POST | /v1/callbacks/{checkoutRequestID}/replay | Replay a callback. |
| GET | /v1/destinations | List destinations. |
| POST | /v1/destinations | Register a destination. |
| DELETE | /v1/destinations/{id} | Remove a destination. |
| GET | /v1/banks | Bank directory. |