M-Pesa (Safaricom Daraja)

M-Pesa is Safaricom's mobile-money platform for Kenya, exposed to developers through the Daraja API. The Daraja REST APIs let businesses collect payments (M-Pesa Express / STK Push, C2B), disburse funds (B2C, B2B), query transactions and balances, reverse payments, generate dynamic QR codes, and run standing orders — authorized with OAuth bearer tokens minted from Basic credentials, priced in Kenyan Shillings (KES).

M-Pesa (Safaricom Daraja) publishes 1 API contract, indexed on the APIs.io network as 11 APIs, including Account Balance API, Authorization API, B2C API, and 8 more. Tagged areas include Mobile Money, Payments, Fintech, Kenya, and Africa.

The M-Pesa (Safaricom Daraja) catalog on APIs.io includes 1 event-driven AsyncAPI specification and 1 Spectral governance ruleset.

M-Pesa (Safaricom Daraja)’s developer surface includes authentication, documentation, sandbox, API reference, getting-started guide, support, signup flow, and 33 more developer resources.

Pull M-Pesa (Safaricom Daraja)'s APIs, OpenAPI, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
48.1/100 developing ▬ flat Agent 31/100 agent ready Front door AI 1/6 silent Heartbeat 0/100 dormant saas Full breakdown ↓
scored 2026-11-28 · rubric v0.30.0 · Show this score on your site →
M-Pesa (Safaricom Daraja) website screenshot
AccessFreemiumSelf serve⚡ Free to try
1 published contract 4 Agent Skills
Mobile MoneyPaymentsFintechKenyaAfricaM-PESA

What this lets a business do 3

Business capabilities this provider's published APIs can perform, derived from its own contracts. Browse all capabilities →

Payments & Card Management
BC-1340
B2BB2CDynamic QRM-Pesa ExpressReversalStanding Order
POST /mpesa/stkpush/v1/processrequest POST /mpesa/stkpushquery/v1/query POST /mpesa/b2c/v3/paymentrequest POST /mpesa/b2b/v1/paymentrequest
Tax Management
BC-220
Tax Remittance
POST /mpesa/b2b/v1/remittax
Consumer Commerce
AE-140
M-Pesa Express
POST /mpesa/stkpush/v1/processrequest

What people ask M-Pesa (Safaricom Daraja) 11

The questions people put to an LLM, and the jobs they hand an agent, that M-Pesa (Safaricom Daraja)'s APIs answer — each one linked to the operation that does it. Generated by API Evangelist

M-Pesa (Safaricom Daraja) M-Pesa Express API Prompt a customer to pay by STK Push “How do I prompt a customer's phone to pay a merchant?” Check an STK Push payment prompt “Has the customer paid for an STK Push prompt?”
M-Pesa (Safaricom Daraja) C2B API Register C2B callback URLs “How do I tell M-Pesa where to send my C2B payment confirmations?” Simulate an inbound C2B payment “Can I test a C2B payment in the sandbox?”
M-Pesa (Safaricom Daraja) B2B API Pay a business short code from another short code “How do I pay a business short code from my own short code?” Push a B2B Express Checkout USSD prompt to a till “How do I prompt a till operator to pay a business short code?”
M-Pesa (Safaricom Daraja) Tax Remittance API Remit taxes to the Kenya Revenue Authority “How do I pay my company's taxes to KRA through M-Pesa?”
M-Pesa (Safaricom Daraja) Reversal API Reverse a failed M-Pesa transaction “Can I reverse a transaction that was charged to the wrong account?”
M-Pesa (Safaricom Daraja) B2C API Pay a customer from a business shortcode “How do I pay a customer from my business shortcode?”
M-Pesa (Safaricom Daraja) Dynamic QR API Generate a dynamic M-Pesa QR code “How do I generate a QR code for a customer to pay a specific amount?”
M-Pesa (Safaricom Daraja) Authorization API Get an OAuth access token “How do I get a short-lived access token to call the M-Pesa Daraja API?”
M-Pesa (Safaricom Daraja) Account Balance API Check a business shortcode's balance “How much money is in my M-Pesa business shortcode?”
M-Pesa (Safaricom Daraja) Transaction Status API Check the status of an M-Pesa transaction “Has my M-Pesa transaction been completed yet?”
M-Pesa (Safaricom Daraja) Standing Order API Create an external standing order “How do I set up a recurring payment from a customer's M-Pesa account?”

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-11-28 · rubric v0.30.0
Regulatory Posture applies to this provider. Its tags matched the Payments regime, so Regulatory Posture carries 15 points of the composite. If this regime is wrong for your business, say so on your provider repo — the applicability map is public and we will correct it.
Create-or-Update Ergonomics applies to this provider. This API accepts writes, so it carries 10 points of the composite. It is scored from the published contracts themselves: whether a caller can create-or-update in one call, whether the write accepts a key the caller already holds, and whether the response says which branch ran. Without that, every write needs a search-and-branch in front of it, and the first time that check is skipped a duplicate record is created. Scored against the observed mean rather than raw — a provider at the catalog average is unchanged by this facet, not penalised by it.
The six quality facets above are damped to 75 points between them, because the conditional facet above carries the other 25. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 75% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Show this score on your site. Kin Score badge preview for M-Pesa (Safaricom Daraja) It updates itself when the score changes. Paste this where you link to your API docs:
<a href="https://apis.io/providers/mpesa/"><img src="https://apis.io/badge/mpesa/card.svg" alt="M-Pesa (Safaricom Daraja) on APIs.io — Kin Score by API Evangelist"></a>
Other styles, a README pill and a shields.io endpoint are on the badge page.
Raise your score.
Agent readiness — checks not met, largest first (exact, from this profile):
4 more unmet checks in the Agent Readiness table above.
Kin Score — facets with the most composite points still available (weight × headroom):
Each check links to what satisfies it. Publish the artifact, or tell us where it already lives, and the score moves on the next scoring run.
Not sure how this applies to your stack? Ask about any one item. Kin Lane reads every question, looks at your profile and your situation, and replies with what a fix would take — scoped to that one area, priced up front, yours whether you ship it or not. Ask a question →
Ask about:
Mpesa · a person reads this and replies by email.
or email info@apis.io
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from the provider profile at artifacts.apis.io/mpesa/apis.yml: open an issue on github.com/api-evangelist/mpesa to ask a question or point us at an artifact you publish. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

Markets this provider is in provisional

The Kin Score Market layer reads a provider inside its market: its position, and how deep its integrations go. Depth is only comparable within a position. Provisional and unweighted: not part of the Kin Score or agent readiness.

Depth is one figure for the provider, the mean of its strongest integrations, so it repeats on every row. It differs by market only where an assurance register's own evidence applies.

MarketPositionDepth (provider-wide)Registered MCP serverDeclares compatibility
African Payments (Nigeria, Kenya, South Africa, Ghana, WAEMU) regulated 19.2 (thin) - -

Registered MCP server and declares compatibility are report only — not weighted. Undeclared means we found nothing we can read, so there is no number: we never infer integrations.

Used by apps

3 of the reference apps in Applications, across 2 categories, integrate with this provider, read from each app's own code, build or integrations page.

Standards implemented 1

Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.

measured — observed by APIs.io (published)

APIs 11

Individual APIs this provider publishes, each with its own machine-readable definition.

M-Pesa (Safaricom Daraja) Account Balance API

The Account Balance API from M-Pesa (Safaricom Daraja) — 1 operation(s) for account balance.

M-Pesa (Safaricom Daraja) Authorization API

The Authorization API from M-Pesa (Safaricom Daraja) — 1 operation(s) for authorization.

M-Pesa (Safaricom Daraja) B2C API

The B2C API from M-Pesa (Safaricom Daraja) — 1 operation(s) for b2c.

M-Pesa (Safaricom Daraja) C2B API

The C2B API from M-Pesa (Safaricom Daraja) — 2 operation(s) for c2b.

M-Pesa (Safaricom Daraja) Dynamic QR API

The Dynamic QR API from M-Pesa (Safaricom Daraja) — 1 operation(s) for dynamic qr.

M-Pesa (Safaricom Daraja) M-Pesa Express API

The M-Pesa Express API from M-Pesa (Safaricom Daraja) — 2 operation(s) for m-pesa express.

M-Pesa (Safaricom Daraja) Reversal API

The Reversal API from M-Pesa (Safaricom Daraja) — 1 operation(s) for reversal.

M-Pesa (Safaricom Daraja) Standing Order API

The Standing Order API from M-Pesa (Safaricom Daraja) — 1 operation(s) for standing order.

M-Pesa (Safaricom Daraja) Tax Remittance API

The Tax Remittance API from M-Pesa (Safaricom Daraja) — 1 operation(s) for tax remittance.

M-Pesa (Safaricom Daraja) Transaction Status API

The Transaction Status API from M-Pesa (Safaricom Daraja) — 1 operation(s) for transaction status.

M-Pesa (Safaricom Daraja) B2B API

The B2B API from M-Pesa (Safaricom Daraja) — 2 operation(s) for b2b.

Scroll for all 11

Postman Collections 11

Ready-to-run Postman collections for exercising this provider's APIs.

Scroll for all 11

Open Collections 11

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

Scroll for all 11

Agent Skills 4

Packaged agent skills for driving this provider's APIs from an AI assistant.

M-Pesa (Safaricom Daraja) API pricing

Not yet checked against M-Pesa (Safaricom Daraja)'s own pricing page. Compiled by API Evangelist on 2026-07-17 from developer.safaricom.co.ke/; confirm before you rely on a figure. A free plan or tier is listed.

PlanPrice
Sandbox free —
Production (Live Shortcode) usage —
Enterprise / Aggregator enterprise —

Plan details, limits and sources →

Rate limits

Compiled by API Evangelist, not yet checked against M-Pesa (Safaricom Daraja)'s documentation. Rate-limit details →

Buying and running it

  • Billing and usage API: read your own cost through the API (POST /mpesa/accountbalance/v1/query).

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Privacy & Data 1

Its role, the data it processes, retention and transfers, quoted from its own privacy page.

M-Pesa (Safaricom Daraja)

27 quoted statements, read from M-Pesa (Safaricom Daraja)'s own page on 2026-11-10.

PRIVACY

Eligibility 1

Who may sign up and where, quoted from its own terms.

M-Pesa (Safaricom Daraja)

2 quoted statements, read from M-Pesa (Safaricom Daraja)'s own page on 2026-11-10.

ELIGIBILITY

FinOps 1

Cost, billing, and metering signals for API financial operations.

Event Specifications 1

AsyncAPI definitions for this provider's event-driven and streaming APIs.

M-Pesa Daraja Callbacks

The asynchronous callback (webhook) surface of the M-Pesa Daraja API. Daraja delivers the real outcome of collections and funds-movement operations by POSTing JSON to caller-hos...

ASYNCAPI

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs. Counts are the severity each rule declares, not results of running them.

M-Pesa (Safaricom Daraja) API Rules

59 rules · 57 error-severity 1 warn-severity 1 info-severity

SPECTRAL

OpenAPI Overlays 12

Overlays applied on top of this provider's contracts. Each card says who wrote it: a document the provider publishes, or one API Evangelist derived or generated.

M-Pesa (Safaricom Daraja) Account Balance Api Phrasing Overlay

2 actions · phrasing · mpesa-account-balance-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Authorization Api Phrasing Overlay

2 actions · phrasing · mpesa-authorization-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) B2 B Api Phrasing Overlay

3 actions · phrasing · mpesa-b2-b-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) B2C Api Phrasing Overlay

2 actions · phrasing · mpesa-b2c-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) C2B Api Phrasing Overlay

3 actions · phrasing · mpesa-c2b-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Dynamic Qr Api Phrasing Overlay

2 actions · phrasing · mpesa-dynamic-qr-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) M Pesa Express Api Phrasing Overlay

3 actions · phrasing · mpesa-m-pesa-express-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Openapi Overlay

4 actions · update · mpesa-openapi.yml

DERIVED

M-Pesa (Safaricom Daraja) Reversal Api Phrasing Overlay

2 actions · phrasing · mpesa-reversal-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Standing Order Api Phrasing Overlay

2 actions · phrasing · mpesa-standing-order-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Tax Remittance Api Phrasing Overlay

2 actions · phrasing · mpesa-tax-remittance-api-openapi.yml

GENERATED

M-Pesa (Safaricom Daraja) Transaction Status Api Phrasing Overlay

2 actions · phrasing · mpesa-transaction-status-api-openapi.yml

GENERATED

Scroll for all 12

Security Posture 4

Authentication, domain security, vulnerability disclosure, and trust-center signals.

M-Pesa (Safaricom Daraja) Authentication

http · 3 schemes

SECURITY

M-Pesa (Safaricom Daraja) Vulnerability Disclosure

Hackerone · contact published

SECURITY

M-Pesa (Safaricom Daraja) Trust Center

PCI DSS v4, ISO/IEC 27001, ISO/IEC 27701, GDPR-aligned / Kenya Data Protection Act 2019

SECURITY

Agentic Access (API Evangelist recommendations) 1

Recommended x-agentic-access execution contracts for AI agents.

M-Pesa (Safaricom Daraja) Agentic Access

14 operations · 10 acting

14 operations · 10 acting

AGENTIC

Resources

Get Started 4

Portal, sign-up, and the first successful call

Documentation 3

Reference material describing how the API behaves

Agent Surfaces 4

MCP servers, agent skills, and machine-readable catalogs

Design & Contract 7

Pagination, idempotency, versioning, errors, and events

Scroll for all 7

Build 5

SDKs, sample code, and the tooling you integrate with

Access & Security 6

Authentication, authorization, and security posture

Operate 2

Status, limits, changes, and where to get help

Commercial 4

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Other 4

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: mpesa
url: https://raw.githubusercontent.com/api-evangelist/mpesa/refs/heads/main/apis.yml
name: M-Pesa (Safaricom Daraja)
kind: company
description: M-Pesa is Safaricom's mobile-money platform for Kenya, exposed to developers through the Daraja API. The Daraja
  REST APIs let businesses collect payments (M-Pesa Express / STK Push, C2B), disburse funds (B2C, B2B), query transactions
  and balances, reverse payments, generate dynamic QR codes, and run standing orders — authorized with OAuth bearer tokens
  minted from Basic credentials, priced in Kenyan Shillings (KES).
deliveryModel:
  model: saas
  open_source: false
  commercial: true
  callable_host: true
  label: Hosted service · you call their endpoint
  confidence: high
  source:
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  gated: none
  gated_source:
  - onboarding
  label: Freemium · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  - security
  - sandbox
  generated: '2026-11-28'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/mpesa.png
tags:
- Mobile Money
- Payments
- Fintech
- Kenya
- Africa
- M-PESA
tags_raw:
- Mobile Money
- Payments
- Fintech
- Kenya
- Africa
- M-Pesa
created: '2026-07-17'
modified: '2026-07-17'
specificationVersion: '0.23'
apis:
- aid: mpesa:mpesa-account-balance-api
  name: M-Pesa (Safaricom Daraja) Account Balance API
  description: The Account Balance API from M-Pesa (Safaricom Daraja) — 1 operation(s) for account balance.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Account Balance
  properties:
  - type: OpenAPI
    url: openapi/mpesa-account-balance-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-authorization-api
  name: M-Pesa (Safaricom Daraja) Authorization API
  description: The Authorization API from M-Pesa (Safaricom Daraja) — 1 operation(s) for authorization.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Authorization
  properties:
  - type: OpenAPI
    url: openapi/mpesa-authorization-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-b2c-api
  name: M-Pesa (Safaricom Daraja) B2C API
  description: The B2C API from M-Pesa (Safaricom Daraja) — 1 operation(s) for b2c.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Consumer
  tags_raw:
  - B2C
  properties:
  - type: OpenAPI
    url: openapi/mpesa-b2c-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-c2b-api
  name: M-Pesa (Safaricom Daraja) C2B API
  description: The C2B API from M-Pesa (Safaricom Daraja) — 2 operation(s) for c2b.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - C2B
  properties:
  - type: OpenAPI
    url: openapi/mpesa-c2b-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-dynamic-qr-api
  name: M-Pesa (Safaricom Daraja) Dynamic QR API
  description: The Dynamic QR API from M-Pesa (Safaricom Daraja) — 1 operation(s) for dynamic qr.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Dynamic QR
  properties:
  - type: OpenAPI
    url: openapi/mpesa-dynamic-qr-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-m-pesa-express-api
  name: M-Pesa (Safaricom Daraja) M-Pesa Express API
  description: The M-Pesa Express API from M-Pesa (Safaricom Daraja) — 2 operation(s) for m-pesa express.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - M-Pesa Express
  properties:
  - type: OpenAPI
    url: openapi/mpesa-m-pesa-express-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-reversal-api
  name: M-Pesa (Safaricom Daraja) Reversal API
  description: The Reversal API from M-Pesa (Safaricom Daraja) — 1 operation(s) for reversal.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Reversal
  properties:
  - type: OpenAPI
    url: openapi/mpesa-reversal-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-standing-order-api
  name: M-Pesa (Safaricom Daraja) Standing Order API
  description: The Standing Order API from M-Pesa (Safaricom Daraja) — 1 operation(s) for standing order.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Standing Order
  properties:
  - type: OpenAPI
    url: openapi/mpesa-standing-order-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-tax-remittance-api
  name: M-Pesa (Safaricom Daraja) Tax Remittance API
  description: The Tax Remittance API from M-Pesa (Safaricom Daraja) — 1 operation(s) for tax remittance.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Tax Remittance
  properties:
  - type: OpenAPI
    url: openapi/mpesa-tax-remittance-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-transaction-status-api
  name: M-Pesa (Safaricom Daraja) Transaction Status API
  description: The Transaction Status API from M-Pesa (Safaricom Daraja) — 1 operation(s) for transaction status.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - Transaction Status
  properties:
  - type: OpenAPI
    url: openapi/mpesa-transaction-status-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
- aid: mpesa:mpesa-b2-b-api
  name: M-Pesa (Safaricom Daraja) B2B API
  description: The B2B API from M-Pesa (Safaricom Daraja) — 2 operation(s) for b2b.
  humanURL: https://developer.safaricom.co.ke/APIs/Authorization
  baseURL: https://api.safaricom.co.ke
  tags:
  - B2B
  properties:
  - type: OpenAPI
    url: openapi/mpesa-b2-b-api-openapi.yml
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Authorization
  - type: PostmanCollection
    url: collections/mpesa.postman_collection.json
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaExpressSimulate
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/CustomerToBusinessRegisterURL
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessToCustomer
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BusinessPayBill
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/B2BExpressCheckout
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TransactionStatus
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/AccountBalance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/Reversal
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/DynamicQRCode
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/TaxRemittance
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/BillManager
  - type: Documentation
    url: https://developer.safaricom.co.ke/APIs/MpesaRatiba
common:
- type: CapabilityMap
  url: capabilities/mpesa-capability-edges.yml
  name: M-Pesa (Safaricom Daraja) Business Capability Map
- type: PostmanWorkspace
  url: https://www.postman.com/kinlaneapi/m-pesa-safaricom-daraja/overview
- type: AgenticAccess
  url: agentic-access/mpesa-agentic-access.yml
- type: TrustCenter
  url: security/mpesa-trust-center.yml
- type: VulnerabilityDisclosure
  url: security/mpesa-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/mpesa-domain-security.yml
- type: Authentication
  url: authentication/mpesa-authentication.yml
- type: GitHubOrganization
  url: https://github.com/safaricom
- type: Website
  url: https://developer.safaricom.co.ke/
- type: Documentation
  url: https://developer.safaricom.co.ke/APIs
- type: Plans
  url: plans/mpesa-plans-pricing.yml
- type: RateLimits
  url: rate-limits/mpesa-rate-limits.yml
- type: FinOps
  url: finops/mpesa-finops.yml
- type: Security
  url: security/mpesa-vulnerability-disclosure.yml
- type: Compliance
  url: security/mpesa-trust-center.yml
- type: Conformance
  url: conformance/mpesa-conformance.yml
- type: Packages
  url: packages/mpesa-packages.yml
- type: X-MCPServerCandidate
  url: mcp/mpesa-mcp.yml
  note: 'Renamed from MCPServer 2026-09-03 (roadmap#247): the manifest self-describes as status: candidate — a tool list derived
    from the published API contracts, not an existing server. The scorer already read the manifest and reported mcp_server
    correctly; the MCPServer type was crediting the artifact-type surfaces with a server that does not exist.'
- type: LLMsTxt
  url: llms/mpesa-llms.txt
- type: Overlay
  url: overlays/mpesa-openapi-overlay.yaml
- type: ErrorCatalog
  url: errors/mpesa-problem-types.yml
- type: DeclineCodes
  url: errors/mpesa-result-codes.yml
- type: Lifecycle
  url: lifecycle/mpesa-lifecycle.yml
- type: Conventions
  url: conventions/mpesa-conventions.yml
- type: Idempotency
  url: conventions/mpesa-conventions.yml
- type: Sandbox
  url: sandbox/mpesa-sandbox.yml
- type: DataModel
  url: data-model/mpesa-data-model.yml
- type: AsyncAPI
  url: asyncapi/mpesa-callbacks-asyncapi.yml
- type: Webhooks
  url: asyncapi/mpesa-callbacks-asyncapi.yml
- type: AgentSkill
  url: skills/_index.yml
- type: DeveloperPortal
  url: https://developer.safaricom.co.ke/
- type: APIReference
  url: https://developer.safaricom.co.ke/APIs
- type: GettingStarted
  url: https://developer.safaricom.co.ke/
- type: Support
  url: https://developer.safaricom.co.ke/faqs
- type: SignUp
  url: https://developer.safaricom.co.ke/
- type: TermsOfService
  url: https://developer.safaricom.co.ke/
- type: PrivacyPolicy
  url: https://www.safaricom.co.ke/data-privacy-statements
- type: Postman
  url: collections/mpesa.postman_collection.json
- type: DataProcessing
  url: privacy/mpesa-privacy-policy.yml
- type: Eligibility
  url: eligibility/mpesa-eligibility.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com

M-Pesa (Safaricom Daraja) API — frequently asked questions

Does M-Pesa (Safaricom Daraja) have an API?

Yes. APIs.io lists 11 APIs from M-Pesa (Safaricom Daraja), including M-Pesa (Safaricom Daraja) Account Balance API, M-Pesa (Safaricom Daraja) Authorization API and M-Pesa (Safaricom Daraja) B2C API, and 8 more.

Is there an OpenAPI specification for the M-Pesa (Safaricom Daraja) API?

Yes. APIs.io indexes 11 OpenAPI specifications for M-Pesa (Safaricom Daraja), each linked for download from this page.

How do I authenticate with the M-Pesa (Safaricom Daraja) API?

M-Pesa (Safaricom Daraja) uses bearer-token authentication (http · 3 schemes). The details are profiled on APIs.io as M-Pesa (Safaricom Daraja) Authentication.

How much does the M-Pesa (Safaricom Daraja) API cost?

APIs.io lists 3 pricing plans for M-Pesa (Safaricom Daraja), with each plan's price, limits and inclusions under Pricing on this page.

Is the M-Pesa (Safaricom Daraja) API ready for AI agents?

M-Pesa (Safaricom Daraja) has a Kin Score of 48.1 out of 100 (developing) and an Agent Readiness score of 31.1 (agent-ready), scored by API Evangelist on 2026-11-28.

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/mpesa"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/mpesa/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/mpesa/evidence"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.