Base URL

MpesaFlow API is built on REST principles and is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

The Base URL for all API endpoints is:

https://api.mpesaflow.com/v1

Authentication

Authentication to the API is performed via the Authorization header with a Bearer token. To authenticate, you need to include the Authorization header with the word Bearer followed by your token in your API requests like so:

Authorization: Bearer mf_test_1234567890

Make your first request

To make your first request, send an authenticated request to the Customer endpoint. This will list all of your customers.

curl https://api.mpesaflow.com/v1/customers \
  -H "Authorization: Bearer mf_test_1234567890"