Exchange an API key for an access token
Authentication
RFC 6749 client_secret_basic: API key id/secret as username/password — an alternative to the token-exchange form fields (the form wins when both are present). Only POST /api/v1/auth/token accepts it.
Request
OAuth 2.0 grant type — only client_credentials is supported.
The API key secret (perkss_sk_live_…) shown exactly once at creation. May alternatively be sent via HTTP Basic authentication.
Requested token lifetime in seconds, clamped to [60, 86400]. Defaults to 86400 (24h). Use short TTLs for browser-bound tokens.
Response
RFC 6749 §5.1 token response.
The Bearer token for all other /api/v1 endpoints. An opaque credential — do not parse or persist beyond its lifetime.
Seconds until expiry — reflects the actually minted lifetime after the ttl_seconds clamp to [60, 86400].