{"openapi":"3.1.0","info":{"title":"Roamduck agent API","version":"1.1.0","description":"Roamduck sells prepaid mobile top-ups (airtime, data bundles) for phones in 159 countries, digital gift cards and travel eSIMs (mobile data plans). Payment is cryptocurrency only, on NOWPayments: every create tool returns a payment link (payment_url or pay_url) that a person must open and pay; the agent cannot pay and nothing is charged before that. Optional: list_payment_coins, then pass pay_with. Top-ups: find_operator (or list_operators) -> list_products -> confirm number, operator, product and price with the person -> create_order -> give the person payment_url -> get_order. Gift cards: search_giftcards (country and/or brand) -> get_giftcard -> confirm brand, country and value with the person (cards are region locked: a card works only with accounts in its own country) -> create_giftcard_order -> give the person pay_url -> get_order returns the code once delivered. Travel eSIMs: list_esim_destinations -> list_esim_plans -> get_esim_plan (coverage) -> confirm the plan and that the phone supports eSIM and is not locked to an operator -> create_esim_order -> give the person pay_url -> get_order returns the install data once delivered. Codes and install data returned by get_order are secrets for the buyer only. Delivered top-ups, shown gift card codes and installed eSIMs cannot be refunded (unless they do not work). Support: support@roamduck.com. MCP endpoint: https://roamduck.com/mcp (Streamable HTTP)."},"servers":[{"url":"https://roamduck.com"}],"paths":{"/api/agent/v1/countries":{"get":{"operationId":"listCountries","summary":"Countries with mobile top-ups","responses":{"200":{"description":"List of {country, name, dial_prefixes}"}}}},"/api/agent/v1/operators":{"get":{"operationId":"listOperators","summary":"Mobile operators in a country","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"Two-letter ISO code, e.g. MX"}],"responses":{"200":{"description":"List of {operator_code, name, number_pattern}"}}}},"/api/agent/v1/lookup":{"get":{"operationId":"findOperator","summary":"Country and operator of a phone number","parameters":[{"name":"phone","in":"query","required":true,"schema":{"type":"string"},"description":"Full international number, e.g. +525512345678"}],"responses":{"200":{"description":"{country, operators, note}"}}}},"/api/agent/v1/products":{"get":{"operationId":"listProducts","summary":"Top-up products with prices","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"Two-letter ISO code"},{"name":"operator","in":"query","required":false,"schema":{"type":"string"},"description":"operator_code (optional)"}],"responses":{"200":{"description":"List of {sku, operator_code, operator, title, benefits, price or price_range, recipient_gets}"}}}},"/api/agent/v1/payment-coins":{"get":{"operationId":"listPaymentCoins","summary":"Coins to offer, with minimum payments (optional step)","parameters":[{"name":"amount","in":"query","required":false,"schema":{"type":"string"},"description":"Product price (optional)"},{"name":"currency","in":"query","required":false,"schema":{"type":"string"},"description":"EUR, USD or GBP (optional)"}],"responses":{"200":{"description":"{coins: [{pay_with, name, minimum, fits_this_amount}], note}"}}}},"/api/agent/v1/orders":{"post":{"operationId":"createOrder","summary":"Create an order; returns a crypto payment link a person must pay","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sku","phone","amount","currency"],"properties":{"sku":{"type":"string"},"phone":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"pay_with":{"type":"string","description":"optional coin from payment-coins"}}}}}},"responses":{"201":{"description":"{order_id, payment_url, price, status, status_url, next_step}"},"400":{"description":"Wrong number, product or price (message says which)"},"429":{"description":"Too many orders; wait"}}}},"/api/agent/v1/orders/{order_id}":{"get":{"operationId":"getOrder","summary":"Order status","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{order_id, kind (topup, giftcard or esim), stage, delivered, message, status_page, product, pay_url (while waiting), giftcard {cards: [{code, pin}], redeem, country, brand} or esim {lpa, smdp, code, ios_link, android_link, qr_url} once delivered: secrets for the buyer only; a delivered eSIM also has usage {status (not_started, active, ended, unknown), data_total_gb, data_left_gb, unlimited, ends_at, days_left, updated_at, iccid_tail} or null}. stage is one of waiting, confirming, underpaid, sending, delivered, review, failed, refunded, expired (nothing paid and the payment page timed out: create a new order)"}}}},"/api/agent/v1/giftcards/countries":{"get":{"operationId":"listGiftcardCountries","summary":"Countries with gift cards","responses":{"200":{"description":"List of {country, name, cards}"}}}},"/api/agent/v1/giftcards":{"get":{"operationId":"searchGiftcards","summary":"Search gift cards by country and/or brand (at least one)","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string"},"description":"Two-letter ISO code (optional)"},{"name":"query","in":"query","required":false,"schema":{"type":"string"},"description":"Brand or card name (optional)"}],"responses":{"200":{"description":"{country, query, total, items: [{id, name, brand, country, currency, from_eur}], note}"}}}},"/api/agent/v1/giftcards/{product_id}":{"get":{"operationId":"getGiftcard","summary":"Gift card values with EUR prices (or range), redeem text, region","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"{id, name, brand, country, currency, values or value_range, redeem, region_note}"}}}},"/api/agent/v1/giftcards/orders":{"post":{"operationId":"createGiftcardOrder","summary":"Create a gift card order; returns a crypto payment link a person must pay","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product_id","face"],"properties":{"product_id":{"type":"integer"},"face":{"type":"number","description":"card value in the card's currency"},"first_name":{"type":"string","description":"only for a value with needs_name"},"last_name":{"type":"string","description":"only for a value with needs_name"},"pay_with":{"type":"string","description":"optional coin from payment-coins"}}}}}},"responses":{"201":{"description":"{order_id, kind, pay_url (a person must open it and pay in crypto), price, currency, pay_with, product, status, status_url, status_page, note}"},"400":{"description":"Bad id, value or coin (message says which)"},"404":{"description":"Not available"},"429":{"description":"Too many orders; wait"},"503":{"description":"Not available right now"}}}},"/api/agent/v1/esims/destinations":{"get":{"operationId":"listEsimDestinations","summary":"eSIM destinations","responses":{"200":{"description":"{countries, regions: [{destination, name, plans, from_eur}]}"}}}},"/api/agent/v1/esims/plans":{"get":{"operationId":"listEsimPlans","summary":"eSIM plans for a destination","parameters":[{"name":"destination","in":"query","required":true,"schema":{"type":"string"},"description":"Country code (e.g. JP) or region code"}],"responses":{"200":{"description":"{destination, name, total, plans: [{id, data, days, price_eur, speed, countries}]}"}}}},"/api/agent/v1/esims/plans/{plan_id}":{"get":{"operationId":"getEsimPlan","summary":"eSIM plan with coverage (countries, networks, speeds)","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{id, destination, data, days, price_eur, coverage, notes, requirements}"}}}},"/api/agent/v1/esims/orders":{"post":{"operationId":"createEsimOrder","summary":"Create an eSIM order; returns a crypto payment link a person must pay","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"string"},"pay_with":{"type":"string","description":"optional coin from payment-coins"}}}}}},"responses":{"201":{"description":"{order_id, kind, pay_url (a person must open it and pay in crypto), price, currency, pay_with, product, status, status_url, status_page, note}"},"400":{"description":"Bad id, value or coin (message says which)"},"404":{"description":"Not available"},"429":{"description":"Too many orders; wait"},"503":{"description":"Not available right now"}}}}}}