Skip to main content
Use Publora through Corsair: one client, typed API calls, local DB sync, and incoming webhooks. Create an API key on the API page of the Publora dashboard. The plugin sends it as x-publora-key. The free Starter plan includes the API (every network except X); X and webhooks need a paid plan. Things to know:
  • Accounts are the targets. accounts.list returns each connection’s platformId (linkedin-ABC123) and connectionStatus. Pass the ids in platforms to posts.create, and only post to connections whose status is active. Instagram, TikTok and YouTube need an image or a video.
  • Draft, schedule or now. posts.create without scheduledTime or publishNow saves a draft. A future ISO-8601 scheduledTime schedules it. publishNow: true publishes right away. The reply’s scheduledTime is the time actually stored.
  • Check the plan first. accounts.getContext returns the monthly and scheduled post quotas and the latest date a post can be scheduled. A post over a limit is refused with a code such as POST_LIMIT_REACHED or SCHEDULE_HORIZON_REACHED.
  • Media. Public https files go in mediaUrls. For a local file, create a draft, call media.createUpload with its postGroupId, PUT the bytes to uploadUrl with the same Content-Type, then schedule the post with posts.update.
  • Retries do not double-post. Pass idempotencyKey (sent as Idempotency-Key) to posts.create or posts.update: a repeat with the same body within 24 hours returns the first result. After a 5xx or network error the plugin retries reads only.
  • One post, many networks. posts.get returns the group’s status and, under posts, each network’s status, postedId and permalink.
  • Editing. posts.update works on drafts and scheduled posts. platforms replaces the whole target list; every other field is a patch.
  • Webhooks. webhooks.create subscribes an HTTPS URL to post.scheduled, post.published, post.failed and post.demoted; the reply is the only time its signing secret is shown. Store it with keys.set_webhook_signature (or the webhookSecret option) and the plugin verifies each delivery’s X-Publora-Signature before handling it.
  • Paging. posts.list takes page (from 1) and limit (up to 100); pagination.hasNextPage says whether to ask for the next page.
  • Before scheduling. accounts.getPlatformLimits returns the per-network limits Publora checks, accounts.testConnection checks one connection, and posts.getLogs shows why a post failed.
  • Analytics. analytics.postStatistics and analytics.profileStatistics cover Mastodon and Bluesky; the linkedin.* statistics cover posts, accounts, profile and followers. They need a plan with analytics and are cached for about 2 hours.
  • LinkedIn engagement. linkedin.createComment, linkedin.reshare and linkedin.addReaction act publicly as the connected account. Comments and reshares are published at once.
  • Agency (Company) API. Start with company.listContexts, pick a Workspace and pass its id as workspaceId to every company.* operation. Drafts never schedule themselves: company.posts.createDraft, then company.posts.schedule. company.posts.requestApproval returns a private reviewUrl for the client; Publora does not send it. Company commands take an idempotencyKey; the plugin generates one when it is left out.
What you get:
  • 57 typed API operations
  • 2 synced entities (accounts, posts) for fast .search() / .list()
  • 4 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List connected social accounts
Schedule a post to one account
See the full list on the API page.

Query synced data

Synced entities support tenant.publora.db.<entity>.search() and .list(): accounts, posts. See Database for filters and operators.

Webhooks

This plugin registers 4 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then use webhookHooks on the plugin factory. See Webhooks for every event path and payload shape, and Webhooks concept for routing.

What’s next

API reference

Every publora.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Webhooks

Event paths, payloads, and webhookHooks examples.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.