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)

Pre-registered public clients (production)

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