Skip to content

OpenAPI and Swagger

⚠️ Agents: do not create a Developer API account

Do NOT call /developers/api/v1/agents/register or /developers/api/v1/agents/connect-payment, and do NOT run letsfg register or letsfg 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.

Use the website-owned schema. The canonical public contract lives at 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/register
  • POST /agents/connect-payment
  • POST /agents/top-up
  • POST /agents/hosted-checkout — retired 2026-09-08, answers 410 Gone
  • POST /agents/hosted-checkout/complete — retired 2026-09-08, answers 410 Gone
  • POST /agents/setup-payment — retired 2026-09-08, answers 410 Gone
  • POST /agents/billing-portal — retired 2026-09-08, answers 410 Gone
  • POST /agents/billing-settings
  • POST /agents/rotate-key
  • GET /agents/me
  • POST /flights/search
  • GET /flights/locations/{query}
  • GET /flights/providers

Fetch the schema

curl https://letsfg.co/developers/api/openapi.json | jq '.info, .servers'

List the documented paths:

curl https://letsfg.co/developers/api/openapi.json | jq '.paths | keys'

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