Authentication

Authentication

PrintBase supports two auth modes:

  • User JWT: for Console/Web user sessions
  • API Key (pb_live_*): for backend integrations

User JWT endpoints

  • POST /v1/auth/register
  • POST /v1/auth/login
  • GET /v1/auth/me
  • POST /v1/auth/email/verification/send
  • POST /v1/auth/email/verification/confirm

Newly registered users are returned with email_verified: false. Use a user JWT to request a verification email, then submit the token from the email link to confirm the address.

API Authorization header

Authorization: Bearer <TOKEN_OR_API_KEY>

Scope model

Common scopes:

  • api_keys:read
  • api_keys:write
  • printers:read
  • computers:read
  • print:read
  • print:create
Authentication