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
- API key — copy
access_keyfrom the dashboard (trial/paid only) and sendAuthorization: Bearer YOUR_KEY. Do not put the key in the MCP URL (Claude Desktop / claude.ai strip it). - OAuth — the agent sends you to
/oauth/authorize; you approve; it receives a Bearer token. Requires trial or paid.
3. OAuth endpoints (for platforms)
- Metadata:
/.well-known/oauth-authorization-server - Authorize:
https://www.goflightlabs.com/oauth/authorize - Token:
https://www.goflightlabs.com/oauth/token - Protected resource:
/.well-known/oauth-protected-resource - Scope:
flightlabs.api
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