Connect an AI agent to FlightLabs

OAuth lets an agent call the FlightLabs API without pasting your API key. Subscription (trial / paid plan) still happens on your FlightLabs account — OAuth only grants access to that account.

1. Create or use a FlightLabs account

Register and start a free trial (or use an existing subscription): https://www.goflightlabs.com/register

This step creates billing/quota. The agent cannot invent a paid subscription by itself. Free accounts without trial/paid do not get an API key and cannot complete OAuth — they can only try endpoints in the dashboard.

2. Choose how the agent authenticates

3. OAuth endpoints (for platforms)

There is no Client ID to enter. ChatGPT, Claude, Claude Code, Cursor and other MCP clients register themselves at https://www.goflightlabs.com/oauth/register (dynamic client registration): add the MCP URL https://mcp.goflightlabs.com/mcp, leave the OAuth client fields empty and sign in.

Pre-registered public clients (still valid)

Only needed if your client cannot register itself, or if you already connected with one of these.

Platform Client ID Redirect
ChatGPT 15 https://chatgpt.com/connector_platform_oauth_redirect
Claude 16 https://claude.ai/api/mcp/auth_callback
Claude Code 16 http://localhost/callback, http://127.0.0.1/callback (any port)
Cursor 17 https://www.cursor.com/agents/mcp/oauth/callback, http://localhost:8787/callback

Public clients (no secret). Requires a free trial or paid FlightLabs account.

4. Call the API

GET https://www.goflightlabs.com/flights?flightIata=AA217
Authorization: Bearer ACCESS_TOKEN_OR_API_KEY

Full agent auth notes: /auth.md · MCP setup: /mcp

START FREE TRIAL API docs