pbk_ user API Tokens as the Public API and SDK. Create a Token from Settings → Public API, restrict it to the required Workspaces, and select only the scopes used by your commands.
Interactive login
GET /public/v1/workspaces, and saves it to:
0700 and the credentials file with mode 0600.
auth:logout removes only the local credentials file. Revoke a compromised or unused Token from the PostlyBee dashboard as well.
Environment variables
Environment variables take priority over saved configuration and are recommended for CI:--token, --workspace, and --base-url options override environment variables for one command.
Required scopes
Scopes restrict a Token but never grant Workspace membership. If the Token owner stops managing a Workspace, CLI access ends immediately.
Self-hosted installations
auth:login, or set POSTLYBEE_API_URL for every command.