Skip to content

Authentication

All API requests require authentication using a Bearer token. You can use either a session token (for browser-based apps) or an API token (for server-to-server communication).

API tokens are the recommended way to authenticate for programmatic access. They provide:

  • Long-lived credentials that don’t expire
  • Scoped permissions per token
  • Easy revocation without affecting other tokens
  1. Navigate to Settings > API Tokens in the Catalyzed app
  2. Click Create Token
  3. Give your token a descriptive name
  4. Copy the token immediately - it won’t be shown again

Include the token in the Authorization header:

Terminal window
curl https://api.catalyzed.ai/me \
-H "Authorization: Bearer YOUR_API_TOKEN"

For browser-based applications, users authenticate via email/password or OAuth. Session tokens are:

  • Automatically managed via HTTP-only cookies
  • Short-lived with automatic refresh
  • Tied to a specific browser session
Status CodeDescription
401Missing or invalid token
403Token doesn’t have permission for this resource
{
"error": "UNAUTHORIZED",
"message": "Invalid or expired token"
}