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.

MethodPathPurpose
GET/oauth/v1/generateExchange consumer key and secret for a bearer token (HTTP Basic).
POST/mpesa/stkpush/v1/processrequestSend an STK Push.
POST/mpesa/stkpushquery/v1/queryQuery 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.

MethodPathPurpose
GET/v1/credentialsList your credentials.
POST/v1/credentialsCreate a credential. The secret is shown once.
GET/v1/overviewCollection totals for the environment.
GET/v1/transactionsList transactions.
GET/v1/transactions/{checkoutRequestID}Transaction detail.
GET/v1/callbacks/dead-letteredList dead-lettered callbacks.
POST/v1/callbacks/{checkoutRequestID}/replayReplay a callback.
GET/v1/destinationsList destinations.
POST/v1/destinationsRegister a destination.
DELETE/v1/destinations/{id}Remove a destination.
GET/v1/banksBank directory.