Roamduck for AI agents
An AI assistant can top up a phone, buy a digital gift card or a travel eSIM: it finds the product, shows the price and prepares the order. It gets back a payment link. A person pays that link in cryptocurrency; the agent cannot pay, and nothing is charged before the person does. The top-up, gift card or eSIM is then delivered automatically.
Connect
MCP server (Streamable HTTP, no sign-in):
https://roamduck.com/mcp
Claude (claude.ai or the desktop app): Settings, Connectors, Add custom connector, paste the URL, choose no sign-in. ChatGPT and other assistants: add it as a custom connector or remote MCP server the same way. Claude Code, in .mcp.json:
{
"mcpServers": {
"roamduck": { "type": "http", "url": "https://roamduck.com/mcp" }
}
}
REST API: https://roamduck.com/api/agent/v1, described in openapi.json. A short text summary for language models is at /llms.txt.
Tools
The same operations are MCP tools and REST endpoints under /api/agent/v1.
| tool | REST | what it does |
|---|---|---|
list_countries | GET /countries | Countries with mobile top-ups and their dialling prefixes. |
find_operator | GET /lookup?phone= | Country and operator of a phone number. |
list_operators | GET /operators?country= | Mobile operators in a country. |
list_products | GET /products?country=&operator= | Top-up products with what the recipient gets and the price. |
list_payment_coins | GET /payment-coins | Optional: coins to offer, with minimum payments. |
create_order | POST /orders | Top-up order; returns payment_url for a person to pay. |
list_giftcard_countries | GET /giftcards/countries | Countries with gift cards. |
search_giftcards | GET /giftcards?country=&query= | Gift cards by country and/or brand, with the lowest EUR price. |
get_giftcard | GET /giftcards/{id} | Card values with EUR prices (or a range), how to redeem, the country it is locked to. |
create_giftcard_order | POST /giftcards/orders | Gift card order (product_id, face); the server sets the price; returns pay_url. |
list_esim_destinations | GET /esims/destinations | Countries and regions with eSIM plans. |
list_esim_plans | GET /esims/plans?destination= | eSIM plans for a destination: data, days, price, speed. |
get_esim_plan | GET /esims/plans/{id} | One plan with the countries, networks and speeds it covers. |
create_esim_order | POST /esims/orders | eSIM order (plan_id); the server sets the price; returns pay_url. |
get_order | GET /orders/{id} | Status of any order. Once delivered: the gift card code or the eSIM install data, secrets for the buyer only. |
How a top-up order works
find_operator: country and operator of the number. If none comes back (numbers can move between operators), ask the person and uselist_operators.list_products: what the recipient gets and the price, per product (sku).- Confirm the number, operator, product and price with the person. Delivered top-ups cannot be reversed.
- Optional: ask which coin they want to pay with.
list_payment_coinsgives a short list with each coin's minimum payment. create_order: returnsorder_idandpayment_url. The amount must be the product's price. Withpay_with, the payment page opens with that coin selected.- The person opens
payment_urland pays on NOWPayments. get_order: follow the order until it is delivered.
Your user can also open the order page and ask for the order link by email. This is optional and not part of the API.
Gift cards
search_giftcardswith a country, a brand or both, thenget_giftcardfor the values and prices.- Confirm the brand, the card's country and the value with the person. Gift cards are region locked: a card works only with accounts in its own country.
create_giftcard_orderwithproduct_idandface(the card value in the card's currency). The person payspay_url.get_order: once delivered,giftcard.cardsholds the code and PIN. Give them only to the person who paid. A shown code cannot be refunded unless it does not work.
Travel eSIMs
list_esim_destinations,list_esim_plans, thenget_esim_planfor the coverage.- Confirm the plan, and that the phone supports eSIM and is not locked to an operator (dialling *#06# shows an EID on eSIM phones).
create_esim_orderwithplan_id. The person payspay_url.get_order: once delivered,esimholds a QR code link, one-tap install links for iPhone and Android and the LPA string. Give them only to the person who paid; the QR code can usually be used only once.- Later,
get_orderalso returnsusagefor a delivered eSIM:status(not_started, active, ended or unknown), data left of the total (or unlimited), end date and days left;nullwhen it cannot be read right now.
REST examples
curl "https://roamduck.com/api/agent/v1/lookup?phone=%2B525512345678"
curl "https://roamduck.com/api/agent/v1/products?country=MX&operator=TCMX"
curl "https://roamduck.com/api/agent/v1/payment-coins?amount=10¤cy=EUR"
curl -X POST https://roamduck.com/api/agent/v1/orders \
-H "Content-Type: application/json" \
-d '{"sku":"SKU_FROM_PRODUCTS","phone":"+525512345678","amount":10.0,"currency":"EUR","pay_with":"usdttrc20"}'
curl "https://roamduck.com/api/agent/v1/giftcards?country=US&query=amazon"
curl -X POST https://roamduck.com/api/agent/v1/giftcards/orders \
-H "Content-Type: application/json" -d '{"product_id":12345,"face":25}'
curl "https://roamduck.com/api/agent/v1/esims/plans?destination=JP"
curl -X POST https://roamduck.com/api/agent/v1/esims/orders \
-H "Content-Type: application/json" -d '{"plan_id":"PLAN_ID_FROM_PLANS"}'
curl "https://roamduck.com/api/agent/v1/orders/ORDER_ID"
Order stages
| stage | meaning |
|---|---|
| waiting | Not paid yet. |
| confirming | Payment seen, waiting for network confirmations. Stablecoins on fast networks take about a minute, Bitcoin 10 to 30 minutes. |
| sending | Paid, the top-up, gift card or eSIM is on its way. |
| delivered | Delivered. For a gift card or an eSIM, get_order now returns the code or the install data. |
| underpaid, review, failed | Needs a person: write to support with the order id. We deliver or refund. |
| refunded | The payment was sent back. |
| expired | The payment page closed and no payment arrived. Create a new order if the buyer still wants the top-up. |
Limits
- Per network: at most 5 created orders a minute (the REST endpoint allows about 2) and 30 an hour, and 15 attempts a minute, counted together for top-ups, gift cards and eSIMs.
- Per network: 20 number lookups and 60 product or price requests a minute, shared between MCP and REST.
- At most 10 unpaid top-up orders per phone number per day.
- No bill payments.
Privacy
The recipient's number is used only to send the top-up, as described in the privacy policy. It is never part of the payment link or the order id.
Questions or bulk volumes: support@roamduck.com