Developer Documentation

Riffre API Reference

Everything you need to send WhatsApp text, template, media and interactive messages from your own systems.

MCP Server

Connect Claude, ChatGPT or any MCP-compatible AI agent to Riffre - browse documentation and send WhatsApp messages using the same API key as the REST API.

Last updated 14 Aug 2026

What it is

Riffre runs a standalone MCP (Model Context Protocol) server so AI agents - Claude, ChatGPT, or any MCP-compatible client - can work with your Riffre account directly, without you writing integration code by hand.

It exposes four kinds of tools:

  • Documentation tools - list, search and read Riffre's developer documentation. Available with no authentication.
  • Conversation tools - list customer numbers and read recent conversation history. Read-only and not billed. Require your Riffre API key.
  • Template tools - list templates, check approval status, and submit new templates for Meta approval. Require your Riffre API key.
  • Messaging tools - send WhatsApp text, template, media and interactive messages. Require your Riffre API key, and every send is billed to your wallet exactly like the REST API.

Endpoint

POST https://riffrechat.com:3004/mcp

The server uses the MCP Streamable HTTP transport. Configure your MCP client with this URL. Requests are received by the load balancer on port 3004 and forwarded internally to the MCP server.

Authentication

Use the same rf_live_... API key you already use for the REST API (see Authentication), sent the same way:

Authorization: Bearer rf_live_...
  • No key supplied: only the documentation tools are available.
  • Valid key supplied: documentation tools plus the conversation, template and messaging tools scoped to that key's WhatsApp phone number.

There is no separate MCP-specific credential and no OAuth flow to set up.

Documentation tools

ToolPurpose
list_documentationLists every documentation page, grouped by category
search_documentationSearches page titles and summaries for a keyword
get_documentation_pageFetches the full content of one page by its slug

Conversation tools

Read-only and not billed. Require a valid API key:

ToolPurpose
list_conversation_numbersList customer numbers, each with 24-hour window status and name
get_conversation_historyLast 10 messages with one number, with time, sender and message text

Template tools

Require a valid API key:

ToolPurpose
list_templatesList every template with its approval status, quality score and structure - read-only, not billed
get_template_statusCheck one template's approval status by name, across every language variant - read-only, not billed
create_templateSubmit a new template for Meta approval - not billed itself, but requires the number's maintenance fee to be paid

Messaging tools

Each of these performs a real, billed WhatsApp send and requires a valid API key:

ToolPurpose
send_text_messagePlain text message
send_template_messageApproved template, with variables
send_media_messageImage, video, audio or document by link or media ID
send_interactive_list_messageInteractive message with a selectable list
send_interactive_buttons_messageInteractive message with up to 3 quick-reply buttons

If the wallet balance is too low or the account maintenance fee for the number is unpaid, the tool call returns a clear "Payment required" error instead of failing silently - the same 402 behavior as the REST API (see Errors).

Messaging tools are billed per message, the same as the REST API. Only connect an AI agent to them if you intend for it to actually send messages on your behalf.