API docs

Upload, schedule and publish from your own code.

Base URL https://api.publedia.com. OpenAPI document

Get an API key

  1. Sign in as a workspace admin.
  2. Open Settings, Developers, then API keys.
  3. Create a key. Pick its access and an expiry of 30, 90 or 365 days.
  4. Copy it. It starts with pbd_sk_ and is shown once.

A key adds no allowance of its own: your plan limits apply. Rotate or revoke a key on the same page.

Authentication and scopes

Send the key as Authorization: Bearer pbd_sk_.... A key works in one workspace and never does more than the admin who owns it. Keep it on a server: browser requests from other sites are refused.

ScopeAllows
readRead posts, media, channels, analytics, comments and settings
media_uploadUpload files
post_draftCreate and edit drafts and tags
post_scheduleSchedule, queue and unschedule posts
post_publishPublish posts immediately
post_retryRetry failed posts
post_cancelCancel posts
inbox_replyReply to comments
automation_pausePause and resume automations

Keys cannot manage members, channels, billing, keys or webhooks, or read private messages.

Quick start

These commands need curl and jq. Run them in order in one shell.

Set your key

Shell

export PUBLEDIA_API="https://api.publedia.com"
export PUBLEDIA_API_KEY="pbd_sk_your_key"

Pick a channel

curl

curl -s "$PUBLEDIA_API/channels" -H "Authorization: Bearer $PUBLEDIA_API_KEY"

CHANNEL_ID=$(curl -s "$PUBLEDIA_API/channels" -H "Authorization: Bearer $PUBLEDIA_API_KEY" | jq -r '.data[0].id')

Upload media

Uploading needs the media_upload scope. Start the upload, send the file by PUT to the returned URL, then confirm it. The example uses a 1080 by 1080 PNG named photo.png.

1. Start the upload

FILE="photo.png"
SIZE=$(wc -c < "$FILE" | tr -d ' ')

UPLOAD=$(curl -s -X POST "$PUBLEDIA_API/media/upload-intent" \
  -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"photo.png","mime_type":"image/png","size_bytes":'"$SIZE"'}' \
  | jq '.data')
2. Send the file

curl -s --fail -X PUT "$(echo "$UPLOAD" | jq -r '.upload_url')" \
  -H "Content-Type: image/png" \
  --data-binary @"$FILE"
3. Confirm it

MEDIA=$(curl -s -X POST "$PUBLEDIA_API/media/confirm" \
  -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"object_key":'"$(echo "$UPLOAD" | jq '.object_key')"',
       "mime_type":"image/png","size_bytes":'"$SIZE"',"width":1080,"height":1080}' \
  | jq '.data')
MEDIA_ID=$(echo "$MEDIA" | jq -r '.id')
OBJECT_KEY=$(echo "$MEDIA" | jq -r '.object_key')

Create a draft

curl

POST_ID=$(curl -s -X POST "$PUBLEDIA_API/posts" \
  -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format":"image","caption":"Hello from the API",
       "destinations":[{"channel_id":"'"$CHANNEL_ID"'",
         "media":[{"object_key":"'"$OBJECT_KEY"'","media_asset_id":"'"$MEDIA_ID"'",
           "mime_type":"image/png","width":1080,"height":1080}]}]}' \
  | jq -r '.data.posts[0].id')

Schedule it

Use any future time. Without post_publish, a key schedules at least 15 minutes ahead.

Schedule

SCHEDULE_AT="2027-06-01T09:00:00Z"

curl -s -X POST "$PUBLEDIA_API/posts/$POST_ID/schedule" \
  -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_at":"'"$SCHEDULE_AT"'"}'
Back to draft

curl -s -X POST "$PUBLEDIA_API/posts/$POST_ID/unschedule" -H "Authorization: Bearer $PUBLEDIA_API_KEY"

Publish now

Publishing is public and cannot be taken back once it starts. With hold_seconds (up to 60), call unschedule before the time runs out to stop it. A key cannot publish or schedule a TikTok post set to post directly: do that in the app.

curl

curl -s -X POST "$PUBLEDIA_API/posts/$POST_ID/publish?hold_seconds=60" -H "Authorization: Bearer $PUBLEDIA_API_KEY"

The same in JavaScript

Node 18 or later, saved as schedule.mjs.

JavaScript

import { readFile } from "node:fs/promises";

const API = process.env.PUBLEDIA_API ?? "https://api.publedia.com";
const auth = { Authorization: `Bearer ${process.env.PUBLEDIA_API_KEY}` };

async function api(path, { body, headers, ...init } = {}) {
  const response = await fetch(API + path, {
    ...init,
    headers: { ...auth, "Content-Type": "application/json", ...headers },
    body: body && JSON.stringify(body),
  });
  const text = await response.text();
  if (!response.ok) throw new Error(`${response.status} ${text}`);
  return JSON.parse(text);
}

const file = await readFile("photo.png");
const details = { mime_type: "image/png", size_bytes: file.length };

const { data: upload } = await api("/media/upload-intent", {
  method: "POST",
  body: { filename: "photo.png", ...details },
});
const sent = await fetch(upload.upload_url, {
  method: "PUT",
  headers: { "Content-Type": details.mime_type },
  body: file,
});
if (!sent.ok) throw new Error(`upload failed: ${sent.status}`);
const { data: stored } = await api("/media/confirm", {
  method: "POST",
  body: { object_key: upload.object_key, ...details, width: 1080, height: 1080 },
});

const channels = await api("/channels");

const draft = await api("/posts", {
  method: "POST",
  body: {
    format: "image",
    caption: "Hello from the API",
    destinations: [
      {
        channel_id: channels.data[0].id,
        media: [
          {
            object_key: stored.object_key,
            media_asset_id: stored.id,
            mime_type: stored.mime_type,
            width: 1080,
            height: 1080,
          },
        ],
      },
    ],
  },
});

const postId = draft.data.posts[0].id;
await api(`/posts/${postId}/schedule`, {
  method: "POST",
  body: { scheduled_at: "2027-06-01T09:00:00Z" },
});
console.log("scheduled", postId);

Read results

Publishing happens in the background. Read the post until its status settles, or use webhooks.

One post

curl -s "$PUBLEDIA_API/posts/$POST_ID" -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  | jq '.data.post | {status, scheduled_at, published_at, permalink, error_message}'
Scheduled posts

curl -s "$PUBLEDIA_API/posts?status=scheduled&sort=soonest&page_size=20" -H "Authorization: Bearer $PUBLEDIA_API_KEY"
Analytics

curl -s "$PUBLEDIA_API/analytics/summary?from=2027-01-01&to=2027-01-31" -H "Authorization: Bearer $PUBLEDIA_API_KEY"

When an X post has to be posted by hand

Some failed X posts can be posted by you on X. This needs post_retry. First stop the automatic retry, post it, then record the link.

Stop the retry

curl -s -X POST "$PUBLEDIA_API/posts/$FAILED_POST_ID/post-by-hand" -H "Authorization: Bearer $PUBLEDIA_API_KEY"
Mark as posted

curl -s -X POST "$PUBLEDIA_API/posts/$FAILED_POST_ID/mark-posted" \
  -H "Authorization: Bearer $PUBLEDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"permalink":"https://x.com/yourhandle/status/1234567890123456789"}'

Errors

Errors share one shape. /mcp answers with problem details instead.

Error body

{
  "error": {
    "code": "permission_denied",
    "message": "This caller cannot perform 'post_publish'.",
    "details": null
  }
}
StatusCodeMeaning
401unauthorizedNo key was sent
401invalid_api_keyThe key is wrong
403permission_deniedThe key lacks a scope
403api_key_not_allowedOnly a signed-in person can
403workspace_forbiddenAnother workspace's key
404not_foundNothing here by that id
409variesThe post's state forbids it
422validation_errorSee details for the field
429rate_limitedWait for Retry-After seconds

Rate limits

Limits are per workspace. Over one, you get status 429 and a Retry-After header.

RequestsLimit
Schedule, queue and reschedule300 per 10 minutes
Publish, retry and mark posted120 per 10 minutes
Calls to /mcp240 per 1 minute
New uploads60 per 1 minute
AI writing and reply drafts20 per 1 minute
Assistant messages30 per 1 minute
Assistant proposals120 per 1 minute

Webhooks

An admin adds a URL in Settings, Developers, Webhooks, up to 20 per workspace. The signing secret starts with whsec_ and is shown once.

  • The body is JSON with id, event, created_at, workspace_id and data.
  • Headers: X-Webhook-Signature, X-Webhook-Event, X-Webhook-Delivery, X-Webhook-Attempt.
  • Answer with a 2xx within 10 seconds. A failure is retried after 30 seconds, 2 minutes, 10 minutes, 30 minutes, 2 hours.
  • Retries repeat the delivery id, so use it to skip duplicates.

Check the signature against the raw body, before parsing it.

JavaScript

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyWebhook(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(",").map((part) => part.split("=")));
  const expected = createHmac("sha256", secret).update(`${parts.t}.`).update(rawBody).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) <= 300;
  return (
    fresh &&
    parts.v1?.length === expected.length &&
    timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected))
  );
}
EventSent when
post.scheduledA post was given a time
post.publishedA post reached the platform
post.failedThe platform refused a post
post.cancelledA scheduled post was cancelled
channel.connectedAn account finished connecting
channel.disconnectedAn account needs reconnecting
comment.receivedSomeone commented on a post
comment.repliedAn automation answered a comment
comment.reply_failedAn automation could not answer
automation.run_failedAn automation run stopped part-way
automation.approval_requestedA run waits for approval

Reference

Every endpoint an API key can call, generated from the API itself. Full request and response schemas are in the OpenAPI document. Questions? Contact us.

Posts

GET/postsList posts

One page of post groups, newest first unless sort says otherwise.

Scope read Link

  • status query: draft | queued | scheduled | publishing | published | partially_failed | failed | cancelled[]
  • tag_id query: uuid[]
  • channel_id query: uuid[]
  • scheduled_from query: date-time
  • scheduled_to query: date-time
  • object_key query: string
  • has_failed_post query: boolean
  • include_ideas query: boolean
  • search query: string
  • sort query: newest | oldest | soonest
  • page query: integer
  • page_size query: integer
POST/postsCreate post

Scope post_draft Link

  • caption body: string
  • destinations body: object[]
  • format body: text | image | carousel | video | reel | story | poll | thread
  • media body: object[]
  • media_ids body: uuid[]
  • title body: string
DELETE/posts/groups/{group_id}Delete idea

Delete an idea with its tags.

Scope post_draft Link

  • group_id path, required: uuid
GET/posts/groups/{group_id}Get group

One post group: an idea with its caption and files, or a post with its channels.

Scope read Link

  • group_id path, required: uuid
PATCH/posts/groups/{group_id}Update idea

Edit an idea's title, caption or files.

Scope post_draft Link

  • group_id path, required: uuid
  • caption body: string
  • media body: object[]
  • media_ids body: uuid[]
  • title body: string
POST/posts/groups/{group_id}/channelsAdd group channel

Scope post_draft Link

  • group_id path, required: uuid
  • caption_override body: string
  • channel_id body, required: uuid
  • format_override body: text | image | carousel | video | reel | story | poll | thread
  • media body: object[]
  • settings body: object
DELETE/posts/groups/{group_id}/channels/{channel_id}Remove group channel

Take one channel's post out of the group.

Scope post_draft Link

  • group_id path, required: uuid
  • channel_id path, required: uuid
POST/posts/tagsApply post tags

Add and remove tags across a selection of posts in one request.

Scope post_draft Link

  • add body: uuid[]
  • group_ids body, required: uuid[]
  • remove body: uuid[]
GET/posts/{post_id}Get post

One post, its group, its events, and its evergreen provenance: which category published it, and which categories are recycling it.

Scope read Link

  • post_id path, required: uuid
PATCH/posts/{post_id}Update post

Scope post_draft Link

  • post_id path, required: uuid
  • caption body: string
  • collaborators body: string[]
  • expected_updated_at body: date-time
  • first_comment body: string
  • format body: text | image | carousel | video | reel | story | poll | thread
  • link_tagging body: boolean
  • media body: object[]
  • placement body: string
  • poll body: object
  • settings body: object
  • thread body: object[]
  • title body: string
POST/posts/{post_id}/cancelCancel post

Scope post_cancel Link

  • post_id path, required: uuid
  • scope query: group | post
POST/posts/{post_id}/duplicateDuplicate post

Copy the whole post, every channel it went to, into new drafts with no time.

Scope post_draft Link

  • post_id path, required: uuid
POST/posts/{post_id}/mark-postedMark posted

Record that the owner posted a failed X post themselves: it becomes published with delivery_mode manual and is never sent.

Scope post_retry Link

  • post_id path, required: uuid
  • permalink body: string
POST/posts/{post_id}/post-by-handTake post off retry

Stop a failed X post's automatic retry so its owner can post it on X without it going out twice.

Scope post_retry Link

  • post_id path, required: uuid
POST/posts/{post_id}/publishPublish post

Publish each post in scope now.

Scope post_publish Link

  • post_id path, required: uuid
  • scope query: group | post
  • hold_seconds query: integer
POST/posts/{post_id}/queueQueue post

Put each draft in scope on the queue.

Scope post_schedule Link

  • post_id path, required: uuid
  • scope query: group | post
POST/posts/{post_id}/rescheduleReschedule post

Scope post_schedule Link

  • post_id path, required: uuid
  • scope query: group | post
  • scheduled_at body, required: date-time
POST/posts/{post_id}/retryRetry post

Scope post_retry Link

  • post_id path, required: uuid
  • scope query: group | post
POST/posts/{post_id}/scheduleSchedule post

Scope post_schedule Link

  • post_id path, required: uuid
  • scope query: group | post
  • scheduled_at body, required: date-time
POST/posts/{post_id}/unscheduleUnschedule post

Put each scheduled or queued post in scope back to draft, with no time.

Scope post_schedule Link

  • post_id path, required: uuid
  • scope query: group | post

Media

GET/albumsList albums

Scope read Link

GET/mediaList media

Scope read Link

  • album_id query: uuid
POST/media/confirmConfirm media

Finish an upload: checks the stored file and adds it to the media library.

Scope media_upload Link

  • album_id body: uuid
  • alt_text body: string
  • design_id body: uuid
  • duration_seconds body: number
  • height body: integer
  • mime_type body, required: string
  • object_key body, required: string
  • original_name body: string
  • size_bytes body, required: integer
  • width body: integer
POST/media/upload-intentCreate upload intent

Start an upload: returns the object key and the URL to send the file to by PUT.

Scope media_upload Link

  • filename body, required: string
  • mime_type body, required: string
  • size_bytes body, required: integer

Channels

GET/channelsList channels

Scope read Link

GET/channels/{channel_id}Get channel

Scope read Link

  • channel_id path, required: uuid
GET/channels/{channel_id}/healthChannel health

Scope read Link

  • channel_id path, required: uuid
GET/channels/{channel_id}/publish-optionsPublish options

What this channel's settings sheet can choose from, read live from its platform.

Scope read Link

  • channel_id path, required: uuid
  • language query: en | es | ru | tr | az
GET/channels/{channel_id}/statsChannel stats

Scope read Link

  • channel_id path, required: uuid

Channel groups

GET/channel-groupsList groups

Scope read Link

GET/channel-groups/{group_id}Get group

Scope read Link

  • group_id path, required: uuid

Tags

GET/tagsList tags

Every tag in this workspace, by name, with how many posts carry each.

Scope read Link

POST/tagsCreate tag

Create a tag.

Scope post_draft Link

  • name body, required: string
  • tone body: neutral | accent | cool | green | rose | violet | amber
DELETE/tags/{tag_id}Delete tag

Delete a tag.

Scope post_draft Link

  • tag_id path, required: uuid
PATCH/tags/{tag_id}Update tag

Rename or recolour a tag.

Scope post_draft Link

  • tag_id path, required: uuid
  • name body: string
  • tone body: neutral | accent | cool | green | rose | violet | amber

Posting times

GET/posting-schedulesList posting schedules

Every channel in this workspace that has posting times, with the week it posts on and the next instant that week produces.

Scope read Link

DELETE/posting-schedules/{channel_id}Delete posting schedule

Remove a channel's posting times, so it has no queue.

Scope post_schedule Link

  • channel_id path, required: uuid
GET/posting-schedules/{channel_id}Get posting schedule

One channel's posting times, or null when it has none.

Scope read Link

  • channel_id path, required: uuid
PUT/posting-schedules/{channel_id}Replace posting schedule

Replace a channel's posting times.

Scope post_schedule Link

  • channel_id path, required: uuid
  • day_selector body, required: object
  • times_of_day body, required: string[]
GET/posting-schedules/{channel_id}/slotsList upcoming slots

The next slots this channel's week produces, each marked free or carrying the post that occupies it.

Scope read Link

  • channel_id path, required: uuid
  • count query: integer

Analytics

GET/analytics/postsList post analytics

Published posts in a date range with their most recent metric reading.

Scope read Link

  • from query: date
  • to query: date
  • platform query: x | linkedin | facebook | instagram | tiktok | youtube | bluesky | threads[]
  • channel_id query: uuid[]
  • post_id query: uuid[]
  • sort query: published_at | engagement | engagement_rate | impressions | views | likes | comments | shares | saves | clicks
  • order query: asc | desc
  • page query: integer
  • page_size query: integer
  • timezone query: string
GET/analytics/summaryAnalytics summary

Metric totals and a per-channel split over the same filters as /analytics/posts, with no paging.

Scope read Link

  • from query: date
  • to query: date
  • platform query: x | linkedin | facebook | instagram | tiktok | youtube | bluesky | threads[]
  • channel_id query: uuid[]
  • timezone query: string
GET/analytics/timeseriesAnalytics over time

The same totals as /analytics/summary, split by the local day each post published.

Scope read Link

  • from query: date
  • to query: date
  • platform query: x | linkedin | facebook | instagram | tiktok | youtube | bluesky | threads[]
  • channel_id query: uuid[]
  • metric query: engagement | impressions | views | likes | comments | shares | saves | clicks[]
  • interval query: day | week
  • timezone query: string

Dashboard

GET/dashboard/summaryGet summary

Omit timezone to read the day grid in the workspace's own zone.

Scope read Link

  • timezone query: string

Inbox

GET/inbox/auto-answer-suggestionAuto answer suggestion

Scope read Link

GET/inbox/commentsList comments

One page of top-level comments with single-level nested replies, latest activity first.

Scope read Link

  • status query: open | handled
  • platform query: x | linkedin | facebook | instagram | tiktok | youtube | bluesky | threads
  • channel_id query: uuid
  • post_id query: uuid
  • flagged query: boolean
  • page query: integer
  • page_size query: integer
POST/inbox/comments/{comment_id}/hideHide comment

Hide one comment on the remote platform.

Scope inbox_reply Link

  • comment_id path, required: uuid
POST/inbox/comments/{comment_id}/replyReply to comment

Send a public reply or direct message in answer to one comment.

Scope inbox_reply Link

  • comment_id path, required: uuid
  • body body, required: string
  • destination body: public_comment | direct_message
POST/inbox/comments/{comment_id}/statusUpdate comment status

Mark a comment handled or reopen it for triage.

Scope inbox_reply Link

  • comment_id path, required: uuid
  • status body, required: open | handled
POST/inbox/comments/{comment_id}/suggested-replySuggest reply

Drafts a reply to one comment in the brand's voice, for a person to edit before sending.

Scope inbox_reply Link

  • comment_id path, required: uuid
POST/inbox/comments/{comment_id}/unhideUnhide comment

Unhide one previously hidden comment on the remote platform.

Scope inbox_reply Link

  • comment_id path, required: uuid
GET/inbox/saved-repliesList saved replies

Every saved reply in this workspace, by name.

Scope read Link

POST/inbox/saved-repliesCreate saved reply

Save a reply for reuse.

Scope inbox_reply Link

  • body body, required: string
  • name body, required: string
DELETE/inbox/saved-replies/{saved_reply_id}Delete saved reply

Delete a saved reply.

Scope inbox_reply Link

  • saved_reply_id path, required: uuid
PATCH/inbox/saved-replies/{saved_reply_id}Update saved reply

Rename or rewrite a saved reply.

Scope inbox_reply Link

  • saved_reply_id path, required: uuid
  • body body: string
  • name body: string
GET/inbox/summaryGet summary

Open top-level comments and open conversations, for the workspace and per channel.

Scope read Link

Automations

GET/automationsList automations

Automations in this workspace.

Scope read Link

  • status query: active | paused | archived
  • kind query: evergreen | flow | comment | message | inbox
  • post_id query: uuid
  • exclude_archived query: boolean
  • page query: integer
  • page_size query: integer
GET/automations/countsCount automations

How many automations this workspace has in each kind and status, zeros included, so a screen can label its tabs without paging every list.

Scope read Link

GET/automations/suspended-runsList suspended runs

Runs paused at an approval gate in suspend mode, waiting for a decision.

Scope read Link

  • automation_id query: uuid
GET/automations/{automation_id}Get automation

Scope read Link

  • automation_id path, required: uuid
POST/automations/{automation_id}/pausePause automation

Scope automation_pause Link

  • automation_id path, required: uuid
POST/automations/{automation_id}/resumeResume automation

Scope automation_pause Link

  • automation_id path, required: uuid

Designs

GET/designsList designs

Scope read Link

GET/designs/{design_id}Get design

Scope read Link

  • design_id path, required: uuid
GET/designs/{design_id}/renders/{render_id}Get render

Scope read Link

  • design_id path, required: uuid
  • render_id path, required: uuid
GET/designs/{design_id}/variation-setsList variation sets

Every variation set built from this design, newest first.

Scope read Link

  • design_id path, required: uuid
GET/designs/{design_id}/variation-sets/{set_id}Get variation set

How a variation set is going: which variants are waiting, running, done, or failed, and why.

Scope read Link

  • design_id path, required: uuid
  • set_id path, required: uuid

Repurposing

GET/repurpose/jobsList jobs

This workspace's repurpose jobs, newest first, one page at a time.

Scope read Link

  • page query: integer
  • page_size query: integer
GET/repurpose/jobs/{job_id}Get job

Scope read Link

  • job_id path, required: uuid

Notifications

GET/notificationsGet notifications

What this workspace has to hear about: failed posts, channels that stopped authenticating, runs waiting for approval, and the past week of posts published and members joined.

Scope read Link

Workspace

GET/workspaces/{workspace_id}/brandGet brand

The brand this workspace posts as: name, kind, category, description, website, logo, colour, and tone.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/deletionGet workspace deletion

Whether this workspace is scheduled for deletion and when, whether asking would delete it at once (it holds nothing) or schedule it, and whether the caller may ask or cancel.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/feature-preferencesGet feature preferences

Which optional feature groups this workspace shows.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/gateway-appsList platform apps

Every platform this workspace may publish on an app of its own, and whether it brought one.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/membersList members

Everyone in this workspace, oldest membership first.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/notification-preferencesGet notification preferences

What the caller wants to hear about in this workspace.

Scope read Link

  • workspace_id path, required: uuid
PUT/workspaces/{workspace_id}/notification-preferencesReplace notification preferences

Replace the caller's notification settings for this workspace.

Scope read Link

  • workspace_id path, required: uuid
  • events body: object[]
GET/workspaces/{workspace_id}/settingsGet workspace settings

Workspace-wide settings that are not brand facts: the timezone every posting week is read in, plus what setup was told this workspace is for and what it starts from.

Scope read Link

  • workspace_id path, required: uuid
GET/workspaces/{workspace_id}/usageGet usage

What this workspace is using against the plan it is on: connected accounts, seats, posts published this month, media storage in bytes, and automations.

Scope read Link

  • workspace_id path, required: uuid

Integrations

GET/integrations/lundotGet Lundot

This workspace's Lundot connection: its status, the Lundot workspace it reaches, the granted scopes and each site with its sign-up goal and tagging switch.

Scope read Link

Assistant

POST/ai/chatChat

Ask the assistant about this workspace.

Scope read Link

  • conversation_id body: uuid
  • message body, required: string
  • route body: string
GET/ai/conversationsList conversations

The caller's recent assistant conversations, most recently used first.

Scope read Link

POST/ai/conversationsCreate conversation

Reserve a conversation id ahead of the first message, for a client that needs the real id before it can persist anything locally.

Scope read Link

  • route body: string
GET/ai/conversations/{conversation_id}Get conversation

Every turn in one of the caller's conversations, oldest first.

Scope read Link

  • conversation_id path, required: uuid
GET/ai/conversations/{conversation_id}/proposalsList proposals

Changes the assistant suggested in this conversation that are still waiting for a decision.

Scope read Link

  • conversation_id path, required: uuid
POST/ai/fieldsGenerate field

Writes one automation or composer field from the brand and the content already around it.

Scope post_draft Link

  • context body: string
  • count body: integer
  • kind body, required: automation_name | brand_description | caption | themes | hashtags | call_to_action | rewrite_instructions | blocked_topics | video_hook | video_body
  • tone body: casual | professional | playful | authoritative
POST/ai/proposals/{proposal_id}/applyApply proposal

Carry out a change the assistant suggested.

Scope read Link

  • proposal_id path, required: uuid
POST/ai/proposals/{proposal_id}/declineDecline proposal

Turn down a suggested change.

Scope read Link

  • proposal_id path, required: uuid
POST/ai/proposals/{proposal_id}/undoUndo proposal

Put the workspace back as it was before an applied change.

Scope read Link

  • proposal_id path, required: uuid
GET/ai/settingsGet assistant settings

Workspace AI governance: whether the in-app assistant renders, whether external MCP clients are accepted, and this month's token spend against the configured ceiling.

Scope read Link