Skip to main content

Hello API Key

Goal: Confirm your API key works and you know what a Discovery 401 looks like.
Prep time: ~1 minute

What you’ll use

  • GET /flynet/v1/restaurants with X-API-Key: <key>

Code

200 returns { "restaurants": [...], "pagination": {...} }. A missing or invalid key returns 401 with a JSON envelope, different from the OAuth empty-body 401:
Discovery 401s are JSON. OAuth 401s are empty-body. The two envelopes are not interchangeable; see Pagination + errors.
Next: Fetch a restaurant list: paginate the Discovery surface.