M-Pesa (Safaricom Daraja) · OpenAPI Overlay 1.0.0

API Evangelist enhancements for M-Pesa Daraja

4 actions 4 updates update extends openapi/mpesa-openapi.yml
Derived by API Evangelist Built from the contracts M-Pesa (Safaricom Daraja) publishes. M-Pesa (Safaricom Daraja) did not publish this file.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-agentic-consequencex-human-in-the-loopx-apievangelist-enrichedx-apievangelist-artifactsx-currencyx-async-model

Targets 3

$.info
$.paths['/mpesa/b2c/v3/paymentrequest'].post
$.paths['/mpesa/reversal/v1/request'].post

OpenAPI Overlay

Raw ↑
overlay: 1.0.0
info:
  title: API Evangelist enhancements for M-Pesa Daraja
  version: 1.0.0
# Non-mutating Overlay of API Evangelist enhancements over the harvested spec.
# The original openapi/mpesa-openapi.yml is never edited; apply this overlay to derive
# the enriched view (rating tag, agentic-access ceilings, webhook + result-code cross-links).
extends: openapi/mpesa-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-enriched: true
    x-apievangelist-artifacts:
      authentication: authentication/mpesa-authentication.yml
      conventions: conventions/mpesa-conventions.yml
      sandbox: sandbox/mpesa-sandbox.yml
      errors: errors/mpesa-problem-types.yml
      result_codes: errors/mpesa-result-codes.yml
      asyncapi: asyncapi/mpesa-callbacks-asyncapi.yml
      agentic_access: agentic-access/mpesa-agentic-access.yml
- target: $.info
  update:
    x-currency: KES
    x-async-model: >-
      Funds-movement operations return only a synchronous acknowledgement; the final result is
      POSTed asynchronously to the caller-hosted ResultURL / ConfirmationURL callback (webhook).
- target: "$.paths['/mpesa/b2c/v3/paymentrequest'].post"
  update:
    x-agentic-consequence: physical
    x-human-in-the-loop: required
- target: "$.paths['/mpesa/reversal/v1/request'].post"
  update:
    x-agentic-consequence: physical
    x-human-in-the-loop: required

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/mpesa-openapi-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

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. See our Privacy Policy and Terms.

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