Skip to main content

Three authentication methods

AtlasFlux uses three distinct authentication methods depending on the endpoint category.

1. API Key Auth — Public Developer API

Used for: /v1/* endpoints
  • Keys are prefixed with af_live_ or af_test_
  • Verified by hashing the key and looking up by prefix
  • Sets developer, apiKeyAuth, and apiKey context

2. Clerk Auth — Dashboard API

Used for: /dashboard/* and /billing/checkout endpoints
  • JWT tokens issued by Clerk
  • Auto-provisions developer account on first login
  • Creates wallet automatically

3. Internal Token Auth — Admin/Internal API

Used for: /internal/* endpoints
  • Token-based, not bearer
  • Disabled in production unless configured
  • Used for admin operations

Request context

Each authenticated request has the following context: