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.listreturns each connection’splatformId(linkedin-ABC123) andconnectionStatus. Pass the ids inplatformstoposts.create, and only post to connections whose status isactive. Instagram, TikTok and YouTube need an image or a video. - Draft, schedule or now.
posts.createwithoutscheduledTimeorpublishNowsaves a draft. A future ISO-8601scheduledTimeschedules it.publishNow: truepublishes right away. The reply’sscheduledTimeis the time actually stored. - Check the plan first.
accounts.getContextreturns 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 asPOST_LIMIT_REACHEDorSCHEDULE_HORIZON_REACHED. - Media. Public https files go in
mediaUrls. For a local file, create a draft, callmedia.createUploadwith itspostGroupId, PUT the bytes touploadUrlwith the same Content-Type, then schedule the post withposts.update. - Retries do not double-post. Pass
idempotencyKey(sent asIdempotency-Key) toposts.createorposts.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.getreturns the group’sstatusand, underposts, each network’s status,postedIdandpermalink. - Editing.
posts.updateworks on drafts and scheduled posts.platformsreplaces the whole target list; every other field is a patch. - Webhooks.
webhooks.createsubscribes an HTTPS URL topost.scheduled,post.published,post.failedandpost.demoted; the reply is the only time its signing secret is shown. Store it withkeys.set_webhook_signature(or thewebhookSecretoption) and the plugin verifies each delivery’sX-Publora-Signaturebefore handling it. - Paging.
posts.listtakespage(from 1) andlimit(up to 100);pagination.hasNextPagesays whether to ask for the next page. - Before scheduling.
accounts.getPlatformLimitsreturns the per-network limits Publora checks,accounts.testConnectionchecks one connection, andposts.getLogsshows why a post failed. - Analytics.
analytics.postStatisticsandanalytics.profileStatisticscover Mastodon and Bluesky; thelinkedin.*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.reshareandlinkedin.addReactionact 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 asworkspaceIdto everycompany.*operation. Drafts never schedule themselves:company.posts.createDraft, thencompany.posts.schedule.company.posts.requestApprovalreturns a privatereviewUrlfor the client; Publora does not send it. Company commands take anidempotencyKey; the plugin generates one when it is left out.
- 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
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Publora API key before the first call: More: API Key
pnpm corsair setup --plugin=publora --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.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 accountsQuery synced data
Synced entities supporttenant.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 usewebhookHooks 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.