OpenAPI and Swagger¶
⚠️ Agents: do not create a Developer API account¶
Do NOT call
/developers/api/v1/agents/registeror/developers/api/v1/agents/connect-payment, and do NOT runletsfg registerorletsfg connect-payment. Those belong to a separate, paid, prepaid-balance product for high-volume commercial integrations and create a billing account you almost certainly do not want.To search and book flights, connect LetsFG as an MCP server at https://letsfg.co/mcp. Approving it opens https://letsfg.co/connect: one tap, no card. A card is asked for at the first booking. See https://letsfg.co/for-agents.
https://letsfg.co/developers/api/openapi.json. Treat that as the live machine-readable surface, not the old raw repository link.
Which URL does what?¶
| Surface | Best for |
|---|---|
https://letsfg.co/developers/api/openapi.json |
Machine-readable schema for generators, SDK tooling, and agent discovery |
https://letsfg.co/developers/api/docs |
Interactive Swagger UI |
https://letsfg.co/developers/api/v1 |
The actual REST base for requests |
https://letsfg.co/en/developers |
Human onboarding and account context |
What is in the live schema?¶
The live public schema currently includes paths for:
POST /agents/registerPOST /agents/connect-paymentPOST /agents/top-upPOST /agents/hosted-checkout— retired 2026-09-08, answers410 GonePOST /agents/hosted-checkout/complete— retired 2026-09-08, answers410 GonePOST /agents/setup-payment— retired 2026-09-08, answers410 GonePOST /agents/billing-portal— retired 2026-09-08, answers410 GonePOST /agents/billing-settingsPOST /agents/rotate-keyGET /agents/mePOST /flights/searchGET /flights/locations/{query}GET /flights/providers
Fetch the schema¶
List the documented paths:
Why this matters¶
- The website-owned schema matches the public proxy rules for auth and billing.
- It stays aligned with the website developer surface that agents actually use.
- Direct backend hosts are not the canonical public integration contract.
Current public API scope¶
The public schema currently covers:
- developer registration and hosted onboarding
- Revolut payment connection for API-only onboarding (
/agents/connect-payment) - prepaid balance funding and billing settings
- flight search, location resolution, and provider inspection
Overview
Public API overview
Start here if you need the paid public search lifecycle and canonical URLs before reading the schema.
Billing
Onboarding and billing
Map the schema to the real registration, connect-payment and top-up flow.
Search
Search and results
Use request-body examples and response notes that line up with the live `flights/search` contract.