Skip to main content
Postsiva APIs use consistent identifiers for workspaces, keys, platforms, media, posts, and comments. This page is the reference for automation and MCP/GPT integrations.

Workspace API keys

Format

  • Prefix: psk_live_
  • Scoped to one workspace
  • Created in app Settings → API Keys or POST /workspaces/{workspace_id}/api-keys (JWT, Pro plan)
  • Secret shown once at creation; store securely

Usage

Alternative (same behavior):

Key metadata

Listed keys expose (never the full secret):

API key scopes

Set scope when creating a key. Enforced on OAuth and platform-specific routes.

Examples

A linkedin_only key cannot connect Instagram or call Instagram posting routes — you’ll get 403.
OAuth routes validate scope against requested platform values.

Workspace ID

  • UUID v4
  • Required as X-Workspace-Id header when using JWT auth
  • Optional with API keys (workspace inferred from key; if sent, must match)
  • Required query param on some routes: ?workspace_id=... (AI generate endpoints)
Find workspace IDs in app URLs or GET /workspaces (JWT).

Platform slugs

Lowercase strings used in platforms arrays and tool arguments.

Page and organization IDs

Pass when posting or generating for Page/org context instead of personal profiles.

Media ID

  • UUID from unified media library (POST /media/upload)
  • Returned by POST /unified/image/generate as media_id
  • Use in posting: default_image_id, video_id, or agent chat image_media_id / video_media_id
Media is workspace-scoped — keys from workspace A cannot reference media from workspace B.

Post IDs

Platform-native identifiers returned by GET /unified/posts and used in comments APIs.

Query usage

For get_comments MCP tool: pass post_id + platform to target one post; omit for recent-posts dashboard mode.

Comment ID

Platform-native comment identifier for replies.
MCP reply_to_comment resolves post context from synced comment rows when possible (except YouTube/Instagram/Bluesky edge cases — pass ids explicitly).

Agent chat channel values

Stored in turn_json.channel for GET /user-agent-chats: Filter: ?channel=website

GPT Actions operation IDs

Tool names match MCP (snake_case):
Path pattern:
OpenAPI: GET /openapi/chatgpt-actions.json

Quick reference

Next

Authentication

Headers and plan gates

Workspaces

Workspace model

Plans

Pro requirements for API keys