Flat Configurator
roamflat Flat configurator API providing read‑only tools for shop facts, destinations, flats, quoting, pricing, recommendations, trip planning and checkout initiation.
roamflat Flat configurator API providing read‑only tools for shop facts, destinations, flats, quoting, pricing, recommendations, trip planning and checkout initiation.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/roamflat-com:flat-configurator"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
{
"openapi": "3.1.0",
"info": {
"title": "roamflat Flat configurator",
"x-logo": { "url": "https://roamflat.com/assets/favicon/web-app-manifest-512x512.png", "altText": "roamflat" },
"version": "2.0.4",
"description": "roamflat sells one product: the Flat, a prepaid travel eSIM the customer configures — country, speed (5, 10, 25 or 50 Mbps; 25 and 50 need a 5G network), days (1–30) and mobile networks. Unlimited data at the chosen speed, hotspot included, one price for exactly that, delivered on screen and by email within seconds of payment. This endpoint is a Model Context Protocol server (JSON-RPC 2.0 over HTTP, protocol 2025-06-18) with eight read-only tools: get_shop_facts, list_destinations, get_flats, quote_flat, price_grid, recommend_config, plan_trip, start_checkout. Prices come from the same server-side quote the checkout charges and are always the full amount for the configuration and days asked. Checkout is a handoff: buy_url opens the country page with the card preset; the customer presses \"Get your Flat\" and pays.",
"contact": {
"email": "support@roamflat.com",
"url": "https://roamflat.com/en-us/contact/"
},
"termsOfService": "https://roamflat.com/en-us/terms/"
},
"servers": [
{
"url": "https://roamflat.com/wp-json/roamflat"
}
],
"paths": {
"/mcp": {
"post": {
"operationId": "mcp",
"summary": "JSON-RPC 2.0 (MCP): initialize, tools/list, tools/call, resources/list, resources/read, prompts/list, prompts/get",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JsonRpcRequest"
},
"examples": {
"quote": {
"summary": "Quote Japan, 10 Mbps, 7 days",
"value": {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "quote_flat",
"arguments": {
"destination": "Japan",
"mbps": 10,
"days": 7,
"language": "en"
}
}
}
},
"flats": {
"summary": "Networks and Flats of the United Kingdom for 5 days",
"value": {
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get_flats",
"arguments": {
"destination": "gb",
"days": 5
}
}
}
},
"grid": {
"summary": "Price grid Spain",
"value": {
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "price_grid",
"arguments": {
"destination": "es",
"days": [
3,
7,
14
]
}
}
}
},
"trip": {
"summary": "Trip Italy + France, 25 Mbps for a live-streaming creator",
"value": {
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "plan_trip",
"arguments": {
"destinations": [
"Italy",
"France"
],
"days": 6,
"mbps": 25
}
}
}
},
"recommend": {
"summary": "Recommend a speed for a family on one travel router, Japan, 10 days",
"value": {
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "recommend_config",
"arguments": {
"destination": "Japan",
"days": 10,
"devices": "family"
}
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "JSON-RPC result. For tools/call the result carries structuredContent (object) and content[0].text (same object as JSON).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JsonRpcResponse"
}
}
}
}
}
},
"get": {
"operationId": "mcpGet",
"summary": "Answers 405 (POST only; no SSE stream offered).",
"responses": {
"405": {
"description": "Method not allowed"
}
}
}
}
},
"components": {
"schemas": {
"JsonRpcRequest": {
"type": "object",
"required": [
"jsonrpc",
"method"
],
"properties": {
"jsonrpc": {
"type": "string",
"enum": [
"2.0"
]
},
"id": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"method": {
"type": "string",
"enum": [
"initialize",
"ping",
"tools/list",
"tools/call",
"resources/list",
"resources/read",
"prompts/list",
"prompts/get"
]
},
"params": {
"type": "object"
}
}
},
"JsonRpcResponse": {
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"id": {},
"result": {
"type": "object"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": "string"
}
}
}
}
},
"Quote": {
"type": "object",
"additionalProperties": true,
"properties": {
"destination": {
"type": "string",
"description": "Resolved country name (localized)."
},
"iso": {
"type": "string",
"description": "ISO 3166-1 alpha-2, lower case."
},
"name": {
"type": "string",
"description": "The Flat's name as the shop shows it: \"Flat · Vodafone + O2\" or \"Flat · all 4 networks\"."
},
"flat": {
"type": "integer",
"description": "Which Flat of the country (1 = cheapest network only; higher numbers include more networks). Pass it back to quote the same Flat."
},
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Operator names included, as the shop states them."
},
"all_networks": {
"type": "boolean"
},
"has_5g": {
"type": "boolean",
"description": "A 5G network is included."
},
"speed_mbps": {
"type": "integer",
"description": "The chosen maximum speed. Data is unlimited at this speed."
},
"data": {
"type": "string"
},
"days": {
"type": "integer",
"description": "Days booked, counted from the first connection in the destination country."
},
"price": {
"type": "number",
"description": "FULL price of this configuration in currency — the amount paid. Not per day."
},
"price_per_day": {
"type": "number",
"description": "For comparison only. Never multiply it yourself."
},
"currency": {
"type": "string"
},
"price_basis": {
"type": "string",
"enum": [
"total"
]
},
"price_is_final": {
"type": "boolean"
},
"hotspot": {
"type": "boolean"
},
"starts": {
"type": "string"
},
"topup": {
"type": "object",
"additionalProperties": true,
"properties": {
"kind": {
"type": "string",
"enum": [
"days"
]
},
"how": {
"type": "string"
}
},
"description": "How the customer adds days to this Flat later (not through the tools)."
},
"networks_unmatched": {
"type": "array",
"items": {
"type": "string"
},
"description": "Present when a requested network does not exist in this country: those names. The quote then uses the Flat listed in networks."
},
"note": {
"type": "string",
"description": "Present when something about the request had to be adjusted (a step up for the speed, an unknown network) — read it to the customer."
},
"buy_url": {
"type": "string",
"description": "The roamflat card preset to exactly this configuration. Use verbatim."
}
}
},
"Tool_get_shop_facts": {
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
}
},
"description": "What roamflat is and how the Flat works, in the shop's own words: speeds, networks, when the days start, delivery, payment, refund policy, adding days, My Flat, e-mails, app, devices, support. Use for any question that is not a price."
},
"Tool_list_destinations": {
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"description": "Every country roamflat builds a Flat for, with the number of networks, whether 5G (and so 25/50 Mbps) is available, and the starting price per day (5 Mbps, cheapest network). Use to check coverage or compare countries."
},
"Tool_get_flats": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "Country in ANY language or its ISO code, e.g. \"Japan\", \"Japon\", \"jp\". Map a city to its country first. One country per Flat."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 30,
"description": "Days of mobile data (1–30).",
"default": 7
},
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"required": [
"destination"
],
"description": "The networks of one country (operator, 5G) and the Flats built from them — each Flat with the networks it includes and the price for every speed for the given days (null = that speed needs a 5G network). Use to explain the choice between networks and speeds."
},
"Tool_quote_flat": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "Country in ANY language or its ISO code, e.g. \"Japan\", \"Japon\", \"jp\". Map a city to its country first. One country per Flat."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 30,
"description": "Days of mobile data (1–30)."
},
"mbps": {
"type": "integer",
"enum": [
5,
10,
25,
50
],
"description": "Maximum speed in Mbps (5, 10, 25, 50; default 5). Data is unlimited at that speed. 25 Mbps and up need a 5G network."
},
"flat": {
"type": "integer",
"minimum": 1,
"description": "Optional: which Flat of the country, as get_flats numbers them. Omit = the cheapest Flat that allows the speed."
},
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional: operator names from get_flats that must be included (the cheapest Flat holding all of them is used). Ignored when flat is given."
},
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"required": [
"destination",
"days"
],
"description": "Use while the customer is still deciding — \"how much is …?\": the exact price of one configuration (country, speed, days and optionally which Flat / networks), the server price the customer would pay. Quote it as returned, never compute or scale it yourself. The result carries a buy_url for reference; when the customer says they want to buy, call start_checkout instead."
},
"Tool_price_grid": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "Country in ANY language or its ISO code, e.g. \"Japan\", \"Japon\", \"jp\". Map a city to its country first. One country per Flat."
},
"days": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 30
},
"minItems": 1,
"maxItems": 8,
"description": "Up to 8 day values, e.g. [3,7,14,30]."
},
"mbps": {
"type": "array",
"items": {
"type": "integer",
"enum": [
5,
10,
25,
50
]
},
"maxItems": 4,
"description": "Speeds to include (default all: 5, 10, 25, 50)."
},
"flat": {
"type": "integer",
"minimum": 1,
"description": "Optional: which Flat of the country, as get_flats numbers them. Omit = the cheapest Flat that allows the speed."
},
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional: operator names from get_flats that must be included (the cheapest Flat holding all of them is used). Ignored when flat is given."
},
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"required": [
"destination",
"days"
],
"description": "Prices for several speed × days combinations of one Flat in one call (up to 8 day values; speeds default to all), e.g. to compare with other providers or to find the best fit. Same server prices as quote_flat."
},
"Tool_recommend_config": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "Country in ANY language or its ISO code, e.g. \"Japan\", \"Japon\", \"jp\". Map a city to its country first. One country per Flat. Required unless destinations is given."
},
"destinations": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"description": "Several countries (max 5), any language or ISO codes. Use instead of destination for a multi-country trip. Required unless destination is given."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 30,
"description": "Days of mobile data (1–30)."
},
"devices": {
"type": "string",
"enum": [
"phone",
"phone_laptop",
"small_group",
"family",
"creator_posting",
"creator_live",
"creator_hd_live",
"creator_pro"
],
"description": "phone = one phone (5 Mbps); phone_laptop = phone + laptop; small_group = a travel router for two or three devices; family = one travel router for the whole family; creator_posting = stories, reels, TikToks; creator_live = going live from the phone; creator_hd_live = Full HD live streams; creator_pro = multi-camera live and 4K uploads. Default phone."
},
"flat": {
"type": "integer",
"minimum": 1,
"description": "Optional: which Flat of the country, as get_flats numbers them. Omit = the cheapest Flat that allows the speed."
},
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional: operator names from get_flats that must be included (the cheapest Flat holding all of them is used). Ignored when flat is given."
},
"budget": {
"type": "number",
"description": "Optional budget for the whole trip in the quoted currency; options above it are marked."
},
"per_country": {
"type": "array",
"items": {
"type": "object",
"properties": {
"destination": {
"type": "string"
},
"days": {
"type": "integer"
}
}
},
"description": "Optional days per country for a multi-country trip."
},
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"required": [
"days"
],
"description": "Use when the customer describes the trip instead of a speed: country (or up to 5), days and what will be connected (devices: phone, phone_laptop, small_group, family, creator_posting, creator_live, creator_hd_live, creator_pro). Picks the speed from the roamflat speed guide and returns it server-quoted together with the step below and the step above (where offered), each with price, networks, a one-line reason and its buy_url, plus trip totals and an optional budget check. A speed that needs 5G in a country without 5G falls back to the highest speed there and says so. Prices are the same as quote_flat. Give destination (one country) or destinations (several) — one of the two is required; a call without a country fails with invalid_argument."
},
"Tool_plan_trip": {
"type": "object",
"properties": {
"destinations": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 2,
"maxItems": 5,
"description": "Countries of the trip (2–5), any language or ISO codes, in travel order."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 30,
"description": "Days of mobile data (1–30).",
"default": 7
},
"mbps": {
"type": "integer",
"enum": [
5,
10,
25,
50
],
"description": "Maximum speed in Mbps (5, 10, 25, 50; default 5). Data is unlimited at that speed. 25 Mbps and up need a 5G network."
},
"per_country": {
"type": "array",
"items": {
"type": "object",
"properties": {
"destination": {
"type": "string"
},
"days": {
"type": "integer"
},
"mbps": {
"type": "integer"
}
}
},
"description": "Optional overrides per country (days and/or mbps)."
},
"language": {
"type": "string",
"description": "ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices."
},
"bucket": {
"type": "string",
"description": "Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language."
},
"currency": {
"type": "string",
"description": "Optional ISO 4217 override for prices."
}
},
"required": [
"destinations"
],
"description": "A trip through several countries (max 5): one Flat per country, each quoted at the same speed and days unless given per country. Returns one line per country with price and buy_url, plus the total. Use when the customer names two or more countries and a speed (2–5 destinations); for one country call q
# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/roamflat-com/openapi/roamflat-com-openapi.json