Build with AI

Connect your coding assistant to the TransFi API and docs.

Three ways to give an AI assistant accurate knowledge of the TransFi API.

1. Connect the MCP server

The TransFi MCP server lets Claude Code, Cursor, VS Code and other agents list endpoints, read every schema, and call the sandbox API with your credentials.

{
  "mcpServers": {
    "transfi": {
      "url": "https://docs.transfi.com/mcp",
      "headers": {
        "Authorization": "Basic YOUR_BASE64_CREDENTIALS",
        "MID": "YOUR_MID"
      }
    }
  }
}

Use sandbox credentials. The headers are sent only when the agent calls the API for you.

2. Point the assistant at the docs

WhatWhere
An index of every page, one line eachdocs.transfi.com/llms.txt
Any page as plain MarkdownAdd .md to its URL, for example https://docs.transfi.com/reference/create-order.md

3. Start from a prompt that works

  • "Using the TransFi API, create a KES collection for 2,500 via M-Pesa in sandbox and give me the payUrl."
  • "List the fields I need to create an individual recipient in the Philippines, then write the request in Python."
  • "Write a webhook handler in Node that verifies the TransFi signature and acts only on final order statuses."

What makes this reference easy for an assistant

Every endpoint opens with what it does and when to call it. Every enum value is explained on the field. Every response says what to do next. An assistant does not have to guess.