Skip to main content
The PostlyBee SDK wraps all current Public API operations with a user-token client and Workspace-scoped resources.

Install

Node.js 18 or newer is required because the SDK uses the native Fetch, FormData, and Blob APIs.

Initialize

Create the token from Settings → Public API with workspaces:read and the scopes required by your integration. Self-hosted installations can override the backend origin:

Workspace resources

Schedule a post

Upload media

Error handling

Every non-2xx response throws PostlyBeeApiError with the HTTP status, parsed response body, and Retry-After value when available.
Use the SDK only from trusted server-side code. Never bundle a pbk_ token into a browser or mobile application.
Last modified on August 26, 2026