M-Pesa (Safaricom Daraja) · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for M-Pesa Daraja M-Pesa Express API

3 actions 3 updates phrasing extends openapi/mpesa-m-pesa-express-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for M-Pesa (Safaricom Daraja)'s API. It is a proposal applied on top of the contract, not a document M-Pesa (Safaricom Daraja) publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 3

$.info
$.paths['/mpesa/stkpush/v1/processrequest'].post
$.paths['/mpesa/stkpushquery/v1/query'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for M-Pesa Daraja M-Pesa Express API
  version: 1.0.0
extends: openapi/mpesa-m-pesa-express-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-18'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 2
- target: $.paths['/mpesa/stkpush/v1/processrequest'].post
  update:
    x-apievangelist-phrasing:
      intent: Prompt a customer to pay by STK Push
      effect: write
      questions:
      - How do I prompt a customer's phone to pay a merchant?
      - Can I send an STK Push payment prompt for a specific amount?
      instructions:
      - text: Prompt {PhoneNumber} to pay {Amount} for {AccountReference} via STK Push.
        slots:
          PhoneNumber: requestBody.PhoneNumber
          Amount: requestBody.Amount
          AccountReference: requestBody.AccountReference
      - text: Send an STK Push to {PhoneNumber} for {Amount} from {PartyA} to {PartyB}.
        slots:
          PhoneNumber: requestBody.PhoneNumber
          Amount: requestBody.Amount
          PartyA: requestBody.PartyA
          PartyB: requestBody.PartyB
      method: generated
      generated: '2026-11-18'
- target: $.paths['/mpesa/stkpushquery/v1/query'].post
  update:
    x-apievangelist-phrasing:
      intent: Check an STK Push payment prompt
      effect: read
      questions:
      - Has the customer paid for an STK Push prompt?
      - Can I look up the status of an STK Push request?
      instructions:
      - text: Check the status of STK Push {CheckoutRequestID}.
        slots:
          CheckoutRequestID: requestBody.CheckoutRequestID
      - text: Query STK Push {CheckoutRequestID} for {BusinessShortCode}.
        slots:
          CheckoutRequestID: requestBody.CheckoutRequestID
          BusinessShortCode: requestBody.BusinessShortCode
      method: generated
      generated: '2026-11-18'

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-m-pesa-express-api-phrasing-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. 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.