Skip to content

Authentication

All Opelyx API endpoints require authentication via a Bearer token in the Authorization header.

Opelyx API keys follow the format op_ followed by 40 hexadecimal characters:

op_your_api_key_here_1234567890abcdefgh

Include the key in the Authorization header on every request:

Terminal window
curl -H "Authorization: Bearer op_YOUR_API_KEY_HERE" \
https://api.opelyx.com/v1/health/plans?zip=10001&age=25

API keys are managed through the Opelyx Dashboard:

  • Create — Generate new keys with descriptive labels
  • View — See all active keys and their creation dates
  • Revoke — Immediately disable a compromised or unused key
  • Store keys in environment variables (OPELYX_API_KEY)
  • Use .env files locally (add to .gitignore)
  • Rotate keys periodically via the dashboard
  • Use separate keys for development and production
  • Revoke keys immediately if compromised
StatusMeaningAction
401Missing or invalid API keyCheck the Authorization header format
402Feature requires a higher tierUpgrade your plan
429Rate limit exceededWait for Retry-After seconds, then retry

All error responses follow RFC 9457 Problem Details format.