PowerPost APIv1
PowerPost APIv1
PowerPost APIQuickstartAuthenticationWorkspacesInput Types

API Reference

Upload MediaGenerate ContentGenerationsGenerate ImagesPosts & PublishingGet Credits

Guides

WebhooksError CodesChangelog

Workspaces

How workspaces organize your content, connections, and settings.

Workspaces are isolated containers for your content. Each workspace has its own generations, posts, media, social connections, writing styles, webhook configuration, and defaults.

Use workspaces to separate different brands, clients, or projects within a single PowerPost account.

What's Workspace-Scoped

Each workspace is fully independent — data in one workspace is never visible to another.

FeatureScoped to
GenerationsWorkspace
Posts & draftsWorkspace
Media (uploads & AI)Workspace
Writing stylesWorkspace
Social connectionsWorkspace
Webhook configWorkspace
Workspace defaultsWorkspace

What's Account-Level

Some features apply to your entire account, shared across all workspaces.

FeatureScoped to
Credit balanceAccount
API keysAccount
ProfileAccount

Credits are deducted from a single account-wide balance regardless of which workspace triggers the generation.

Using Workspaces with the API

All content endpoints require the X-Workspace-Id header to specify which workspace the request targets.

curl https://powerpost.ai/api/v1/content/generate \
  -H "x-api-key: pp_live_sk_YOUR_KEY_HERE" \
  -H "X-Workspace-Id: YOUR_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{ "prompt": "Launch announcement", "post_types": ["tiktok-video"] }'

Which endpoints need it

  • All content endpoints — /content/*, /images/*, /posts/*, /media/*
  • Not needed — /account/credits (account-level)

Finding your workspace ID

  1. Go to Settings → Workspaces in the PowerPost dashboard
  2. Click the copy button next to any workspace to copy its ID

Errors

StatusMeaning
400X-Workspace-Id header is missing
403You don't own the specified workspace

Managing Workspaces

Create, rename, switch, and delete workspaces from Settings → Workspaces in the dashboard. All users can create unlimited workspaces.

Deleting a workspace permanently removes all its content, connections, and settings. This cannot be undone.

Authentication

How to authenticate with the PowerPost API using API keys.

Input Types

Generate content from text, images, or video.

On this page

What's Workspace-ScopedWhat's Account-LevelUsing Workspaces with the APIWhich endpoints need itFinding your workspace IDErrorsManaging Workspaces