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/registerPOST /v1/auth/loginGET /v1/auth/mePOST /v1/auth/email/verification/sendPOST /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:readapi_keys:writeprinters:readcomputers:readprint:readprint:create