Server-to-server integrations want API keys. Third-party apps acting on behalf of dealerships want OAuth. Large dealer groups with their own IdP want SSO.
For backend scripts, internal tooling, and anything server-to-server.
For third-party apps listed in our partner directory.
For dealer groups with their own identity provider.
Scopes are granted at key creation or OAuth consent. They cannot be widened after the fact — rotate the key or re-consent. Read and write are independent: grant one without the other.
API keys are long-lived but rotatable. OAuth access tokens expire in 60 minutes. Refresh tokens last 30 days with a sliding window. SSO sessions follow your IdP's policy.
Rotate manually. Dual-key rotation supported for 7 days.
Short enough to limit blast radius if leaked.
Sliding window — used tokens get a fresh 30-day clock.
Honors your session policy. Force logout via SLO.
Same shape for every auth mode — API keys, OAuth access tokens, SSO session tokens. The scheme is always Bearer.
# With an API key curl https://api.boater.os/v1/hulls \ -H "Authorization: Bearer sk_live_abc123..." # With an OAuth access token curl https://api.boater.os/v1/hulls \ -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."