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

psk_live_<random_secret>
  • 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

X-API-Key: psk_live_YOUR_KEY
Alternative (same behavior):
Authorization: Bearer psk_live_YOUR_KEY

Key metadata

Listed keys expose (never the full secret):
FieldDescription
idKey row UUID
key_prefixFirst 8 characters for identification
workspace_idBound workspace
scopeAccess restriction string
nameHuman label
created_atCreation timestamp

API key scopes

Set scope when creating a key. Enforced on OAuth and platform-specific routes.
ScopeAccess
linkedin_onlyDefault — LinkedIn OAuth and posting only
linkedin_postsRead-onlyGET /unified/posts only (optional stats via query params)
linkedin,instagramComma-separated platform allowlist for OAuth connect and posting
fullAll platforms the workspace supports

Examples

{ "name": "Analytics dashboard", "scope": "linkedin_posts" }
{ "name": "LI + IG automation", "scope": "linkedin,instagram" }
{ "name": "Full automation", "scope": "full" }
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

aaa01a56-e769-44a6-87bf-cf6dfb9e7a27
  • 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.
SlugNetworkAliases
linkedinLinkedIn
instagramInstagram
facebookFacebook
threadsThreads
tiktokTikTok
youtubeYouTube
pinterestPinterest
blueskyBluesky
allAll supported (generators)Content/image generators only

Page and organization IDs

FieldUsed for
page_idFacebook Page ID or LinkedIn organization ID
facebook_page_idFacebook Page in comments/replies/overrides
linkedin_organization_idLinkedIn company page in comments/replies/overrides
Pass when posting or generating for Page/org context instead of personal profiles.

Media ID

286fa0a8-0a35-4cd4-a43d-2f7cd61b6242
  • 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.
PlatformID formatNotes
LinkedInURN or activity ide.g. urn:li:activity:123 — org posts may need org context
InstagramMedia id stringFrom Graph API
Facebook{page_id}_{post_id} compositePage-scoped
YouTubeVideo id11-character id
ThreadsThread/post idPlatform-specific string
Blueskyat:// URIPost and comment URIs
TikTokVideo idFrom TikTok API

Query usage

GET /unified/comments?post_id=POST_ID&platform=linkedin
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.
GET /unified/comments/reply?platform=instagram&comment_id=17841405793187218&text=Thanks!
PlatformNotes
LinkedInComment URN
InstagramComment id from Graph API
FacebookComment id (with facebook_page_id when required)
YouTubeComment thread id
ThreadsComment id; use post_id = comment id for top-level thread listing
Blueskyat:// URI for parent comment
TikTokComment id
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:
ValueSurface
websiteWebsite embedded chat / API
mobileMobile app agent
whatsappWhatsApp agent
instagram_dmInstagram DM
facebook_messengerFacebook Messenger
Filter: ?channel=website

GPT Actions operation IDs

Tool names match MCP (snake_case):
get_accounts
publish
idea_to_content
disconnect_gpt_connector

Path pattern:
POST /unified/gpt-actions/{operationId}
OpenAPI: GET /openapi/chatgpt-actions.json

Quick reference

ID typeExampleWhere used
API keypsk_live_abc…X-API-Key header
WorkspaceUUIDJWT header, query params
MediaUUIDPosting, agent chat, image generate
PostPlatform stringComments, analytics refresh
CommentPlatform stringReply endpoints
Page/orgNumeric or URNFacebook Pages, LinkedIn orgs

Next

Authentication

Headers and plan gates

Workspaces

Workspace model

Plans

Pro requirements for API keys