What is llms.txt?

llms.txt is a plain-text file at the root of the RohoPay documentation that summarizes the entire API in a format optimized for AI language models. It follows the emerging llms.txt standard. Available at: https://docs.rohopay.com/llms.txt

Why Use It?

Without context, AI assistants often hallucinate API endpoints, generate wrong authentication patterns, or use incorrect phone formats. By injecting llms.txt into your AI context:
  • Claude, GPT, Gemini, and others know the exact endpoints
  • Phone number formats are accurate per country
  • Idempotency requirements are understood
  • Test cards and test phone numbers are known
  • Error codes are correctly referenced

Usage

Claude Code (CLAUDE.md)

# Download and add to your project context
curl https://docs.rohopay.com/llms.txt >> CLAUDE.md
Or include it as a URL reference in your CLAUDE.md:
# CLAUDE.md
@https://docs.rohopay.com/llms.txt

Cursor

Add to .cursor/rules/ or include in the system prompt:
curl https://docs.rohopay.com/llms.txt > .cursor/rules/rohopay.md

GitHub Copilot

Add to .github/copilot-instructions.md:
echo "\n## RohoPay API Context\n" >> .github/copilot-instructions.md
curl https://docs.rohopay.com/llms.txt >> .github/copilot-instructions.md

Any LLM via API

import httpx

llms_context = httpx.get("https://docs.rohopay.com/llms.txt").text

response = anthropic_client.messages.create(
    model="claude-sonnet-4-6",
    system=f"You are a developer assistant. Here is the RohoPay API reference:\n\n{llms_context}",
    messages=[{"role": "user", "content": "How do I collect mobile money payments?"}]
)

File Contents Preview

The llms.txt file covers:
# RohoPay API — LLM Reference

## Overview
[Summary of what RohoPay does]

## Base URL
[API host]

## Authentication
[API key format, header name]

## Endpoints
[Complete list with methods, paths, params, response shapes]

## Phone Formats
[Per-country format guide]

## Error Codes
[Complete error taxonomy]

## Test Data
[Test phone numbers, test cards]

## Webhook Verification
[HMAC verification steps]

Keeping It Fresh

The llms.txt file is updated with every API version release. We recommend fetching it programmatically rather than copying it statically:
#!/bin/bash
# refresh-llms.sh — run weekly or on deploy
curl -sf https://docs.rohopay.com/llms.txt > rohopay-llms.txt
echo "Updated RohoPay LLM reference: $(wc -l < rohopay-llms.txt) lines"