For developers

The Tublish API

A program can work in a Tublish account the way an assistant does through MCP.
It can post to your platforms, send videos, write articles and newsletters, change your card and website, and read your numbers.
The API is part of the Pro and Business plans.

Language of the examples

Start here

Make a key on the API keys screen in Tublish.
It's in the menu under your name.
Every request carries it in the Authorization header.
The examples on this page read it from an environment variable, TUBLISH_KEY, so a key is never typed into a script:

curl https://tublish.com/api/v1/account \
  -H "Authorization: Bearer $TUBLISH_KEY"

Every answer is JSON.
A request that changes something sends a JSON body, with Content-Type: application/json.
A key never goes in the address, because logs keep addresses.
Tublish refuses a request that tries, and asks for a new key.

About the examples

Every example on this page is a real request and the answer Tublish really gave it.
They were sent to a test account, a cooking Space called myname, so its ids and times are the test's own.
The JavaScript examples run in Node 18 or later, in a module (a .mjs file).
The Python examples use only Python's own library, so there is nothing to install (Python 3.8 or later).

About the descriptions

Each address runs the same tool Claude or ChatGPT runs when it is connected to Tublish (MCP, the Model Context Protocol), and shares its description.
Where one says "the person", it means the account's owner.
Anything about a Send block, or about letting an assistant send without asking, is about chats: a program's request goes out at once.

Postman

Postman is a free app for trying an API without writing code.
Our Postman file holds every address on this page, ready to send, with each example's answer saved beside it.

  1. Download the file below.
  2. In Postman, press Import and drop the file in.
  3. Open the Tublish API collection and its Variables tab.
  4. Put your API key in tublishKey and your Space's name (the part before .tublish.com) in space, then save.

Download the Postman file

Every request then sends your key by itself.
A request that changes something really changes it, the moment you press Send.
An upload takes two requests: the first gets a one-time address, and the second, right under it, sends the file there.

Read-only keys

A key made with Read only can call the addresses marked Read-only key below, and nothing else.
Anything else answers 403 with API-14.

Limits

Each account may send 60 requests a minute, however many keys it holds.
A day holds 2,000 requests on Pro and 10,000 on Business, counted from 00:00 UTC.
Past either one, the answer is 429, and Retry-After says how many seconds to wait.
The plan's own limits stand as they do on the screens: a Space's posts, its platforms, its articles.

Sending twice by accident

Zapier, Make and n8n send a request again when it timed out.
Add an Idempotency-Key header to anything that is not a GET (any 1 to 255 visible characters).
The same key with the same request gets the first answer back, and nothing is done twice.

curl -X POST https://tublish.com/api/v1/spaces/myname/todos \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: film-the-intro-1" \
  -d '{"text": "Film the intro"}'

When Tublish says no

A refusal is an HTTP status and a body like the one below, with the reason in English.
These are the codes Tublish itself uses before an address runs.
An address's own refusals carry their own sentence, under API-18, API-19 or API-20.

{
  "error": {
    "code": "API-14",
    "message": "This key may only read, and this address changes something."
  }
}
CodeStatusWhat it means
API-01401Send your Tublish API key in the Authorization header: Authorization: Bearer tub_...
API-02401This API key is not valid. It may have been deleted - make a new one in Tublish.
API-03400An API key never goes in the address, where logs keep it. Send it in the Authorization header - and since this one may now be in a log somewhere, delete it in Tublish and make a new one.
API-04403The Tublish API is part of the Pro and Business plans, and this account's plan does not hold it.
API-05429Too many requests this minute. Wait for the time in Retry-After, then send again.
API-06429This account has used today's requests. They start again at 00:00 UTC (Retry-After says when).
API-07404There is no such address in the Tublish API.
API-08405This address does not take that method - the Allow header lists the ones it takes.
API-09415Send the body as JSON, with Content-Type: application/json.
API-10413The body is larger than the Tublish API reads.
API-11400The body is not a JSON object.
API-12400Unknown field.
API-13400A value in the address and the same field in the request disagree.
API-14403This key may only read, and this address changes something.
API-15400Idempotency-Key must be 1 to 255 visible characters.
API-16422This Idempotency-Key was already used for a different request. Use a new key for a new request.
API-17409The first request with this Idempotency-Key is still being worked on. Ask again in a moment.
API-18400The request's values are not valid.
API-19404Not found.
API-20422Tublish refused this.
API-21500Tublish could not answer this request. Nothing more is known yet - try again in a while.
API-22421The Tublish API answers at https://tublish.com/api/v1.
API-23409The first request with this Idempotency-Key was done, but its answer was too large to keep. It is not done again - read the result with a GET.

The OpenAPI file

openapi.json is this whole page written for programs to read.
It uses OpenAPI 3.1, the usual way to describe an API, so many tools understand it.
You don't need it to use the API - it only saves typing:

  • Insomnia or Bruno import it, and every address is ready to try (for Postman, its own file above is easier).
  • A code generator, like openapi-generator, turns it into a ready-made library for your language.
  • A coding assistant you give it learns every address and field at once.

Zapier, Make and n8n don't need it either.
Their own HTTP step calls any address on this page with your key.

https://tublish.com/api/v1/openapi.json

It describes the addresses and what each one takes - nothing about any account, and no key.
Every address still refuses a request without a valid key.

Your account

GET/account

Your Tublish account

Read-only key

The Tublish account this assistant is connected to: its name, its plan, and every Space in it - the Space's name, its address, and the platforms connected to it that can take a written post, each with its character limit and what it needs (a headline, a picture).

The rest of it

nothingConnected means no platform is connected to that Space yet, so nothing can be posted or sent from it until the person connects the ones they use on Tublish's Platforms screen, at the Space's platformsAt; an empty platforms with something connected means only platforms that take no written post (YouTube) are.
pictureMaxBytes is the largest picture a post can carry (JPEG, PNG or WebP), which every platform takes; picturesMax is how many pictures one post may hold, and a platform's pictures how many of them it takes - the first ones.
space is the name the other tools take.
sendsWithoutAsking says whether the person has let this assistant send posts and videos without their press on the Send block in the chat.
Every plan sends videos (GET /spaces/{space}/videos lists them); videoKeepDays is how many days Tublish keeps a stored video for sending it again - 0 means it stays only until a day after it is sent (the Free plan, where each video sent is one of the month's posts, like a written one).
newsletters says whether it can email a Space's subscribers (GET /spaces/{space}/newsletters).
A platform's by, when present, names the teammate who connected it (the person's own connections carry none).
A platform's stopped, when present, says the platform itself stopped that connection - "expired": its sign-in ended on the platform's side (or its known end date passed), "refused": it turned a post down because of the connection - since stoppedSince; posts and videos sent there will not go out until the person connects it again on the Space's Platforms screen (platformsAt), which clears it, and a send there that lands clears it too.
On WordPress, listsPosts says whether the site shows its posts in a list (its homepage or its Posts page): false means each post gets its own page that nothing on the site links to until the person picks a Posts page in WordPress (Settings, Reading), and null means Tublish does not know.
offlineByPlan, when present, lists the Spaces the plan took offline because it holds fewer Spaces than the account has: each is deleted on deletedOn unless the person chooses a bigger plan or picks which Spaces stay at pickAt; they are not in spaces, and nothing can be sent from them.
offlinePages on a Space, when present, counts the pages of its website the plan took offline because it holds fewer pages a website: GET /spaces/{space}/website marks each one, and the person picks which pages stay at pickPagesAt.
freePlanAsPartner, when present, says the person is a Tublish partner and holds that plan for free ("plus", "pro" or "max", which is Business); paying for it or anything smaller buys nothing - a subscription it covers stops renewing at the end of the period already paid for - and Plans & prices offers only the bigger plans; GET /partner reads their partner page - deals, links and money.
planFreeUntil, when present, says the account holds its plan for free until a moment (until, ISO 8601): kind "trial" is the free days every new account starts with, "gift" a plan Tublish gave it; nothing is charged, nothing needs cancelling, and when the time is up the account goes to what it pays for - the Free plan when nothing - and anything over that plan's limits goes offline and is kept for 30 days.
Choosing a plan on Plans & prices before then keeps it.
joinedWithCode, when present, is the Tublish partner's code the person joined with (entered when the account was made, typed or from the partner's link); it stays for good, and any discount it brings shows on Plans & prices and is applied at the checkout.
canUpgrade says whether a bigger plan exists for this account, and plansAt is its Plans & prices page, where a plan is chosen; postsLeftThisMonth on a Space appears on the Free plan only, and counts posts and videos alike - one send is one, whatever it carries, and a send that every platform refused is not counted (one cut off, or whose answer never came back, is, since it may have landed).
teamSpaces, when present, lists the Spaces of other people's teams this person works in: each names its owner, what the person's seat opens there (open), and the Owner's plan's facts (canSchedule, videoKeepDays, newsletters, postsLeftThisMonth), which hold there instead of this account's; the other tools take its space the same way, and refuse what the seat does not open.
sendsWaitForOk true means what goes out from that Space - posts, videos, a video's picture, articles put in front of readers, newsletters - waits on the Owner's "Waiting for your OK" list until they say yes.
A platform with no by in a team Space was connected by its Owner.
sendsOnlyTo, when present on a team Space, lists the only platform ids this person's seat may send to there - posts, videos, Autopilot rules and the Story shelf; the Owner chose them on the Teammates screen, every other platform is refused, and an empty list means none at all.
A post or video this person scheduled is checked again when it goes out: a platform the Owner has since taken off the seat is skipped and its line on the log says so.
ownSpacesClosed, when present, says this account's own plan does not open its own Spaces to assistants, so spaces is empty.
Reads only.

It takes nothing.

Example: Read the account: its plan, its Spaces and their platforms

URL

GEThttps://tublish.com/api/v1/account

Request

curl https://tublish.com/api/v1/account \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/account", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/account",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "name": "Maya Cohen",
  "plan": "max",
  "canSchedule": true,
  "pictureMaxBytes": 2000000,
  "picturesMax": 20,
  "sendsWithoutAsking": true,
  "videoKeepDays": 60,
  "newsletters": true,
  "canUpgrade": false,
  "plansAt": "https://tublish.com/dashboard/plans",
  "spaces": [
    {
      "space": "myname",
      "name": "Maya's Kitchen",
      "address": "https://myname.tublish.com",
      "cardLive": false,
      "websiteLive": false,
      "platforms": [
        {
          "id": "facebook",
          "name": "Facebook",
          "account": "Maya's Kitchen",
          "needsHeadline": false,
          "needsPicture": false,
          "pictures": 10,
          "ticked": false
        },
        {
          "id": "instagram",
          "name": "Instagram",
          "account": "@mayaskitchen",
          "maxCharacters": 2200,
          "needsHeadline": false,
          "needsPicture": true,
          "pictures": 10,
          "pictureShape": {
            "tallest": "4:5",
            "widest": "1.91:1"
          },
          "ticked": false
        },
        {
          "id": "wordpress",
          "name": "WordPress",
          "account": "mayaskitchen.example",
          "needsHeadline": true,
          "needsPicture": false,
          "pictures": 20,
          "ticked": false,
          "listsPosts": null
        }
      ],
      "platformsAt": "https://tublish.com/dashboard/s/myname/platforms"
    }
  ]
}

Your team

GET/team

Your team

Read-only key

The people this account invited to work in its Spaces: each one's name and email, whether they joined (joined), the invitation is still open (invited), it ran out (invitationRanOut), or they are on hold because the plan holds fewer teammates (onHold); the Spaces they work in; and what their seat opens there (open).

The rest of it

waitsForOk true means what they send out - posts, videos, a video's picture, articles put in front of readers, newsletters - waits for this person's OK (GET /waiting lists it); on the Pro plan it is always true, and on Business this person chooses it for each teammate.
sendsOnlyTo, when present, lists the only platform ids that teammate may send to (posts, videos, Autopilot rules and the Story shelf) - empty means none; absent means every platform, including ones connected later.
Inviting, changing or removing a teammate is done in Tublish at manageAt, and no tool does it.
Reads only.

It takes nothing.

Example: See who is on the team

URL

GEThttps://tublish.com/api/v1/team

Request

curl https://tublish.com/api/v1/team \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/team", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/team",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "teammates": [
    {
      "name": "Dana",
      "email": "dana@mayaskitchen.example",
      "status": "joined",
      "spaces": [
        {
          "space": "myname",
          "name": "Maya's Kitchen"
        }
      ],
      "open": [
        "posts, videos, Requests and the Tool Box",
        "the card, the website, the blog and the media kit"
      ],
      "waitsForOk": true
    }
  ],
  "manageAt": "https://tublish.com/dashboard/teammates"
}

Waiting for your OK

GET/waiting

Waiting for an OK

Read-only key

Requests between this person and a team.

The rest of it

which: "waiting" (the default) lists what this person's teammates sent out from a Space that waits for this person's OK, oldest first - nothing in it has gone out; which: "answered" lists what this person answered lately; which: "mine" lists what THIS person sent for an OK in other people's Spaces, and each one's answer.
Each request has its id, its kind, who asked (from) or whose OK it waits for (owner), its Space, its headline and words, the platforms it goes to, when it is meant to go out (sendAt; late true means that moment passed while it waited, so it goes out only when sent now), and where it stands (status).
(in a chat only) shows one waiting request to the person in a Send block, where only they can send it or turn it down; it can also be changed first, or answered, in Tublish at answerAt.
Reads only.

  • whichin the queryone of "waiting", "answered", "mine"

Example: What a teammate sent for your OK

URL

GEThttps://tublish.com/api/v1/waiting?which=waiting

Request

curl 'https://tublish.com/api/v1/waiting?which=waiting' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/waiting?which=waiting", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/waiting?which=waiting",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "which": "waiting",
  "requests": [
    {
      "id": "32404636-56ae-4839-89c0-14f57e9af34c",
      "kind": "A post",
      "from": "Dana Levi",
      "space": "myname",
      "spaceName": "Maya's Kitchen",
      "title": null,
      "words": "Behind the scenes: the new kitchen light is in!",
      "platforms": [
        "Facebook"
      ],
      "sendAt": "2026-12-08T15:00:00.000Z",
      "askedAt": "2026-12-02T15:22:42.343691+00:00",
      "status": "waiting"
    }
  ],
  "answerAt": "https://tublish.com/dashboard/waiting"
}

Partner page

GET/partner

Earn with Tublish

Read-only key

Where this account stands in Tublish's partner program ("Earn with Tublish"), as its Earn with Tublish page shows it.

The rest of it

A partner sends people to Tublish with their own link and earns a share of every plan they pay for - plans only, never packs.
usualDeal is the deal every approved partner gets: sharePercent of the full price of each customer's plan (counted before their discount) for as long as the customer pays, shareUpToPercent is how far that share can go, based on performance (the code stays the same: customers who join after a raise earn the higher share, and the ones from before keep earning the share they joined under), freePlan free for the partner, and discountPercent off for the customer for as long as they pay.
Say what the partner earns first; the customer's discount comes last.
A different deal is asked for in words on the page and agreed with Tublish.
status is "none" (not a partner; the person can ask to join on the page at pageAt, picking a code or leaving Tublish to make one), "asked" (askedOn; code is the code they asked for, null when Tublish makes one - it is theirs if still free when they are approved; notNow true means the answer was "not right now", which they were also told by email), or "partner".
For a partner: agreement says whether they have accepted the Partner Agreement (readAt): with needsAccepting true their links take nobody until they accept it on the page, and newerVersion true means a newer version waits for them (their links keep working).
stopped, when present, is when the partnership ended: their codes take nobody new, and every customer who already joined keeps earning them their share for as long as they pay.
forCause true means it ended under the agreement's section 9: shares not yet paid were cancelled and nothing more is earned (their customers keep their discount).
linksWork says whether their codes take new people.
Each of deals has its code, its link (the sign-up page with the code filled in), the share in per cent and for how many months of each customer (shareMonths null = for as long as they pay), the discount its customers get (viewerPercent null = none; viewerMonths null = for as long as they pay, a number applies to monthly plans), how many people opened its link (clicks, each person once a day, robots and non-browsers left out, counted from clicksFrom), and how many accounts joined with it (joined); earlier lists each share the code had before it was raised, with how many accounts joined under it and until when - those keep earning that share.
freePlan is the plan they hold free while a partner, with since; if quietMonths months pass with nobody they sent paying, it ends (they are reminded by email a month before, keep everything, and their link keeps working).
freePlanClock says where that count stands today: "paying" (somebody they sent pays, so the free plan stays) or { endsOn }, the day it ends unless somebody they sent pays for a plan first - a new count starts when the last paying customer stops.
freePlanEndedOn, when present, is the day the count ended their free plan.
A monthly report reaches them by email on the 1st.
places says where people came from: a link can name the place it was shared with a utm_source tag (tublish.com/signup?ref=CODE&utm_source=youtube - lower-case letters, digits, dot, underscore and hyphen, up to 40; the page makes these links), and each row has kind "link" (source the place, null for the plain link), "typed" (people who typed the code) or "closed" (accounts closed since, whose earnings stay), with clicks (from clicksFrom), joined, payingNow and earned per currency - totals since the partnership began, not by month.
payingNow is how many of the people they brought pay right now (count) and on which plans (byPlan: "plus", "pro", "max" - max is Business).
nextPayday, when present, is the next payday (on, the UTC day) and what will be owed by then (owed, per currency, in cents); belowMinimum true means the dollars owed are under payoutMinCents and wait for a later payday; final true means the partnership ended and nobody they brought pays, so it is paid whatever the sum; it is absent after an end for cause.
money per currency, in cents: waiting (inside the holdDays-day window kept for refunds and card disputes), owed (negative = money given back after a payout, to come off the next one), paid, cancelled; Tublish pays once a month, on day payday of the month, everything owed by then once it reaches payoutMinCents (after the partnership ended and nobody they brought pays any more, the rest is paid whatever the sum); transfer fees come off the amount sent.
months is the newest months first: how many people clicked (null for a month before clicks were counted), how many joined, how many paid, and what they earned.
payouts are payments made to them.
Who the customers are is never shown, here or on the page.
messages is the partner's conversation with Tublish on the page's Messages tab (writeAt): unread counts Tublish's answers the person has not opened there, and latest holds the newest ones first - from "you" (the partner) or "tublish", the text as written, at (ISO 8601), and on the partner's own lines read when Tublish has read them; reading them here marks nothing as read.
resources is the page's Resources tab (at), for telling people about Tublish, in the account's language: pages are Tublish's own pages (none of them carries the partner's code - only their own link counts, and a person can also type the code on the sign-up page), profiles Tublish's own social media, logo the logo files, sharePictures the picture a link to Tublish shows, in every language, colors Tublish's colors, and whatTublishDoes everything Tublish does with the plan that has each part (oneLine first) - quote it as it is, and never add a price: point to pricesAt.
The guide films are GET /guide-videos (on Tublish's YouTube channel, films.channel, in English).
Asking to join, accepting the agreement and writing to Tublish happen only on the page, by the person.
Reads only.

It takes nothing.

Example: Is this account a partner?

URL

GEThttps://tublish.com/api/v1/partner

Request

curl https://tublish.com/api/v1/partner \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/partner", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/partner",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "status": "none",
  "usualDeal": {
    "sharePercent": 20,
    "shareUpToPercent": 35,
    "discountPercent": 15,
    "freePlan": "pro"
  },
  "pageAt": "https://tublish.com/dashboard/earn",
  "programAt": "https://tublish.com/partners",
  "readAt": "https://tublish.com/partners/agreement"
}

Guide films

GET/guide-videos

Tublish's guide videos

Read-only key

Tublish's guide videos on its YouTube channel: for each screen of the Tublish dashboard, a film that shows step by step how that screen is used.

The rest of it

Each film has its title, its url on YouTube, and the screens it explains - their addresses, with <space> standing for a Space's name and <article> for an article's id; a screen with two films has them as part 1 and 2.
The films are in English, recorded on a computer.
A film that also has a version recorded on a phone lists it in phone (each with its title and url, and its part when it comes in several); on a phone or a tablet the screen's icon opens that one.
A screen that is not listed has no film yet.
Reads only.

It takes nothing.

Example: The guide films, one per screen

URL

GEThttps://tublish.com/api/v1/guide-videos

Request

curl https://tublish.com/api/v1/guide-videos \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/guide-videos", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/guide-videos",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "films": [
    {
      "title": "How to see everything about your Space at a glance in Tublish",
      "url": "https://www.youtube.com/watch?v=VXIIpxs4YWU",
      "screens": [
        "https://tublish.com/dashboard/s/<space>"
      ],
      "phone": [
        {
          "title": "How to see everything about your Space at a glance in Tublish (on mobile) - Part 1 of 2",
          "url": "https://www.youtube.com/watch?v=fnNTsdal-YQ",
          "part": 1
        },
        {
          "title": "How to see everything about your Space at a glance in Tublish (on mobile) - Part 2 of 2",
          "url": "https://www.youtube.com/watch?v=800cBbGqnHc",
          "part": 2
        }
      ]
    },
    {
      "title": "How to connect your social media accounts to Tublish",
      "url": "https://www.youtube.com/watch?v=oec1XFyOY-M",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/platforms"
      ],
      "phone": [
        {
          "title": "How to connect your social media accounts to Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=AT-IwUfSYp0"
        }
      ]
    },
    {
      "title": "How to post text and pictures to multiple social platforms at once",
      "url": "https://www.youtube.com/watch?v=Ir0id8evNbk",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/posts/write"
      ],
      "phone": [
        {
          "title": "How to post text and pictures to multiple social platforms at once (on mobile)",
          "url": "https://www.youtube.com/watch?v=M_LcLT47KtM"
        }
      ]
    },
    {
      "title": "How to see, cancel and check your scheduled and sent social media posts",
      "url": "https://www.youtube.com/watch?v=70Ybh1-pXoE",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/posts/waiting",
        "https://tublish.com/dashboard/s/<space>/posts/log"
      ],
      "phone": [
        {
          "title": "How to see, cancel and check your scheduled and sent social media posts (on mobile)",
          "url": "https://www.youtube.com/watch?v=w-JrCv2LmRk"
        }
      ]
    },
    {
      "title": "How to schedule a video upload to multiple social platforms",
      "url": "https://www.youtube.com/watch?v=NzaQs6La7Qo",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/videos/upload",
        "https://tublish.com/dashboard/s/<space>/videos/library",
        "https://tublish.com/dashboard/s/<space>/videos/waiting",
        "https://tublish.com/dashboard/s/<space>/videos/log"
      ],
      "phone": [
        {
          "title": "How to schedule a video upload to multiple social platforms (on mobile) - Part 1 of 3",
          "url": "https://www.youtube.com/watch?v=Y7SSXIrGNyE",
          "part": 1
        },
        {
          "title": "How to schedule a video upload to multiple social platforms (on mobile) - Part 2 of 3",
          "url": "https://www.youtube.com/watch?v=Hx72w7K1c3U",
          "part": 2
        },
        {
          "title": "How to schedule a video upload to multiple social platforms (on mobile) - Part 3 of 3",
          "url": "https://www.youtube.com/watch?v=efHsl68l1v4",
          "part": 3
        }
      ]
    },
    {
      "title": "How to make a free link-in-bio page in Tublish (the E-Business card)",
      "url": "https://www.youtube.com/watch?v=aeq7wYaVSRw",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/edit"
      ],
      "phone": [
        {
          "title": "How to make a free link-in-bio page in Tublish (the E-Business card) (on mobile) - Part 1 of 4",
          "url": "https://www.youtube.com/watch?v=bCRIEawB3x0",
          "part": 1
        },
        {
          "title": "How to make a free link-in-bio page in Tublish (the E-Business card) (on mobile) - Part 2 of 4",
          "url": "https://www.youtube.com/watch?v=dGVQI8Kcxak",
          "part": 2
        },
        {
          "title": "How to make a free link-in-bio page in Tublish (the E-Business card) (on mobile) - Part 3 of 4",
          "url": "https://www.youtube.com/watch?v=x5E1WmQK1Qg",
          "part": 3
        },
        {
          "title": "How to make a free link-in-bio page in Tublish (the E-Business card) (on mobile) - Part 4 of 4",
          "url": "https://www.youtube.com/watch?v=gPonPeKTIKc",
          "part": 4
        }
      ]
    },
    {
      "title": "How to make a free website in Tublish, step by step",
      "url": "https://www.youtube.com/watch?v=NXEEifMPMpw",
      "part": 1,
      "screens": [
        "https://tublish.com/dashboard/s/<space>/website"
      ],
      "phone": [
        {
          "title": "How to make a free website in Tublish, step by step (on mobile) - Part 1 of 2",
          "url": "https://www.youtube.com/watch?v=QC-8PHIoZ1Y",
          "part": 1
        },
        {
          "title": "How to make a free website in Tublish, step by step (on mobile) - Part 2 of 2",
          "url": "https://www.youtube.com/watch?v=_AnW-STvYOE",
          "part": 2
        }
      ]
    },
    {
      "title": "How to fill your free website with panels in Tublish, every kind one by one",
      "url": "https://www.youtube.com/watch?v=_OOPvLuepBw",
      "part": 2,
      "screens": [
        "https://tublish.com/dashboard/s/<space>/website"
      ],
      "phone": [
        {
          "title": "How to fill your free website with panels in Tublish, each kind one by one (on mobile) - Part 1 of 4",
          "url": "https://www.youtube.com/watch?v=i4PqLfvzTl8",
          "part": 1
        },
        {
          "title": "How to fill your free website with panels in Tublish, each kind one by one (on mobile) - Part 2 of 4",
          "url": "https://www.youtube.com/watch?v=etrTC4SYLi0",
          "part": 2
        },
        {
          "title": "How to fill your free website with panels in Tublish, each kind one by one (on mobile) - Part 3 of 4",
          "url": "https://www.youtube.com/watch?v=C41l5JAYCtM",
          "part": 3
        },
        {
          "title": "How to fill your free website with panels in Tublish, each kind one by one (on mobile) - Part 4 of 4",
          "url": "https://www.youtube.com/watch?v=0iOATKi1WEk",
          "part": 4
        }
      ]
    },
    {
      "title": "How to write and publish a blog article on your free website in Tublish",
      "url": "https://www.youtube.com/watch?v=oqTU81RAEAU",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/blog",
        "https://tublish.com/dashboard/s/<space>/blog/<article>"
      ],
      "phone": [
        {
          "title": "How to write and publish a blog article on your free website in Tublish (on mobile) - Part 1 of 3",
          "url": "https://www.youtube.com/watch?v=VBBpwNf4B0Q",
          "part": 1
        },
        {
          "title": "How to write and publish a blog article on your free website in Tublish (on mobile) - Part 2 of 3",
          "url": "https://www.youtube.com/watch?v=VuTgdXNaQ20",
          "part": 2
        },
        {
          "title": "How to write and publish a blog article on your free website in Tublish (on mobile) - Part 3 of 3",
          "url": "https://www.youtube.com/watch?v=JuBiSLI_UeA",
          "part": 3
        }
      ]
    },
    {
      "title": "How to see who visits your link-in-bio and website, and what they tap, in Tublish",
      "url": "https://www.youtube.com/watch?v=tPfycFvzfAE",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/analytics",
        "https://tublish.com/dashboard/s/<space>/analytics/audience",
        "https://tublish.com/dashboard/s/<space>/analytics/pages",
        "https://tublish.com/dashboard/s/<space>/analytics/taps",
        "https://tublish.com/dashboard/s/<space>/analytics/not-counted"
      ],
      "phone": [
        {
          "title": "How to see who visits your link-in-bio and website, and what they tap (on mobile) - Part 1 of 2",
          "url": "https://www.youtube.com/watch?v=svoiY1VvTBY",
          "part": 1
        },
        {
          "title": "How to see who visits your link-in-bio and website, and what they tap (on mobile) - Part 2 of 2",
          "url": "https://www.youtube.com/watch?v=zVsTJbZXfgY",
          "part": 2
        }
      ]
    },
    {
      "title": "How to collect email subscribers from your link-in-bio and website in Tublish",
      "url": "https://www.youtube.com/watch?v=fZCFDCip3QI",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/subscribers"
      ],
      "phone": [
        {
          "title": "How to collect email subscribers from your link-in-bio and website in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=V0g0fximgYI"
        }
      ]
    },
    {
      "title": "How to read and answer the messages people send from your link-in-bio and website",
      "url": "https://www.youtube.com/watch?v=gn2QGk_waCg",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/messages"
      ],
      "phone": [
        {
          "title": "How to read and answer the messages people send from your link-in-bio and website (on mobile)",
          "url": "https://www.youtube.com/watch?v=xBjF_PSGFMw"
        }
      ]
    },
    {
      "title": "How to make a media kit for brands, with your real numbers, in Tublish",
      "url": "https://www.youtube.com/watch?v=P2VX0uCZOGs",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/kit"
      ],
      "phone": [
        {
          "title": "How to make a media kit for brands, with your real numbers, in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=G_JjyX69oqc"
        }
      ]
    },
    {
      "title": "How to send your posts and articles to more platforms automatically, with Autopilot rules",
      "url": "https://www.youtube.com/watch?v=n-2BjbH5YRg",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/rules"
      ],
      "phone": [
        {
          "title": "How to send posts and articles to more platforms automatically, with Autopilot rules (on mobile)",
          "url": "https://www.youtube.com/watch?v=fT78XEkL7ks"
        }
      ]
    },
    {
      "title": "How to see and cancel what Autopilot will post next, in Tublish",
      "url": "https://www.youtube.com/watch?v=WLuA4XURCh8",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/waiting"
      ],
      "phone": [
        {
          "title": "How to see and cancel what Autopilot will post next, in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=VAvEGed1Nuk"
        }
      ]
    },
    {
      "title": "How to bring your best posts back out by themselves, with Autopilot's library in Tublish",
      "url": "https://www.youtube.com/watch?v=TBcNrBSSzt4",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/library"
      ],
      "phone": [
        {
          "title": "How to bring your best posts back out by themselves, with Autopilot's library in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=iUJHNg1F2Ws"
        }
      ]
    },
    {
      "title": "How to post your short videos as Stories every week, by themselves, with Autopilot in Tublish",
      "url": "https://www.youtube.com/watch?v=HltXJBjOG8A",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/stories"
      ],
      "phone": [
        {
          "title": "How to post your short videos as Stories every week, by themselves, with Autopilot (on mobile)",
          "url": "https://www.youtube.com/watch?v=jaBqSqtSAHU"
        }
      ]
    },
    {
      "title": "How to show live prices and other changing numbers on your website, with Autopilot in Tublish",
      "url": "https://www.youtube.com/watch?v=kSZrNJWsTCM",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/live-panel"
      ],
      "phone": [
        {
          "title": "How to show live prices on your website, with Autopilot in Tublish (on mobile) - Part 1 of 3",
          "url": "https://www.youtube.com/watch?v=-YARohwUIG8",
          "part": 1
        },
        {
          "title": "How to show live prices on your website, with Autopilot in Tublish (on mobile) - Part 2 of 3",
          "url": "https://www.youtube.com/watch?v=jRa9rMqNzfk",
          "part": 2
        },
        {
          "title": "How to show live prices on your website, with Autopilot in Tublish (on mobile) - Part 3 of 3",
          "url": "https://www.youtube.com/watch?v=N1_wXUUaohg",
          "part": 3
        }
      ]
    },
    {
      "title": "How to see everything Autopilot did, in Tublish's Actions Log",
      "url": "https://www.youtube.com/watch?v=bJ8GgggupOM",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/autopilot/log"
      ],
      "phone": [
        {
          "title": "How to see everything Autopilot did, in Tublish's Actions Log (on mobile)",
          "url": "https://www.youtube.com/watch?v=QEEbgzUh21M"
        }
      ]
    },
    {
      "title": "How to keep a to-do list of content ideas and tasks in Tublish",
      "url": "https://www.youtube.com/watch?v=t4wTAeoaHcM",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/todo"
      ],
      "phone": [
        {
          "title": "How to keep a to-do list of content ideas and tasks in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=6LiRBltNY7E"
        }
      ]
    },
    {
      "title": "How to plan your content on a calendar in Tublish",
      "url": "https://www.youtube.com/watch?v=olk3Qf28qhc",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/calendar"
      ],
      "phone": [
        {
          "title": "How to plan your content on a calendar in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=JyiIaMkXmuI"
        }
      ]
    },
    {
      "title": "How much to charge a sponsor, what your views earn, and your engagement rate",
      "url": "https://www.youtube.com/watch?v=r9z8mRZUlPE",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/calculators"
      ],
      "phone": [
        {
          "title": "How much to charge a sponsor, what your views earn, and your engagement rate (on mobile)",
          "url": "https://www.youtube.com/watch?v=8sKYYUA4GcA"
        }
      ]
    },
    {
      "title": "How to see where your clicks come from, with tagged links (UTM) in Tublish",
      "url": "https://www.youtube.com/watch?v=_Sro9cwgFkk",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/utm"
      ],
      "phone": [
        {
          "title": "How to see where your clicks come from, with tagged links (UTM) in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=UusfI4hhsTE"
        }
      ]
    },
    {
      "title": "How to make a QR code for your link, with a picture in the middle, in Tublish",
      "url": "https://www.youtube.com/watch?v=ddxsF7zkUOg",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/qr"
      ],
      "phone": [
        {
          "title": "How to make a QR code for your link, with a picture in the middle, in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=WmFyyndvbfU"
        }
      ]
    },
    {
      "title": "How to check a post's length on every social platform at once, in Tublish",
      "url": "https://www.youtube.com/watch?v=xuPGaAKsmOs",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/characters"
      ],
      "phone": [
        {
          "title": "How to check a post's length on every social platform at once, in Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=2KhOldCc5uU"
        }
      ]
    },
    {
      "title": "How to see where YouTube cuts your title and description, before you publish",
      "url": "https://www.youtube.com/watch?v=nbCPH0ybAH0",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/youtube-title"
      ],
      "phone": [
        {
          "title": "How to see where YouTube cuts your title and description, before you publish (on mobile)",
          "url": "https://www.youtube.com/watch?v=a9Un88nwZ6g"
        }
      ]
    },
    {
      "title": "How to check a YouTube thumbnail before you upload it: size, shape and sharpness",
      "url": "https://www.youtube.com/watch?v=DYQ4kt_rN0U",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/thumbnail"
      ],
      "phone": [
        {
          "title": "How to check a YouTube thumbnail before you upload it: size, shape and sharpness (on mobile)",
          "url": "https://www.youtube.com/watch?v=HF4AIOLzQSU"
        }
      ]
    },
    {
      "title": "How to check if your writing is easy to read, with a free readability score",
      "url": "https://www.youtube.com/watch?v=dMlbihcAW-w",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/readability"
      ],
      "phone": [
        {
          "title": "How to check if your writing is easy to read, with a free readability score (on mobile)",
          "url": "https://www.youtube.com/watch?v=pOSO6Mq_5vg"
        }
      ]
    },
    {
      "title": "How to find the right time to post for viewers in other countries, with a world clock",
      "url": "https://www.youtube.com/watch?v=eBBHbVT6QZY",
      "screens": [
        "https://tublish.com/dashboard/s/<space>/tools/clock"
      ],
      "phone": [
        {
          "title": "How to find the right time to post for viewers in other countries, with a world clock (on mobile)",
          "url": "https://www.youtube.com/watch?v=q4Bt-uSc97o"
        }
      ]
    },
    {
      "title": "How to connect Claude or ChatGPT to Tublish, and let it post for you",
      "url": "https://www.youtube.com/watch?v=Dzbxwe2SKmY",
      "screens": [
        "https://tublish.com/dashboard/assistants"
      ],
      "phone": [
        {
          "title": "How to connect Claude or ChatGPT to Tublish, and let it post for you (on mobile)",
          "url": "https://www.youtube.com/watch?v=MM6dbKDucPo"
        }
      ]
    },
    {
      "title": "How to invite teammates to your Tublish account, and choose what they can do",
      "url": "https://www.youtube.com/watch?v=RDpptK3PGLs",
      "screens": [
        "https://tublish.com/dashboard/teammates"
      ],
      "phone": [
        {
          "title": "How to invite teammates to your Tublish account, and choose what they can do (on mobile)",
          "url": "https://www.youtube.com/watch?v=6tYBDeQ6FtE"
        }
      ]
    },
    {
      "title": "How to earn money with Tublish's partner program",
      "url": "https://www.youtube.com/watch?v=UUAp0wsbT90",
      "screens": [
        "https://tublish.com/dashboard/earn"
      ],
      "phone": [
        {
          "title": "How to earn money with Tublish's partner program (on mobile)",
          "url": "https://www.youtube.com/watch?v=vQfgx5XcKgo"
        }
      ]
    },
    {
      "title": "How to change your Tublish account settings and email notifications",
      "url": "https://www.youtube.com/watch?v=yyuE2rWjIDc",
      "screens": [
        "https://tublish.com/dashboard/account"
      ],
      "phone": [
        {
          "title": "How to change your Tublish account settings and email notifications (on mobile)",
          "url": "https://www.youtube.com/watch?v=fr3qGX7UnO0"
        }
      ]
    },
    {
      "title": "Where to find Tublish's news and announcements in your dashboard",
      "url": "https://www.youtube.com/watch?v=jpgtAfTrzyg",
      "screens": [
        "https://tublish.com/dashboard/from-tublish/announcements"
      ],
      "phone": [
        {
          "title": "Where to find Tublish's news and announcements in your dashboard (on mobile)",
          "url": "https://www.youtube.com/watch?v=MSWFT3XNsLo"
        }
      ]
    },
    {
      "title": "How to report a problem in Tublish, and see when it's fixed",
      "url": "https://www.youtube.com/watch?v=qhgnECO6tcM",
      "screens": [
        "https://tublish.com/dashboard/reports"
      ],
      "phone": [
        {
          "title": "How to report a problem in Tublish, and see when it's fixed (on mobile)",
          "url": "https://www.youtube.com/watch?v=KQfhsMLNgMc"
        }
      ]
    },
    {
      "title": "How to create a new Space in Tublish, for each thing you make",
      "url": "https://www.youtube.com/watch?v=z72w4eZN8kw",
      "screens": [
        "https://tublish.com/dashboard/new"
      ],
      "phone": [
        {
          "title": "How to create a new Space in Tublish, for each thing you make (on mobile)",
          "url": "https://www.youtube.com/watch?v=m-pJ7uGjbT4"
        }
      ]
    }
  ]
}

How Tublish works

GET/guide

How Tublish works

Read-only key

Tublish's own guide to how Tublish works, written by Tublish: what each screen of the dashboard is for and how it is used, what each plan holds (from the price list itself), how each platform connects and its known traps (Instagram's account type, Facebook's Page), and where to get help.

The rest of it

Without topic it answers the table of contents - each topic's id and title.
With topic it answers that topic whole: text (paragraphs, in English), screens (each screen's name as the person sees it, in the account's language, and its address, with <space> standing for a Space's name), films (Tublish's guide films for it on YouTube, with their phone versions), and see (related topics).
Reads only.

It takes nothing.

Example: How Tublish works: the table of contents

URL

GEThttps://tublish.com/api/v1/guide

Request

curl https://tublish.com/api/v1/guide \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/guide", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/guide",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "about": "Tublish's own guide to how Tublish works, screen by screen: what each screen is for, how it is used, what each plan holds, and the known traps. Each topic names its screens (with the name the person sees, in the account's language) and Tublish's guide films for it.",
  "topics": [
    {
      "id": "start",
      "title": "Getting started: what Tublish is, and finding your way"
    },
    {
      "id": "plans",
      "title": "Plans and prices"
    },
    {
      "id": "platforms",
      "title": "Connecting your social platforms"
    },
    {
      "id": "write-a-post",
      "title": "Writing a post and sending it to several platforms"
    },
    {
      "id": "posts-waiting-and-sent",
      "title": "Scheduled posts, and everything you've posted"
    },
    {
      "id": "videos",
      "title": "Uploading a video and sending it to several platforms"
    },
    {
      "id": "overview",
      "title": "The Overview: your Space at a glance, and its details"
    },
    {
      "id": "card",
      "title": "The E-Business card (your link-in-bio page)"
    },
    {
      "id": "website",
      "title": "Your website: designs, pages, layout, theme and publishing"
    },
    {
      "id": "website-panels",
      "title": "Website panels, every kind"
    },
    {
      "id": "blog",
      "title": "The blog: writing, scheduling and publishing articles"
    },
    {
      "id": "analytics",
      "title": "Analytics: visitors, audience, pages and taps"
    },
    {
      "id": "subscribers",
      "title": "Subscribers: your email list"
    },
    {
      "id": "newsletters",
      "title": "Writing a newsletter to your subscribers"
    },
    {
      "id": "messages",
      "title": "Messages from your visitors"
    },
    {
      "id": "media-kit",
      "title": "The media kit for brands"
    },
    {
      "id": "autopilot-rules",
      "title": "Autopilot rules: sending your work on, by itself"
    },
    {
      "id": "autopilot-waiting",
      "title": "What Autopilot will send next"
    },
    {
      "id": "actions-log",
      "title": "The Actions Log: everything Autopilot did"
    },
    {
      "id": "library",
      "title": "Autopilot's library: your best posts, back out on a rhythm"
    },
    {
      "id": "stories",
      "title": "Autopilot's Stories: your short videos as Stories, every week"
    },
    {
      "id": "live-numbers",
      "title": "Live numbers: changing numbers on your website"
    },
    {
      "id": "todo",
      "title": "The ToDo list"
    },
    {
      "id": "calendar",
      "title": "The content calendar"
    },
    {
      "id": "calculators",
      "title": "The creator calculators"
    },
    {
      "id": "link-tagger",
      "title": "The link tagger (UTM links)"
    },
    {
      "id": "qr-code",
      "title": "The QR code maker"
    },
    {
      "id": "character-counter",
      "title": "The character counter"
    },
    {
      "id": "youtube-title",
      "title": "The YouTube title check"
    },
    {
      "id": "thumbnail",
      "title": "The thumbnail check"
    },
    {
      "id": "readability",
      "title": "The readability check"
    },
    {
      "id": "world-clock",
      "title": "The world clock"
    },
    {
      "id": "assistants",
      "title": "Connecting Claude or ChatGPT (the MCP)"
    },
    {
      "id": "api",
      "title": "The Tublish API and API keys"
    },
    {
      "id": "team",
      "title": "Teammates, and working on somebody else's team"
    },
    {
      "id": "earn",
      "title": "Earn with Tublish (the partner program)"
    },
    {
      "id": "account",
      "title": "Account settings, and deleting your account"
    },
    {
      "id": "from-tublish",
      "title": "From Tublish: news and announcements"
    },
    {
      "id": "report-an-issue",
      "title": "Getting help: Report an issue, My reports, and the guide films"
    },
    {
      "id": "new-space",
      "title": "Creating another Space"
    }
  ],
  "help": "Report an issue, at the top of every Tublish screen, goes straight to Tublish's founder; the person's reports and their fixes are on My reports."
}

GET/guide/{topic}

How Tublish works

Read-only key

Tublish's own guide to how Tublish works, written by Tublish: what each screen of the dashboard is for and how it is used, what each plan holds (from the price list itself), how each platform connects and its known traps (Instagram's account type, Facebook's Page), and where to get help.

The rest of it

Without topic it answers the table of contents - each topic's id and title.
With topic it answers that topic whole: text (paragraphs, in English), screens (each screen's name as the person sees it, in the account's language, and its address, with <space> standing for a Space's name), films (Tublish's guide films for it on YouTube, with their phone versions), and see (related topics).
Reads only.

  • topicin the addressone of "start", "plans", "platforms", "write-a-post", "posts-waiting-and-sent", "videos", "overview", "card", "website", "website-panels", "blog", "analytics", "subscribers", "newsletters", "messages", "media-kit", "autopilot-rules", "autopilot-waiting", "actions-log", "library", "stories", "live-numbers", "todo", "calendar", "calculators", "link-tagger", "qr-code", "character-counter", "youtube-title", "thumbnail", "readability", "world-clock", "assistants", "api", "team", "earn", "account", "from-tublish", "report-an-issue", "new-space"required

Example: One topic of the guide: connecting the platforms

URL

GEThttps://tublish.com/api/v1/guide/platforms

Request

curl https://tublish.com/api/v1/guide/platforms \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/guide/platforms", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/guide/platforms",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "id": "platforms",
  "title": "Connecting your social platforms",
  "text": [
    "The Platforms screen (menu, under your Space: Platforms) is where you connect the places you post. Everything else in Tublish sends to them, so connect them first.",
    "Each platform has its own card. A connected one says Connected, in green, with the account's name. Send a test post sends a short test so you can see it arrive. Disconnect takes the platform out of Tublish; what you already posted there stays.",
    "To add one, tap its Connect button. For most platforms you go to the platform's own sign-in, say yes there, and come straight back - Tublish never sees your password. The permission screen may name Outstand: that is the service Tublish posts through.",
    "Instagram posts only to business and creator accounts, so Connect asks about that first. A personal account can switch for free in about a minute (How to switch), and its posts and followers stay. Facebook posts only to a Page - not to a personal profile, and not to a group - so it asks first too. Both windows say to have that platform's password ready, with a link to the platform's own Forgot it? page.",
    "Telegram, Discord, Bluesky and Mastodon connect with a key or address you paste instead. Tap Connect, fill in the boxes that open in the card, and tap Connect again. How do I get these writes out the steps, with a link to the right place.",
    "LinkedIn comes twice: LinkedIn (your own profile) and LinkedIn Page (a company page). A LinkedIn profile connection ends after about 60 days and has to be connected again.",
    "Sometimes a platform stops a connection on its own side - its sign-in runs out, or it turns a post down because of the connection. Tublish then marks that card Stopped, in red, with the reason and a Reconnect button (for a platform connected with a pasted key: disconnect it and connect it again). A red window also opens on arrival in the dashboard listing every stopped platform, and the Write and Upload screens show a red line about it. Nothing goes out there until it is connected again; reconnecting, or a post that goes through, clears the mark.",
    "The platforms marked coming soon at the bottom are not open yet, and each says why. How many platforms you can connect depends on your plan; on Free, a finished E-Business card adds one more. At the limit, Connect says so and shows the plans."
  ],
  "screens": [
    {
      "name": "Platforms",
      "address": "https://tublish.com/dashboard/s/<space>/platforms"
    }
  ],
  "films": [
    {
      "title": "How to connect your social media accounts to Tublish",
      "url": "https://www.youtube.com/watch?v=oec1XFyOY-M",
      "phone": [
        {
          "title": "How to connect your social media accounts to Tublish (on mobile)",
          "url": "https://www.youtube.com/watch?v=AT-IwUfSYp0"
        }
      ]
    }
  ],
  "see": [
    {
      "id": "write-a-post",
      "title": "Writing a post and sending it to several platforms"
    },
    {
      "id": "videos",
      "title": "Uploading a video and sending it to several platforms"
    },
    {
      "id": "plans",
      "title": "Plans and prices"
    }
  ]
}

Spaces

GET/spaces/{space}

The settings of a Space

Read-only key

One Space's own settings: its address and whether it is online (anything answers at the address at all - shows says which of the E-Business card, the website and the media kit are switched on, each changed with its own tool), the language its pages speak to visitors (is; followsAccount is true while it moves with the account's language, accountLanguage, until a language is picked; offered lists the languages), the contact details the card's and the website's contact buttons use (phone and whatsapp as whole international numbers, and email), and startHereHidden (Tublish's "Start here" screen, the first row of the person's menu, which only the person sees: three steps - the E-Business card, connecting the platforms, the website - for the account's FIRST Space, and Tublish opens on it until all three are done or it is hidden; it goes by itself once all three are done, and on any other Space this setting changes nothing).

The rest of it

The Space's name, tagline and About text are the card's (GET /spaces/{space}/card).
changesWaitForThePerson is true while visitors could see a change (the address online and the card, the website or the media kit switched on): a change to the address, the language or a contact detail then goes through a Send block.
An assistant cannot delete a Space or change its web address - both happen on the Space's own screen, at editAt, because both break every link already shared.
Reads only.

  • spacein the addressstringrequired

Example: Read one Space

URL

GEThttps://tublish.com/api/v1/spaces/myname

Request

curl https://tublish.com/api/v1/spaces/myname \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "name": "Maya's Kitchen",
  "address": "https://myname.tublish.com",
  "online": false,
  "shows": {
    "card": true,
    "website": false,
    "mediaKit": false
  },
  "language": {
    "is": "en",
    "name": "English",
    "followsAccount": true,
    "accountLanguage": "en",
    "offered": [
      {
        "id": "en",
        "name": "English"
      },
      {
        "id": "es",
        "name": "Español"
      },
      {
        "id": "fr",
        "name": "Français"
      },
      {
        "id": "pt",
        "name": "Português"
      },
      {
        "id": "de",
        "name": "Deutsch"
      },
      {
        "id": "tl",
        "name": "Tagalog"
      },
      {
        "id": "he",
        "name": "עברית"
      },
      {
        "id": "ar",
        "name": "العربية"
      },
      {
        "id": "ko",
        "name": "한국어"
      },
      {
        "id": "ru",
        "name": "Русский"
      },
      {
        "id": "ja",
        "name": "日本語"
      },
      {
        "id": "hi",
        "name": "हिन्दी"
      },
      {
        "id": "id",
        "name": "Bahasa Indonesia"
      }
    ]
  },
  "contact": {
    "phone": null,
    "whatsapp": null,
    "email": null
  },
  "startHereHidden": false,
  "changesWaitForThePerson": false,
  "editAt": "https://tublish.com/dashboard/s/myname"
}

PATCH/spaces/{space}

Change a Space's settings

Changes one Space's own settings.

The rest of it

changes is a list, applied in order; each is one of: online (on: whether anything answers at the Space's address - off takes the card, the website and the media kit offline together, and nothing is deleted), language (language: one of the languages GET /spaces/{space} lists in offered, the language the Space's pages speak to visitors, or "account" to follow the account's language again), contact (phone, whatsapp, email - each one left out is kept, and an empty one takes it off; a number must be the whole international number with its country code, and one without is refused rather than guessed - the person knows which country), and start_here (hidden: the "Start here" screen at the top of the person's menu, which is about the account's first Space only).
Everything is checked as the Space's screen checks it: one refused change means nothing is changed, and the answer says which change and why.
While visitors could see the result (changesWaitForThePerson in GET /spaces/{space}) and the address, the language or a contact detail changes, NOTHING is written: a Send block in the conversation lists every change, and its Apply button - which only the person can press - writes them all, or the person answers at the address in the reply; the press refuses if the settings changed in Tublish in between.
If the person has let this assistant act without asking (sendsWithoutAsking in GET /account), or nobody but the person could see the change, it is made at once and the Send block is a receipt.
Every change is listed on the person's Assistants screen, labeled with this assistant.

  • spacein the addressstringrequired

  • changesin the bodyarray of objectrequired

Example: Add a phone number and an email address to the Space

URL

PATCHhttps://tublish.com/api/v1/spaces/myname

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "contact",
      "email": "hello@mayaskitchen.example",
      "whatsapp": "+15550134"
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "contact",
        "email": "hello@mayaskitchen.example",
        "whatsapp": "+15550134"
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "contact",
          "email": "hello@mayaskitchen.example",
          "whatsapp": "+15550134",
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "space",
    "lines": [
      {
        "what": "WhatsApp number",
        "detail": "+15550134"
      },
      {
        "what": "Email address",
        "detail": "hello@mayaskitchen.example"
      }
    ],
    "address": "https://myname.tublish.com"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com"
  }
}
Example: Hide the Start here list

URL

PATCHhttps://tublish.com/api/v1/spaces/myname

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "start_here",
      "hidden": true
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "start_here",
        "hidden": true
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "start_here",
          "hidden": True,
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "space",
    "lines": [
      {
        "what": "“Start here” at the top of your menu",
        "value": "Hidden"
      }
    ],
    "address": ""
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com"
  }
}

Posts

GET/spaces/{space}/posts

Posts in a Space

Read-only key

The posts of one Space, newest first, each with its picture's address when it carried one.

The rest of it

which: "sent" gives what went out - when, to which platforms, which ones failed and why, and the address where it landed when the platform gives one (on some platforms it arrives a few minutes after the send; a Story's is left out after a day, when the Story is gone; noLink is the sentence the log shows when the platform never gave one), and numbers - that platform's own views, likes, comments, shares, saves, reach and clicks for the post, only the ones it gives, read once a night for 30 days after the send (numbersReadAt).
A platform that did not take a post for a reason that can pass (no answer, a busy platform) is tried again, up to 3 tries in all about five minutes apart: its line carries tryingAgain (nextTry, of, at) while it waits and triedTimes once it gave up; one the platform took at first and refused a moment later carries refusedAfterSending.
which: "waiting" gives the posts scheduled for later, with their time and platforms; a waiting post's id is what DELETE /spaces/{space}/posts/{post_id} takes, and what POST /spaces/{space}/posts's replaces takes to change it.
A waiting post somebody has open on Tublish's edit screen carries beingEdited ("by you", "by Dana"): it does not go out until they save the changes or cancel editing.
Every post an assistant sent carries via, the assistant's name, and one a teammate sent carries by ("by Dana"); a post with neither is the person's own.
Reads only.

  • spacein the addressstringrequired

  • whichin the queryone of "sent", "waiting"

  • limitin the queryinteger

Example: The posts waiting to go out

URL

GEThttps://tublish.com/api/v1/spaces/myname/posts?which=waiting

Request

curl 'https://tublish.com/api/v1/spaces/myname/posts?which=waiting' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/posts?which=waiting", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/posts?which=waiting",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "waiting": [
    {
      "id": "1c1de467-23c2-464e-ad55-7f18db397a8c",
      "sendAt": "2026-12-04T14:00:00+00:00",
      "text": "Lemon chicken with rice, on the table in 20 minutes.\nThe whole recipe goes up on the blog tonight.",
      "picture": "https://hmdtamvgslfgylbldfki.supabase.co/storage/v1/object/public/site-images/598de008-462d-4c9b-aa32-7f75af0b8f45/posts/374bffff-94d0-44ea-b40a-c465eb87a152",
      "platforms": [
        "Facebook",
        "Instagram"
      ],
      "via": "[API: My scheduler]"
    }
  ]
}
Example: The last posts that went out, and how each platform answered

URL

GEThttps://tublish.com/api/v1/spaces/myname/posts?which=sent&limit=3

Request

curl 'https://tublish.com/api/v1/spaces/myname/posts?which=sent&limit=3' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/posts?which=sent&limit=3", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/posts?which=sent&limit=3",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "sent": [
    {
      "id": "b78e08d7-3bd9-4fc2-9ce4-89b17c0c65de",
      "sentAt": "2026-12-02T15:22:56.66+00:00",
      "headline": "Five pantry staples that save a weeknight",
      "text": "Rice, canned tomatoes, eggs, frozen peas and a lemon.\nWith those five, dinner is never more than 20 minutes away.",
      "platforms": [
        {
          "platform": "wordpress",
          "name": "WordPress",
          "ok": false,
          "why": "the platform couldn't find where to post - reconnect it"
        }
      ],
      "via": "[API: My scheduler]"
    }
  ]
}

POST/spaces/{space}/posts

Prepare a post

Prepares a written post for one Space and shows it to the person in a Send block in the conversation.

The rest of it

By default it sends NOTHING: the Send block's Send button - which only the person can press - sends it, or it waits in Tublish at the address in the reply.
If the person has let this assistant send without asking (sendsWithoutAsking in GET /account), the post goes out - or is scheduled - at once, and the reply says where it went.
platforms are ids from GET /account; left out, the post goes to the platforms the person has ticked on Tublish's compose screen.
send_at (an ISO 8601 time with its offset; a time without one is refused, because Tublish cannot tell which zone it means) schedules it instead of sending now.
Each platform is checked against its own limits; one that cannot take this post sits it out and the reply says why.
A platform that does not take it for a reason that can pass (no answer, a busy platform) is tried again by Tublish, up to 3 tries in all about five minutes apart, and its line in the reply carries tryingAgain; GET /spaces/{space}/posts shows how it ended.
A post may carry pictures (JPEG, PNG or WebP, each up to pictureMaxBytes from GET /account): picture_url is the https address of a picture on the web, which Tublish fetches and keeps its own copy of; picture_id is a picture uploaded from the person's computer through POST /spaces/{space}/pictures.
For several pictures in one post - a carousel, up to picturesMax from GET /account - give pictures instead: a list, in order, each item either a picture's https address or a picture_id; the first is the cover.
A platform takes as many as it can (pictures on each platform in GET /account - Bluesky and Mastodon 4, Instagram 10) and gets the first ones; the reply and the receipt say so.
A Story takes the first picture only, and Instagram takes a Story picture only as a JPEG: with a PNG or WebP first, Instagram sits its Story out and the reply says why.
A platform that takes no post without a picture (Instagram) sits out a post without one.
A platform that names the shapes it asks a picture to be (pictureShape in GET /account - Instagram, 4:5 to 1.91:1) may refuse a picture outside them; the post still goes there, and the reply and the Send block say so.
On the Send block the person can also add pictures from their own device or take one off before pressing Send.
autopilot.rules picks Autopilot rules by name (GET /spaces/{space}/autopilot lists them): a rule marked pickedOnly acts only for a send that names it, every other rule acts on every send.
autopilot.skip leaves every rule alone for this one.
wordpress answers WordPress's own questions when the post goes to the person's WordPress site: draft: true keeps it there as a draft, which only the person sees until they publish it in WordPress; categories files it under the site's categories, by name or by the id GET /spaces/{space}/wordpress/categories lists (left out, the site's default category).
A name the site does not have, or uses for two categories, is refused with the site's list.
On WordPress the first picture becomes the post's featured image and the rest go into the article, in order.
story names platforms that get the post (Facebook and Instagram take one) as a Story instead of a post: the picture alone, gone after 24 hours, with none of the words - so a Story needs a picture, and text may be empty when every platform gets a Story.
A VIDEO Story is sent with POST /spaces/{space}/videos/{video_id}/send, from a video stored in the Space.
In a Space of somebody else's team (teamSpaces in GET /account) whose sendsWaitForOk is true, Send - or the switch - puts it on the Owner's "Waiting for your OK" list in Tublish instead, and nothing goes out until the Owner says yes.
replaces names a post waiting to go out (its id from GET /spaces/{space}/posts with which="waiting"): this post takes its place - its words, pictures, platforms and time - so only one goes out, and until the person sends this one the waiting post stays as it is.
A post someone has open on Tublish's edit screen (beingEdited) cannot be replaced until they finish, and a seat whose sends wait for the Owner's OK cannot replace one.

  • spacein the addressstringrequired

  • textin the bodystringrequired

  • titlein the bodystring

  • platformsin the bodyarray of string

  • send_atin the bodystring

  • picture_urlin the bodystring

  • picture_idin the bodystring

  • picturesin the bodyarray of string

  • autopilotin the bodyobject

  • wordpressin the bodyobject

  • storyin the bodyarray of string

  • replacesin the bodystring

Example: Schedule a post with that picture for Friday

URL

POSThttps://tublish.com/api/v1/spaces/myname/posts

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/posts \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Lemon chicken with rice, on the table in 20 minutes.\nThe whole recipe goes up on the blog tonight.",
  "platforms": [
    "facebook",
    "instagram"
  ],
  "picture_id": "374bffff-94d0-44ea-b40a-c465eb87a152",
  "send_at": "2026-12-04T14:00:00+00:00",
  "autopilot": {
    "skip": true
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/posts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "text": "Lemon chicken with rice, on the table in 20 minutes.\nThe whole recipe goes up on the blog tonight.",
    "platforms": [
      "facebook",
      "instagram"
    ],
    "picture_id": "374bffff-94d0-44ea-b40a-c465eb87a152",
    "send_at": "2026-12-04T14:00:00+00:00",
    "autopilot": {
      "skip": true
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/posts",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "text": "Lemon chicken with rice, on the table in 20 minutes.\nThe whole recipe goes up on the blog tonight.",
      "platforms": [
        "facebook",
        "instagram",
      ],
      "picture_id": "374bffff-94d0-44ea-b40a-c465eb87a152",
      "send_at": "2026-12-04T14:00:00+00:00",
      "autopilot": {
        "skip": True,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "post": {
    "space": "Maya's Kitchen",
    "title": "",
    "body": "Lemon chicken with rice, on the table in 20 minutes.\nThe whole recipe goes up on the blog tonight.",
    "picture": {
      "url": "https://hmdtamvgslfgylbldfki.supabase.co/storage/v1/object/public/site-images/598de008-462d-4c9b-aa32-7f75af0b8f45/posts/374bffff-94d0-44ea-b40a-c465eb87a152",
      "width": 1280,
      "height": 720
    },
    "pictures": [
      {
        "url": "https://hmdtamvgslfgylbldfki.supabase.co/storage/v1/object/public/site-images/598de008-462d-4c9b-aa32-7f75af0b8f45/posts/374bffff-94d0-44ea-b40a-c465eb87a152",
        "width": 1280,
        "height": 720
      }
    ],
    "sendAt": "2026-12-04T14:00:00.000Z",
    "goes": [
      {
        "platform": "facebook",
        "name": "Facebook"
      },
      {
        "platform": "instagram",
        "name": "Instagram"
      }
    ],
    "sitsOut": [],
    "autopilot": "Autopilot leaves this one alone.",
    "wordpress": null
  },
  "done": {
    "kind": "scheduled",
    "sendAt": "2026-12-04T14:00:00.000Z",
    "postId": "1c1de467-23c2-464e-ad55-7f18db397a8c"
  }
}
Example: Send a post now - and one platform says no

URL

POSThttps://tublish.com/api/v1/spaces/myname/posts

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/posts \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Five pantry staples that save a weeknight",
  "text": "Rice, canned tomatoes, eggs, frozen peas and a lemon.\nWith those five, dinner is never more than 20 minutes away.",
  "platforms": [
    "wordpress"
  ],
  "autopilot": {
    "skip": true
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/posts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "title": "Five pantry staples that save a weeknight",
    "text": "Rice, canned tomatoes, eggs, frozen peas and a lemon.\nWith those five, dinner is never more than 20 minutes away.",
    "platforms": [
      "wordpress"
    ],
    "autopilot": {
      "skip": true
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/posts",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "title": "Five pantry staples that save a weeknight",
      "text": "Rice, canned tomatoes, eggs, frozen peas and a lemon.\nWith those five, dinner is never more than 20 minutes away.",
      "platforms": [
        "wordpress",
      ],
      "autopilot": {
        "skip": True,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "post": {
    "space": "Maya's Kitchen",
    "title": "Five pantry staples that save a weeknight",
    "body": "Rice, canned tomatoes, eggs, frozen peas and a lemon.\nWith those five, dinner is never more than 20 minutes away.",
    "picture": null,
    "pictures": [],
    "sendAt": null,
    "goes": [
      {
        "platform": "wordpress",
        "name": "WordPress"
      }
    ],
    "sitsOut": [],
    "autopilot": "Autopilot leaves this one alone.",
    "wordpress": null
  },
  "done": {
    "kind": "sent",
    "postId": "b78e08d7-3bd9-4fc2-9ce4-89b17c0c65de",
    "results": [
      {
        "platform": "wordpress",
        "name": "WordPress",
        "ok": false,
        "why": "the platform couldn't find where to post - reconnect it"
      }
    ]
  }
}

DELETE/spaces/{space}/posts/{post_id}

Cancel a waiting post

Cancels one post that is scheduled for later and has not gone out yet, so it never goes out.

The rest of it

post_id comes from GET /spaces/{space}/posts with which="waiting".
A post that already went out cannot be cancelled.

  • spacein the addressstringrequired

  • post_idin the addressstringrequired

Example: Cancel the scheduled post

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/posts/1c1de467-23c2-464e-ad55-7f18db397a8c

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/posts/1c1de467-23c2-464e-ad55-7f18db397a8c \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/posts/1c1de467-23c2-464e-ad55-7f18db397a8c", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/posts/1c1de467-23c2-464e-ad55-7f18db397a8c",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "cancelled": "1c1de467-23c2-464e-ad55-7f18db397a8c"
}

WordPress

GET/spaces/{space}/wordpress/categories

WordPress categories

Read-only key

The categories of the WordPress site connected to one Space, as the site lists them now: each one's id, its name, and how deep it sits under its parents (0 at the top).

The rest of it

POST /spaces/{space}/posts files a post under them, by name or by id, in wordpress.categories.
Asks the person's own site; reads only.

  • spacein the addressstringrequired

Example: Ask the WordPress site for its categories - when the site does not answer

URL

GEThttps://tublish.com/api/v1/spaces/myname/wordpress/categories

Request

curl https://tublish.com/api/v1/spaces/myname/wordpress/categories \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/wordpress/categories", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/wordpress/categories",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer422 Unprocessable Content

{
  "error": {
    "code": "API-20",
    "message": "The WordPress site did not list its categories just now (http_404). Try again in a moment."
  }
}

Pictures and videos

Pictures

POST/spaces/{space}/pictures

Upload a picture for a post, an article or a card button

Opens an upload of a picture FILE for a post, a blog article or a card button's picture tile, for an assistant that can read the file and make web requests itself - one running on the person's own computer.

The rest of it

It answers a one-time address and the picture's picture_id: the file goes up as the raw bytes of ONE HTTP PUT to the address (JPEG, PNG or WebP, up to 2,000,000 bytes - the most Bluesky takes, the smallest of any platform), and POST /spaces/{space}/posts then takes it as picture_id - or an article, as a picture's id in POST /spaces/{space}/articles or POST /spaces/{space}/articles/{article_id}/publish - or a card button, as its picture's id in PATCH /spaces/{space}/card.
A GET on the address says whether it has arrived.
The address takes one picture, for 1 hour, while this assistant stays connected; an arrived picture can be named for 12 hours.
Uploading publishes nothing. A picture already on the web needs no upload: POST /spaces/{space}/posts takes its address as picture_url, and an article or a card button as a picture's url.

  • spacein the addressstringrequired

Example: Upload a picture from your computer, then use it in a post

URL

POSThttps://tublish.com/api/v1/spaces/myname/pictures

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/pictures \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/pictures", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/pictures",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "picture_id": "374bffff-94d0-44ea-b40a-c465eb87a152",
  "address": "https://tublish.com/mcp/picture/PwiqzhIu4jaEMsHKI6BJvGQLr78A_fM6",
  "method": "PUT",
  "maxBytes": 2000000,
  "types": [
    "image/jpeg",
    "image/png",
    "image/webp"
  ],
  "expiresAt": "2026-12-02T16:22:51.445Z"
}

Then send the file itself to the address in the answer:

URL

PUThttps://tublish.com/mcp/picture/PwiqzhIu4jaEMsHKI6BJvGQLr78A_fM6

Request

curl -X PUT https://tublish.com/mcp/picture/PwiqzhIu4jaEMsHKI6BJvGQLr78A_fM6 \
  -H "Content-Type: image/png" \
  --data-binary @lemon-chicken.png
import { readFile } from "node:fs/promises";

const answer = await fetch("https://tublish.com/mcp/picture/PwiqzhIu4jaEMsHKI6BJvGQLr78A_fM6", {
  method: "PUT",
  headers: { "Content-Type": "image/png" },
  body: await readFile("lemon-chicken.png"),
});
console.log(answer.status, await answer.json());
import json
from urllib.error import HTTPError
from urllib.request import Request, urlopen

with open("lemon-chicken.png", "rb") as file:
    request = Request(
        "https://tublish.com/mcp/picture/PwiqzhIu4jaEMsHKI6BJvGQLr78A_fM6",
        method="PUT",
        headers={"Content-Type": "image/png"},
        data=file.read(),
    )
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Its answer:200 OK

{
  "arrived": true,
  "picture_id": "374bffff-94d0-44ea-b40a-c465eb87a152",
  "bytes": 6172,
  "type": "image/png",
  "width": 1280,
  "height": 720
}

Videos

GET/spaces/{space}/videos

Videos in a Space

Read-only key

The videos of one Space. which: "stored" (the default) lists the video files kept in Tublish that can be sent: each one's id (what POST /spaces/{space}/videos/{video_id}/send takes), file name, shape (portrait or landscape), size, the day Tublish deletes its copy, where it was sent before, and via when an assistant uploaded it - with the Space's connected platforms that can take a video and the shapes each takes - an empty list means none is connected yet, and the person connects the ones they use on Tublish's Platforms screen, at platformsAt.

The rest of it

A new file is uploaded on Tublish's upload screen, at uploadAt, or by an assistant that can read the file itself through POST /spaces/{space}/videos.
which: "sent" lists what went out, newest send first, per platform (story: true on a platform that got it as a Story, trial: true on an Instagram trial Reel), with the address where it landed when the platform gave one (on some platforms it arrives a few minutes after the send; a Story's is left out after a day; noLink is the sentence the log shows when the platform never gave one), numbers - that platform's own views, likes, comments, shares, saves, reach and clicks for the video, only the ones it gives, read once a night for 30 days after the send (numbersReadAt) - and picture when a video went up without its picture - canSendAgain says whether POST /spaces/{space}/video-sends/{send}/picture can put it on, and because why not; which: "waiting" lists sends waiting to go out, and a waiting send's id is what DELETE /spaces/{space}/video-sends/{send_id} takes.
A waiting send's id is what POST /spaces/{space}/videos/{video_id}/send's replaces takes to change it, and one somebody has open on Tublish's edit screen carries beingEdited ("by you", "by Dana"): it does not go out until they save the changes or cancel editing.
Every send an assistant made carries via, the assistant's name, every file or send a teammate made carries by ("by Dana"), and one Autopilot's Story shelf parked carries storyShelf: true (GET /spaces/{space}/story-shelf).
Reads only.

  • spacein the addressstringrequired

  • whichin the queryone of "stored", "sent", "waiting"

  • limitin the queryinteger

Example: The videos stored in the Space

URL

GEThttps://tublish.com/api/v1/spaces/myname/videos?which=stored

Request

curl 'https://tublish.com/api/v1/spaces/myname/videos?which=stored' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos?which=stored", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos?which=stored",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "videos": [
    {
      "id": "f4aca55f-073a-4ee3-8016-8ae2de7b6195",
      "fileName": "lemon-chicken-short.mp4",
      "shape": "portrait",
      "sizeMB": 0,
      "storedAt": "2026-12-02T15:23:02.42745+00:00",
      "keptUntil": "2027-01-31T15:23:04.914+00:00",
      "sentBefore": [],
      "via": "[API: My scheduler]"
    }
  ],
  "platforms": [
    {
      "id": "facebook",
      "name": "Facebook",
      "account": "Maya's Kitchen",
      "shapes": [
        "portrait",
        "landscape"
      ]
    },
    {
      "id": "instagram",
      "name": "Instagram",
      "account": "@mayaskitchen",
      "shapes": [
        "portrait",
        "landscape"
      ]
    },
    {
      "id": "youtube",
      "name": "YouTube",
      "account": "Maya's Kitchen",
      "shapes": [
        "portrait",
        "landscape"
      ],
      "maxMB": 262144
    },
    {
      "id": "wordpress",
      "name": "WordPress",
      "account": "mayaskitchen.example",
      "shapes": [
        "portrait",
        "landscape"
      ]
    }
  ],
  "uploadAt": "https://tublish.com/dashboard/s/myname/videos/upload",
  "platformsAt": "https://tublish.com/dashboard/s/myname/platforms"
}
Example: The video sends waiting to go out

URL

GEThttps://tublish.com/api/v1/spaces/myname/videos?which=waiting

Request

curl 'https://tublish.com/api/v1/spaces/myname/videos?which=waiting' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos?which=waiting", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos?which=waiting",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "waiting": [
    {
      "id": "3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca",
      "sendAt": "2026-12-07T16:00:00+00:00",
      "title": "Lemon chicken in 20 minutes #shorts",
      "fileName": "lemon-chicken-short.mp4",
      "text": "The full recipe is on my blog.",
      "platforms": [
        "YouTube",
        "Instagram"
      ],
      "via": "[API: My scheduler]"
    }
  ]
}

POST/spaces/{space}/videos

Upload a video file

Opens an upload of a video FILE into a Space, for an assistant that can read the file and make web requests itself - one running on the person's own computer.

The rest of it

It answers a one-time address and how the file is sliced: the file goes up as slices.count pieces, each sent as the raw bytes of an HTTP PUT to <address>?part=N (N from 1), every piece exactly slices.size bytes except the last, which is slices.last bytes.
Pieces may go in any order, and one sent again replaces itself.
A GET on the address lists what has arrived.
A picture for the video (JPEG, PNG or WebP, up to 3 MB) may be PUT to <address>?thumbnail; YouTube takes it only as a JPEG or PNG, and only on a channel that is phone-verified.
POST /spaces/{space}/videos/{video_id}/finish then puts the file together; nothing is stored until it does.
The address works for 24 hours, for this one file, while this assistant stays connected.
bytes is the file's exact size (up to 2 GB); shape is portrait (taller than wide) or landscape, and for an MP4 or MOV file Tublish reads the real shape from the file itself and it wins.
content_type may be left out when the file name ends in .mp4, .m4v, .mov or .webm.
Uploading publishes nothing: a stored video goes out only through POST /spaces/{space}/videos/{video_id}/send.
When no platform that takes a video is connected to the Space, warning says so: the file is still kept, and it can be sent once the person connects one.

  • spacein the addressstringrequired

  • file_namein the bodystringrequired

  • bytesin the bodyintegerrequired

  • shapein the bodyone of "portrait", "landscape"required

  • content_typein the bodyone of "video/mp4", "video/quicktime", "video/webm"

Example: Start uploading a tall video

URL

POSThttps://tublish.com/api/v1/spaces/myname/videos

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/videos \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "file_name": "lemon-chicken-short.mp4",
  "bytes": 24385,
  "shape": "portrait"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "file_name": "lemon-chicken-short.mp4",
    "bytes": 24385,
    "shape": "portrait"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "file_name": "lemon-chicken-short.mp4",
      "bytes": 24385,
      "shape": "portrait",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "videoId": "f4aca55f-073a-4ee3-8016-8ae2de7b6195",
  "address": "https://tublish.com/mcp/upload/tbup_D2v_qWYctd0vP3spKfMwYfWKe6f91olT",
  "slices": {
    "count": 1,
    "size": 8388608,
    "last": 24385
  },
  "expiresAt": "2026-12-03T15:23:02.675Z"
}

Then send the file itself to the address in the answer:

URL

PUThttps://tublish.com/mcp/upload/tbup_D2v_qWYctd0vP3spKfMwYfWKe6f91olT?part=1

Request

curl -X PUT 'https://tublish.com/mcp/upload/tbup_D2v_qWYctd0vP3spKfMwYfWKe6f91olT?part=1' \
  -H "Content-Type: application/octet-stream" \
  --data-binary @lemon-chicken-short.mp4
import { readFile } from "node:fs/promises";

const answer = await fetch("https://tublish.com/mcp/upload/tbup_D2v_qWYctd0vP3spKfMwYfWKe6f91olT?part=1", {
  method: "PUT",
  headers: { "Content-Type": "application/octet-stream" },
  body: await readFile("lemon-chicken-short.mp4"),
});
console.log(answer.status, await answer.json());
import json
from urllib.error import HTTPError
from urllib.request import Request, urlopen

with open("lemon-chicken-short.mp4", "rb") as file:
    request = Request(
        "https://tublish.com/mcp/upload/tbup_D2v_qWYctd0vP3spKfMwYfWKe6f91olT?part=1",
        method="PUT",
        headers={"Content-Type": "application/octet-stream"},
        data=file.read(),
    )
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Its answer:200 OK

{
  "part": 1,
  "bytes": 24385
}

POST/spaces/{space}/videos/{video_id}/finish

Finish a video upload

Puts together a video whose slices have all arrived at its upload address (POST /spaces/{space}/videos), checks its size, and stores it in the Space.

The rest of it

It answers the video's id (what POST /spaces/{space}/videos/{video_id}/send takes), its shape and - for MP4 and MOV - its width, height and length read from the file itself, and the day Tublish deletes its copy.
While any slice is missing it stores nothing and names the missing ones.

  • spacein the addressstringrequired

  • video_idin the addressstringrequired

Example: Finish the upload once every slice is in

URL

POSThttps://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/finish

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/finish \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/finish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/finish",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "videoId": "f4aca55f-073a-4ee3-8016-8ae2de7b6195",
  "fileName": "lemon-chicken-short.mp4",
  "shape": "portrait",
  "sizeMB": 0,
  "keptUntil": "2027-01-31T15:23:04.914Z",
  "width": 360,
  "height": 640,
  "seconds": 4
}

POST/spaces/{space}/videos/{video_id}/send

Prepare a video send

Sends one video that is already stored in a Space (GET /spaces/{space}/videos lists them) to the platforms named.

The rest of it

If the person has let this assistant send without asking (sendsWithoutAsking in GET /account), the video is put on its way at once - it goes out within about five minutes, or at send_at (an ISO 8601 time with its offset; a time without one is refused) - and a Send block in the conversation shows where it went.
Otherwise it sends NOTHING yet: the Send block's Send button, which only the person can press, puts it on its way.
platforms are ids from GET /spaces/{space}/videos; each is checked against its own limits and the video's shape, and one that cannot take it sits it out with the reason.
title and text are the video's title and description; the Space's constant description is added when it goes out.
youtube.privacy (default public) and youtube.made_for_kids (YouTube's legal declaration that the video is aimed at children under 13; default false) apply to YouTube.
tiktok.privacy (default public - everyone), tiktok.allow_comments, allow_duet and allow_stitch (default true), and tiktok.paid_partnership / own_brand (a disclosure TikTok labels on the video; default false) apply to TikTok.
instagram.trial posts it to Instagram as a trial Reel - shown to people who do not follow the account first; instagram.followers says what happens next: auto (the default) lets Instagram share it with the followers by itself if it does well, manual leaves that to the person in the Instagram app (no app or API can do it later).
A trial is a video post only - never with a Story on Instagram, and refused without Instagram among the platforms; Instagram decides which accounts may post one.
autopilot.rules picks Autopilot rules by name (GET /spaces/{space}/autopilot lists them): a rule marked pickedOnly acts only for a send that names it - a rule named for a subject, like "New dish", is how one kind of video gets its own announcement - and every other rule acts on every send.
autopilot.skip leaves every rule alone for this one.
story names platforms that get the video (Facebook and Instagram take one) as a Story instead of a post: the video alone, gone after 24 hours, with no title and no words.
A Story has to be 3 to 60 seconds long, and Facebook takes one only tall (portrait); the length is read out of the file, and one that does not fit sits out with the reason.
In a Space of somebody else's team (teamSpaces in GET /account) whose sendsWaitForOk is true, Send - or the switch - puts it on the Owner's "Waiting for your OK" list in Tublish instead, and nothing goes out until the Owner says yes.
replaces names a video send waiting to go out (its id from GET /spaces/{space}/videos with which="waiting"): this send takes its place, so only one goes out, and until the person sends this one the waiting send stays as it is.
A send someone has open on Tublish's edit screen (beingEdited) cannot be replaced until they finish, and neither can one Autopilot's Story shelf made; a seat whose sends wait for the Owner's OK cannot replace one.

  • spacein the addressstringrequired

  • video_idin the addressstringrequired

  • platformsin the bodyarray of stringrequired

  • titlein the bodystring

  • textin the bodystring

  • send_atin the bodystring

  • youtubein the bodyobject

  • tiktokin the bodyobject

  • instagramin the bodyobject

  • autopilotin the bodyobject

  • storyin the bodyarray of string

  • replacesin the bodystring

Example: Schedule the video for YouTube Shorts and Instagram

URL

POSThttps://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/send

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/send \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "platforms": [
    "youtube",
    "instagram"
  ],
  "title": "Lemon chicken in 20 minutes #shorts",
  "text": "The full recipe is on my blog.",
  "send_at": "2026-12-07T16:00:00+00:00",
  "youtube": {
    "privacy": "public",
    "made_for_kids": false
  },
  "autopilot": {
    "skip": true
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/send", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "platforms": [
      "youtube",
      "instagram"
    ],
    "title": "Lemon chicken in 20 minutes #shorts",
    "text": "The full recipe is on my blog.",
    "send_at": "2026-12-07T16:00:00+00:00",
    "youtube": {
      "privacy": "public",
      "made_for_kids": false
    },
    "autopilot": {
      "skip": true
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195/send",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "platforms": [
        "youtube",
        "instagram",
      ],
      "title": "Lemon chicken in 20 minutes #shorts",
      "text": "The full recipe is on my blog.",
      "send_at": "2026-12-07T16:00:00+00:00",
      "youtube": {
        "privacy": "public",
        "made_for_kids": False,
      },
      "autopilot": {
        "skip": True,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "post": {
    "team": null,
    "space": "Maya's Kitchen",
    "title": "Lemon chicken in 20 minutes #shorts",
    "body": "The full recipe is on my blog.",
    "sendAt": "2026-12-07T16:00:00.000Z",
    "goes": [
      {
        "platform": "youtube",
        "name": "YouTube"
      },
      {
        "platform": "instagram",
        "name": "Instagram"
      }
    ],
    "sitsOut": [],
    "video": {
      "file": "lemon-chicken-short.mp4",
      "shape": "Portrait",
      "youtube": "YouTube: public, not made for kids",
      "tiktok": null,
      "instagram": null
    },
    "standing": null,
    "autopilot": "Autopilot leaves this one alone."
  },
  "logLink": "https://tublish.com/dashboard/s/myname/videos/log",
  "waitingLink": "https://tublish.com/dashboard/s/myname/videos/waiting",
  "done": {
    "kind": "queued",
    "sendAt": "2026-12-07T16:00:00.000Z"
  }
}

DELETE/spaces/{space}/videos/{video_id}

Delete a video file

Deletes one video file from Tublish - a stored one, or an upload not yet finished - with its picture.

The rest of it

What already went out to platforms stays there, and Videos → Everything you've sent keeps its receipts.
A video with sends still waiting to go out is not deleted until each of those sends is named in cancel_waiting_sends (their ids come back in the refusal, and from GET /spaces/{space}/videos with which="waiting"); they are cancelled with it.
A send going out right now holds the file until it is done.

  • spacein the addressstringrequired

  • video_idin the addressstringrequired

  • cancel_waiting_sendsin the queryarray of string

Example: Delete the video and its file

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195 \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/videos/f4aca55f-073a-4ee3-8016-8ae2de7b6195",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "deleted": true,
  "cancelled": 0
}

Video sends

DELETE/spaces/{space}/video-sends/{send_id}

Cancel a waiting video send

Cancels one video send that is waiting to go out and has not started yet, so it never goes out.

The rest of it

send_id comes from GET /spaces/{space}/videos with which="waiting".
A send that already went out, or is going out right now, cannot be cancelled.
The video file itself stays in Tublish.

  • spacein the addressstringrequired

  • send_idin the addressstringrequired

Example: Cancel the scheduled video send

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "cancelled": "3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca"
}

POST/spaces/{space}/video-sends/{send}/picture

Send a video's picture again

Puts the picture a video was sent with on the YouTube video that went up without it - what "Send the picture again" on Videos → Everything you've sent does.

The rest of it

send is a sent video's id from GET /spaces/{space}/videos with which: "sent"; a platform there carries picture when its picture is missing, with canSendAgain and, when it cannot be sent again, because.
Only YouTube takes a picture after a video is up, and only through Tublish's own YouTube connection: a video that went up through a connection that cannot add a picture to a video already up is refused with the YouTube Studio address where the person sets it.
Nothing reaches YouTube here: a Send block in the conversation names the video, and its button - which only the person can press - sends the picture, or the person answers at the address in the reply.
A picture the person has set in YouTube Studio since is replaced.
If the person has let this assistant act without asking (sendsWithoutAsking in GET /account), the picture is sent at once and the Send block is a receipt.
Every one is listed on the person's Assistants screen, labeled with this assistant.
In a Space of somebody else's team (teamSpaces in GET /account) whose sendsWaitForOk is true, Send - or the switch - puts it on the Owner's "Waiting for your OK" list in Tublish instead, and nothing goes out until the Owner says yes.

  • spacein the addressstringrequired

  • sendin the addressstringrequired

  • platformin the bodystring

Example: Send a thumbnail again - for a video that has not gone out yet

URL

POSThttps://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca/picture

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca/picture \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "platform": "youtube"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca/picture", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "platform": "youtube"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/video-sends/3e0c4f7c-b6b6-4d1b-b89d-bb34836d2aca/picture",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "platform": "youtube",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer404 Not Found

{
  "error": {
    "code": "API-19",
    "message": "Nothing was sent. There is no such sent video in this Space. `send` is a sent video's `id` from GET /spaces/{space}/videos with which: \"sent\", and `platform` has to be one it went to."
  }
}

Blog articles

GET/spaces/{space}/articles

Blog articles in a Space

Read-only key

The blog articles of one Space, most recently changed first.

The rest of it

Each one: its id (what the other article tools take), its state - draft (private; only the person can see it), scheduled (goes public by itself at publishAt) or live (anyone can read it) - its title and summary, the address it is read at (a draft's address follows its title until it is published), when it was published, writtenBy when an assistant wrote it, by when a teammate did ("by Dana"), and editAt, where the person edits it in Tublish.
Also publishes - how many articles this plan may make public in any 7 days and how many are left right now (drafts and edits are never limited) - canSchedule, readersCanFindThem (false when the Space is hidden or being deleted, the website is private, or it has no Blog page: a published article appears only on the website's Blog page; why then says which, and where the person fixes it), and limits for writing one.
Reads only.

  • spacein the addressstringrequired

  • limitin the queryinteger

Example: List the articles, newest first

URL

GEThttps://tublish.com/api/v1/spaces/myname/articles?limit=5

Request

curl 'https://tublish.com/api/v1/spaces/myname/articles?limit=5' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles?limit=5", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles?limit=5",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "articles": [
    {
      "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
      "state": "draft",
      "title": "Lemon chicken in 20 minutes",
      "summary": "A weeknight dinner from one pan, with rice that cooks while the chicken browns.",
      "address": "https://myname.tublish.com/blog/lemon-chicken-in-20-minutes",
      "updatedAt": "2026-12-02T15:23:12.574331+00:00",
      "writtenBy": "[API: My scheduler]",
      "editAt": "https://tublish.com/dashboard/s/myname/blog/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce"
    }
  ],
  "publishes": {
    "perWeek": null
  },
  "canSchedule": true,
  "readersCanFindThem": false,
  "why": "Readers cannot read it yet: the whole Space is hidden. The person puts it back online on the Space's Overview screen in Tublish. Autopilot does not announce an article nobody can open: a rule's announcement that comes due while this is so is skipped, the Actions Log says why, and the person gets an email the first time it happens for an article.",
  "limits": {
    "titleCharacters": 120,
    "summaryCharacters": 300,
    "blocks": 60,
    "blockCharacters": 2000,
    "pictureMaxBytes": 2000000,
    "newPicturesPerCall": 10
  }
}

POST/spaces/{space}/articles

Write a blog article draft

Writes a blog article DRAFT in a Space: a new one (leave article_id out; title is needed), or a change to one that is still a draft (article_id from GET /spaces/{space}/articles; each field left out is kept, and blocks, when given, replaces them all).

The rest of it

A draft is private - only the person can see it, and nothing is published; POST /spaces/{space}/articles/{article_id}/publish publishes it.
On the free plan nothing is written while the Space's blog is not open yet - no new article, and no change to an old draft (its website's own pages hold fewer than 200 (150 for a Space in Korean or Japanese) of the person's own words, each uploaded picture there counting as 40; GET /spaces/{space}/website's ownWork says how far it has got); what was written before is kept.
An article already live or scheduled is not changed here: changing it reaches its readers, so POST /spaces/{space}/articles/{article_id}/publish takes those changes.
An article is blocks in order, each with a style - normal (a paragraph), heading (starts a new part), intro (a larger opening), quote, note (a small aside or a source), divider (a line) or spacer (blank space) - its text (up to 2000 characters; a divider or spacer carries none), align (left, center or right; left when left out) and at most one picture ({ url or id, title, caption, wrap }).
Inside a text, **bold**, _italic_ and [words](https://address) are the only marks; anything else - a # or a single * included - shows exactly as typed.
A picture's title describes it for screen readers and search engines and is required; wrap is left, right or full (full when left out).
cover is the article's cover picture ({ url } or { id }; null takes it off) and excerpt its short summary, shown on the Blog list and to search engines.
A picture's url is either one the article already has (GET /spaces/{space}/articles/{article_id} lists them), kept as it is, or the https address of a picture on the web, which Tublish fetches and keeps its own copy of (JPEG, PNG or WebP, up to 2,000,000 bytes); its id is a picture uploaded from the person's computer through POST /spaces/{space}/pictures.
At most 10 new pictures in one call, and 60 blocks in an article.
The answer is the draft's id, the address it will be read at once published, and where the person edits it in Tublish.

  • spacein the addressstringrequired

  • titlein the bodystring

  • excerptin the bodystring

  • coverin the bodyobject or null

  • blocksin the bodyarray of object

Example: Write a new article as a draft

URL

POSThttps://tublish.com/api/v1/spaces/myname/articles

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/articles \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Lemon chicken in 20 minutes",
  "excerpt": "A weeknight dinner from one pan, with rice that cooks while the chicken browns.",
  "blocks": [
    {
      "style": "intro",
      "text": "This is the dinner I make when I have 20 minutes and no plan."
    },
    {
      "style": "heading",
      "text": "What you need"
    },
    {
      "style": "normal",
      "text": "Two chicken thighs, one lemon, a cup of rice, garlic and a handful of parsley."
    },
    {
      "style": "heading",
      "text": "How to make it"
    },
    {
      "style": "normal",
      "text": "Start the rice first. Brown the chicken skin side down for 8 minutes, then turn it and add the garlic and lemon."
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "title": "Lemon chicken in 20 minutes",
    "excerpt": "A weeknight dinner from one pan, with rice that cooks while the chicken browns.",
    "blocks": [
      {
        "style": "intro",
        "text": "This is the dinner I make when I have 20 minutes and no plan."
      },
      {
        "style": "heading",
        "text": "What you need"
      },
      {
        "style": "normal",
        "text": "Two chicken thighs, one lemon, a cup of rice, garlic and a handful of parsley."
      },
      {
        "style": "heading",
        "text": "How to make it"
      },
      {
        "style": "normal",
        "text": "Start the rice first. Brown the chicken skin side down for 8 minutes, then turn it and add the garlic and lemon."
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "title": "Lemon chicken in 20 minutes",
      "excerpt": "A weeknight dinner from one pan, with rice that cooks while the chicken browns.",
      "blocks": [
        {
          "style": "intro",
          "text": "This is the dinner I make when I have 20 minutes and no plan.",
        },
        {
          "style": "heading",
          "text": "What you need",
        },
        {
          "style": "normal",
          "text": "Two chicken thighs, one lemon, a cup of rice, garlic and a handful of parsley.",
        },
        {
          "style": "heading",
          "text": "How to make it",
        },
        {
          "style": "normal",
          "text": "Start the rice first. Brown the chicken skin side down for 8 minutes, then turn it and add the garlic and lemon.",
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "article": {
    "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    "created": true,
    "slug": "lemon-chicken-in-20-minutes",
    "address": "https://myname.tublish.com/blog/lemon-chicken-in-20-minutes",
    "editAt": "https://tublish.com/dashboard/s/myname/blog/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    "title": "Lemon chicken in 20 minutes",
    "size": {
      "words": 56,
      "pictures": 0,
      "blocks": 5
    }
  },
  "state": "draft",
  "readersCanFindThem": false
}

GET/spaces/{space}/articles/{article_id}

One blog article

Read-only key

One article of a Space, whole: its state, title, summary, cover picture, address, and every block in order - its style, its text with the marks as written (**bold**, _italic_, [words](https://address)), its alignment and its picture (address, title, caption, wrap).

The rest of it

A picture's address can be named again in POST /spaces/{space}/articles or POST /spaces/{space}/articles/{article_id}/publish to keep it.
article_id comes from GET /spaces/{space}/articles.
Reads only.

  • spacein the addressstringrequired

  • article_idin the addressstringrequired

Example: Read one article, every block

URL

GEThttps://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce

Request

curl https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
  "state": "draft",
  "title": "Lemon chicken in 20 minutes",
  "excerpt": "A weeknight dinner from one pan, with rice that cooks while the chicken browns.",
  "cover": null,
  "address": "https://myname.tublish.com/blog/lemon-chicken-in-20-minutes",
  "updatedAt": "2026-12-02T15:23:12.574331+00:00",
  "editAt": "https://tublish.com/dashboard/s/myname/blog/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
  "blocks": [
    {
      "style": "intro",
      "text": "This is the dinner I make when I have 20 minutes and no plan.",
      "align": "left"
    },
    {
      "style": "heading",
      "text": "What you need",
      "align": "left"
    },
    {
      "style": "normal",
      "text": "Two chicken thighs, one lemon, a cup of rice, garlic and a handful of parsley.",
      "align": "left"
    },
    {
      "style": "heading",
      "text": "How to make it",
      "align": "left"
    },
    {
      "style": "normal",
      "text": "Start the rice first. Brown the chicken skin side down for 8 minutes, then turn it and add the garlic and lemon.",
      "align": "left"
    }
  ],
  "writtenBy": "[API: My scheduler]"
}

PATCH/spaces/{space}/articles/{article_id}

Write a blog article draft

Writes a blog article DRAFT in a Space: a new one (leave article_id out; title is needed), or a change to one that is still a draft (article_id from GET /spaces/{space}/articles; each field left out is kept, and blocks, when given, replaces them all).

The rest of it

A draft is private - only the person can see it, and nothing is published; POST /spaces/{space}/articles/{article_id}/publish publishes it.
On the free plan nothing is written while the Space's blog is not open yet - no new article, and no change to an old draft (its website's own pages hold fewer than 200 (150 for a Space in Korean or Japanese) of the person's own words, each uploaded picture there counting as 40; GET /spaces/{space}/website's ownWork says how far it has got); what was written before is kept.
An article already live or scheduled is not changed here: changing it reaches its readers, so POST /spaces/{space}/articles/{article_id}/publish takes those changes.
An article is blocks in order, each with a style - normal (a paragraph), heading (starts a new part), intro (a larger opening), quote, note (a small aside or a source), divider (a line) or spacer (blank space) - its text (up to 2000 characters; a divider or spacer carries none), align (left, center or right; left when left out) and at most one picture ({ url or id, title, caption, wrap }).
Inside a text, **bold**, _italic_ and [words](https://address) are the only marks; anything else - a # or a single * included - shows exactly as typed.
A picture's title describes it for screen readers and search engines and is required; wrap is left, right or full (full when left out).
cover is the article's cover picture ({ url } or { id }; null takes it off) and excerpt its short summary, shown on the Blog list and to search engines.
A picture's url is either one the article already has (GET /spaces/{space}/articles/{article_id} lists them), kept as it is, or the https address of a picture on the web, which Tublish fetches and keeps its own copy of (JPEG, PNG or WebP, up to 2,000,000 bytes); its id is a picture uploaded from the person's computer through POST /spaces/{space}/pictures.
At most 10 new pictures in one call, and 60 blocks in an article.
The answer is the draft's id, the address it will be read at once published, and where the person edits it in Tublish.

  • spacein the addressstringrequired

  • article_idin the addressstringrequired

  • titlein the bodystring

  • excerptin the bodystring

  • coverin the bodyobject or null

  • blocksin the bodyarray of object

Example: Change an article's title and short description

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "One-pan lemon chicken, in 20 minutes",
  "excerpt": "Rice, chicken and a lemon, in one pan - and the rice cooks while the chicken browns."
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "title": "One-pan lemon chicken, in 20 minutes",
    "excerpt": "Rice, chicken and a lemon, in one pan - and the rice cooks while the chicken browns."
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "title": "One-pan lemon chicken, in 20 minutes",
      "excerpt": "Rice, chicken and a lemon, in one pan - and the rice cooks while the chicken browns.",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "article": {
    "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    "created": false,
    "slug": "one-pan-lemon-chicken-in-20-minutes",
    "address": "https://myname.tublish.com/blog/one-pan-lemon-chicken-in-20-minutes",
    "editAt": "https://tublish.com/dashboard/s/myname/blog/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
    "title": "One-pan lemon chicken, in 20 minutes",
    "size": {
      "words": 56,
      "pictures": 0,
      "blocks": 5
    }
  },
  "state": "draft",
  "readersCanFindThem": false
}

DELETE/spaces/{space}/articles/{article_id}

Delete a blog article

Deletes one article of a Space - a draft, or a scheduled one (which then never goes public) - with its pictures.

The rest of it

It cannot be undone. A LIVE article is not deleted: readers can open it, so POST /spaces/{space}/articles/{article_id}/unpublish takes it down first, and then it can be deleted.
article_id comes from GET /spaces/{space}/articles.

  • spacein the addressstringrequired

  • article_idin the addressstringrequired

Example: Delete the draft

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "deleted": "6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad"
}

POST/spaces/{space}/articles/{article_id}/publish

Publish or change a blog article

Puts one article of a Space in front of readers - a DRAFT is published (now, or at publish_at: an ISO 8601 time with its offset; a time without one is refused, because Tublish cannot tell which zone it means), and an article already LIVE or SCHEDULED takes changes (it keeps its address and its moment).

The rest of it

The changes use POST /spaces/{space}/articles's fields - title, excerpt, cover, blocks - each one left out is kept; for a draft they are optional (it is published as it is saved), for a published article at least one is needed.
By default it publishes NOTHING: a Send block in the conversation shows the article as it will stand, and its Publish (or Update) button - which only the person can press - does it, or the person answers at the address in the reply.
If the person has let this assistant send without asking (sendsWithoutAsking in GET /account), it is published or changed at once and the Send block is a receipt.
It is checked against the plan's weekly publishing limit and scheduling first, and on the free plan against the blog being open: a free Space's blog opens once its website's own pages hold 200 (150 for a Space in Korean or Japanese) of the person's own words (each uploaded picture there counts as 40; GET /spaces/{space}/website's ownWork says how far it has got), and a publish before that is refused with the article kept as a draft.
The press checks again, and refuses if the person changed the article in Tublish in between.
autopilot.rules picks Autopilot rules by name for the moment it is published (GET /spaces/{space}/autopilot lists them; a rule marked pickedOnly acts only when picked); autopilot.skip leaves every rule alone.
A change to a published article moves no Autopilot rule.
The reply says when readers cannot find it yet (the Space hidden, a private website, a free blog not open yet, or no Blog page) and where the person fixes it.
To move a scheduled article to another moment, POST /spaces/{space}/articles/{article_id}/unpublish makes it a draft again first.
In a Space of somebody else's team (teamSpaces in GET /account) whose sendsWaitForOk is true, Send - or the switch - puts it on the Owner's "Waiting for your OK" list in Tublish instead, and nothing goes out until the Owner says yes.

  • spacein the addressstringrequired

  • article_idin the addressstringrequired

  • publish_atin the bodystring

  • titlein the bodystring

  • excerptin the bodystring

  • coverin the bodyobject or null

  • blocksin the bodyarray of object

  • autopilotin the bodyobject

Example: Publish it now

URL

POSThttps://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce/publish

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce/publish \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "autopilot": {
    "skip": true
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce/publish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "autopilot": {
      "skip": true
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6ccf65e9-a9aa-48b0-9c5c-b475ca4effce/publish",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "autopilot": {
        "skip": True,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "post": {
    "article": true,
    "space": "Maya's Kitchen",
    "title": "One-pan lemon chicken, in 20 minutes",
    "summary": "Rice, chicken and a lemon, in one pan - and the rice cooks while the chicken browns.",
    "body": "This is the dinner I make when I have 20 minutes and no plan.\n\nWhat you need\n\nTwo chicken thighs, one lemon, a cup of rice, garlic and a handful of parsley.\n\nHow to make it\n\nStart the rice first. Brown the chicken skin side down for 8 minutes, then turn it and add the garlic and lemon.",
    "picture": null,
    "sendAt": null,
    "goes": [
      {
        "platform": "blog",
        "name": "myname.tublish.com/blog/one-pan-lemon-chicken-in-20-minutes"
      }
    ],
    "sitsOut": [],
    "standing": "About 56 words",
    "notice": "Your articles live on your website, on its Blog page. Your Space is hidden, so nobody can read them yet.",
    "autopilot": "Autopilot leaves this one alone.",
    "team": null
  },
  "done": {
    "kind": "published",
    "url": "https://myname.tublish.com/blog/one-pan-lemon-chicken-in-20-minutes"
  }
}
Example: Schedule an article for Sunday morning

URL

POSThttps://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/publish

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/publish \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "publish_at": "2026-12-06T08:00:00+00:00",
  "autopilot": {
    "skip": true
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/publish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "publish_at": "2026-12-06T08:00:00+00:00",
    "autopilot": {
      "skip": true
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/publish",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "publish_at": "2026-12-06T08:00:00+00:00",
      "autopilot": {
        "skip": True,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "post": {
    "article": true,
    "space": "Maya's Kitchen",
    "title": "Five pantry staples that save a weeknight",
    "summary": null,
    "body": "Rice, canned tomatoes, eggs, frozen peas and a lemon.",
    "picture": null,
    "sendAt": "2026-12-06T08:00:00.000Z",
    "goes": [
      {
        "platform": "blog",
        "name": "myname.tublish.com/blog/five-pantry-staples-that-save-a-weeknight"
      }
    ],
    "sitsOut": [],
    "standing": "About 9 words",
    "notice": "Your articles live on your website, on its Blog page. Your Space is hidden, so nobody can read them yet.",
    "autopilot": "Autopilot leaves this one alone.",
    "team": null
  },
  "done": {
    "kind": "scheduled",
    "sendAt": "2026-12-06T08:00:00.000Z",
    "url": "https://myname.tublish.com/blog/five-pantry-staples-that-save-a-weeknight"
  }
}

POST/spaces/{space}/articles/{article_id}/unpublish

Take a blog article down

Takes one article of a Space off the website: a LIVE one becomes a private draft again, so readers can no longer open it, and a SCHEDULED one is cancelled, so it never goes public - its place in the week's publishing limit is handed back.

The rest of it

The words stay, as a draft. A publish that already happened still counts toward that week's limit.
article_id comes from GET /spaces/{space}/articles.

  • spacein the addressstringrequired

  • article_idin the addressstringrequired

Example: Take it back to a draft

URL

POSThttps://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/unpublish

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/unpublish \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/unpublish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/articles/6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad/unpublish",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "article": "6e526fe2-93da-4a4e-9ff6-a3b0dfef3dad",
  "state": "draft",
  "was": "scheduled"
}

E-Business card

GET/spaces/{space}/card

The E-Business card of a Space

Read-only key

The E-Business card of one Space - its link-in-bio page at address: whether it is online (the card answers at all) and visitorsSeeIt (the Space's whole address is online too), its name, tagline and About text (bio), its theme, its profile picture's face (where it sits - spot, its size and its shape, each one of faceChoices; square has slightly rounded corners and rounded much rounder ones), the top of the card (look "classic" draws the banner and the profile picture as face places them, "photo" one big photo across the card's top with its shape and the name on it or under it, each one of topChoices; a "photo" look with no photo yet draws the classic top), the video it shows (a link to the one video the person picked, null for their channel's newest upload - which shows nothing while channelConnected is false - or "none" when the card shows no video), which contact buttons it shows (a button is drawn only when the Space has that number or address, which the person types in Tublish), its link buttons and headings in order (links, each with the id PATCH /spaces/{space}/card takes; a heading labels the buttons under it and opens nothing; a button with a picture is drawn as a wide picture tile with its words over the picture's foot, on the card and on the website's Links panel - or, when its size is "small", as a small picture beside its words (size is one of pictureSizes); the one with glow true has a light running round its edge on the card - at most one button glows, and its glowStyle says how, one of glowStyles, and tileShape is the corners of every tile on the card - one of tileShapes), its background (one of backgrounds: "theme" paints the page in the theme's own colors, "photo" fills it with the profile picture blurred - a card with no profile picture draws the theme), its social icons (socials; iconsRow true also draws them as a row of small round icons under the name, the full buttons staying; iconsBrand true draws every icon in its platform's own color, false in the card's own colors for a one-color design - the row and the buttons alike), its gallery (photos a visitor scrolls sideways, under the video and above the buttons, each with the id PATCH /spaces/{space}/card takes, the words read aloud to somebody who cannot see it, its title (words drawn under the photo, empty for none) and its link (the web address a tap on the photo opens instead of the photo itself, empty for none); every photo wears galleryShape, one of galleryShapes) and support links (support - the person's own tip pages), the themes (every one on every plan), outsideLinksNofollow (true on the Free plan: a link to a site that is not one of the platforms and not Tublish tells search engines not to follow it - visitors see no difference; on a paid plan every link is followed), the platforms each icon list takes, and the limits (the same on every plan).

The rest of it

changesWaitForThePerson is true while anybody but the person could see a change (the address is online and the card, the website or the media kit is): a change then goes through a Send block.
On the Free plan, freePlan says how many platforms the Space connects now (connectsNow - also how many one post may go to), how many it holds (connected), and, until the card is finished, what it still needs (cardStillNeeds): a finished card - a name, a tagline, an About of at least 60 characters, a picture (a profile picture, or a big photo across the card's top), at least 3 social icons, and the card online - connects one more platform free, and that platform pauses again while the card is unfinished or offline (nothing is disconnected).
shownToSearchEngines says whether search engines are shown the card: it needs some of the person's own words (tagline, About, button words) or a website that is shown, and on the Free plan (and during a new account's 14 days of Pro, which follow the Free plan's rule here) it also waits until the card is finished - the same steps as cardStillNeeds.
Anybody with the address can open the card either way.
editAt is where the person edits the card in Tublish.
Reads only.

  • spacein the addressstringrequired

Example: Read the E-Business card

URL

GEThttps://tublish.com/api/v1/spaces/myname/card

Request

curl https://tublish.com/api/v1/spaces/myname/card \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/card", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/card",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "address": "https://myname.tublish.com/ecard",
  "online": true,
  "addressOnline": false,
  "visitorsSeeIt": false,
  "changesWaitForThePerson": false,
  "name": "Maya's Kitchen",
  "tagline": "Weeknight dinners",
  "bio": "",
  "theme": "cobalt",
  "face": {
    "spot": "banner-center",
    "size": "medium",
    "shape": "circle"
  },
  "faceChoices": {
    "spots": [
      "banner-left",
      "banner-center",
      "banner-right",
      "below-left",
      "below-center",
      "below-right",
      "beside-left",
      "beside-right"
    ],
    "sizes": [
      "small",
      "medium",
      "large"
    ],
    "shapes": [
      "circle",
      "square",
      "rounded"
    ]
  },
  "top": {
    "look": "classic",
    "photo": null,
    "shape": "tall",
    "name": "over"
  },
  "topChoices": {
    "looks": [
      "classic",
      "photo"
    ],
    "shapes": [
      "tall",
      "square"
    ],
    "names": [
      "over",
      "under"
    ]
  },
  "video": null,
  "channelConnected": false,
  "buttons": {
    "call": {
      "shown": true,
      "hasNumber": false
    },
    "whatsapp": {
      "shown": true,
      "hasNumber": true
    },
    "email": {
      "shown": true,
      "hasAddress": true
    }
  },
  "links": [],
  "tileShape": "rounded",
  "tileShapes": [
    "rounded",
    "square"
  ],
  "pictureSizes": [
    "tile",
    "small"
  ],
  "glowStyles": [
    "run",
    "twin",
    "breathe",
    "shine"
  ],
  "background": "theme",
  "backgrounds": [
    "theme",
    "photo"
  ],
  "iconsRow": false,
  "iconsBrand": true,
  "gallery": [],
  "galleryShape": "rounded",
  "galleryShapes": [
    "circle",
    "square",
    "rounded"
  ],
  "socials": [],
  "support": [],
  "themes": [
    {
      "id": "cobalt",
      "name": "Cobalt"
    },
    {
      "id": "pearl",
      "name": "Pearl"
    },
    {
      "id": "mist",
      "name": "Mist"
    },
    {
      "id": "sky",
      "name": "Sky"
    },
    {
      "id": "sage",
      "name": "Sage"
    },
    {
      "id": "sand",
      "name": "Sand"
    },
    {
      "id": "blossom",
      "name": "Blossom"
    },
    {
      "id": "honey",
      "name": "Honey"
    },
    {
      "id": "crimson",
      "name": "Crimson"
    },
    {
      "id": "sunset",
      "name": "Sunset"
    },
    {
      "id": "terracotta",
      "name": "Terracotta"
    },
    {
      "id": "berry",
      "name": "Berry"
    },
    {
      "id": "royal",
      "name": "Royal"
    },
    {
      "id": "ocean",
      "name": "Ocean"
    },
    {
      "id": "teal",
      "name": "Teal"
    },
    {
      "id": "forest",
      "name": "Forest"
    },
    {
      "id": "noir",
      "name": "Noir"
    },
    {
      "id": "midnight",
      "name": "Midnight"
    },
    {
      "id": "espresso",
      "name": "Espresso"
    },
    {
      "id": "graphite",
      "name": "Graphite"
    }
  ],
  "outsideLinksNofollow": false,
  "platforms": {
    "socials": [
      {
        "id": "youtube",
        "name": "YouTube"
      },
      {
        "id": "instagram",
        "name": "Instagram"
      },
      {
        "id": "tiktok",
        "name": "TikTok"
      },
      {
        "id": "x",
        "name": "X"
      },
      {
        "id": "facebook",
        "name": "Facebook"
      },
      {
        "id": "twitch",
        "name": "Twitch"
      },
      {
        "id": "bluesky",
        "name": "Bluesky"
      },
      {
        "id": "linkedin",
        "name": "LinkedIn"
      },
      {
        "id": "threads",
        "name": "Threads"
      },
      {
        "id": "pinterest",
        "name": "Pinterest"
      },
      {
        "id": "snapchat",
        "name": "Snapchat"
      },
      {
        "id": "reddit",
        "name": "Reddit"
      },
      {
        "id": "discord",
        "name": "Discord"
      },
      {
        "id": "telegram",
        "name": "Telegram"
      },
      {
        "id": "mastodon",
        "name": "Mastodon"
      },
      {
        "id": "spotify",
        "name": "Spotify"
      },
      {
        "id": "applepodcasts",
        "name": "Apple Podcasts"
      },
      {
        "id": "website",
        "name": "Website"
      }
    ],
    "support": [
      {
        "id": "paypal",
        "name": "PayPal"
      },
      {
        "id": "kofi",
        "name": "Ko-fi"
      },
      {
        "id": "buymeacoffee",
        "name": "Buy Me a Coffee"
      },
      {
        "id": "patreon",
        "name": "Patreon"
      },
      {
        "id": "venmo",
        "name": "Venmo"
      },
      {
        "id": "cashapp",
        "name": "Cash App"
      }
    ]
  },
  "limits": {
    "nameCharacters": 50,
    "taglineCharacters": 140,
    "bioCharacters": 500,
    "buttonCharacters": 60,
    "smallLineCharacters": 100,
    "addressCharacters": 300,
    "buttons": 100,
    "headings": 25,
    "socialIcons": 18,
    "galleryPhotos": 24,
    "photoWordsCharacters": 120,
    "photoTitleCharacters": 60
  },
  "shownToSearchEngines": false,
  "editAt": "https://tublish.com/dashboard/s/myname/edit"
}

PATCH/spaces/{space}/card

Change the E-Business card

Changes one Space's E-Business card.

The rest of it

changes is a list, applied in order; each is one of: details (name, tagline, bio - each one left out is kept, and an empty tagline or bio takes it off), theme (a theme id from GET /spaces/{space}/card), face (the profile picture: spot - where it sits, size and shape - circle, square with slightly rounded corners, or rounded; each one left out is kept, the choices are faceChoices in GET /spaces/{space}/card; the picture itself is uploaded on the card screen in Tublish), buttons (whether the card shows its call, whatsapp and email buttons), video (video: a link to one YouTube video, or its 11-character id, for the card to show - any video on YouTube, no connected channel needed; null goes back to the channel's newest upload; "latest" shows the channel's two newest uploads side by side, a tap on one plays it (it needs a connected channel, like the newest upload, and keeps a picked video for later); "none" shows no video at all, for a person who does not post on YouTube, and keeps a picked video for later.
The channel's own trailer is picked on the card screen in Tublish), online (on: whether the card answers at all), add_link (a button - kind "link" with title, url, an optional small line under it, description, and an optional picture that makes it a wide picture tile (with a picture, title and url are both optional: a tile with no words is the picture alone, named by its site; one with no url is drawn as a plain picture - no button edge, nothing to press - and cannot glow; url: "" in change_link takes a pictured button's address off): { "url": an https address of the picture }, which Tublish fetches and keeps its own copy of, or { "id": a picture_id from POST /spaces/{space}/pictures }, at most 6 new pictures in one call - or a heading - kind "heading", title only; position puts it at that place in the list counting from 1, otherwise it goes last), change_link (by id from GET /spaces/{space}/card; each field left out is kept, and picture: null takes the button's picture off; glow: true makes it the card's ONE glowing button - a light runs round its edge, and any other button stops glowing - and false puts it out; size: how the button's picture shows - "tile", the wide picture tile, or "small", a small picture beside the button's words; glowStyle: how a glowing button glows - "run" a light running round its edge, "twin" two lights half a lap apart, "breathe" the edge brightening and dimming, "shine" a band of light sweeping across it (kept while the button does not glow); add_link takes glow, glowStyle and size too, a new button's picture is a tile unless size says otherwise, a new glow is the running light unless glowStyle says otherwise, and a heading never glows and has no picture) and remove_link (by id; its picture goes with it), tiles (shape: the corners of every picture tile on the card, "rounded" or "square"), background (background: "theme" or "photo" - the profile picture blurred behind the card), icons_row (on: whether the social icons are also drawn as a row of small icons), icons_brand (on: true draws the social icons in their platforms' own colors, false in the card's own colors), add_photo (a photo for the gallery: picture is a url or an id, exactly as a button's picture, and counts toward the same new pictures in one call; optional words about it, read aloud to somebody who cannot see it and drawn nowhere; an optional title, words DRAWN under the photo; an optional link, the web address a tap on the photo opens instead of the photo itself; position as for a button), change_photo (by id: its words, title and link - each one left out is kept, "" takes it off), remove_photo (by id; the photo goes with it), order_photos (every photo already in the gallery, by id, in the new order), gallery_shape (shape: circle, square or rounded, for every photo in the gallery), top (the top of the card: look "classic" - the banner and the profile picture placed as face says - or "photo" - ONE big photo across the card's top, its lower part fading into the card's color; picture is that photo, a url or an id exactly as a button's picture and counted with them, null takes it off; shape "tall" or "square"; name "over" - the name on the photo's faded foot - or "under" it; each one left out is kept, and a "photo" look with no photo yet draws the classic top), order_links (every button and heading already on the card, by id, in the new order; one added in the same list keeps its place), and add_icon, change_icon, remove_icon and order_icons - the same for a list: "socials" (social icons) or "support" (support links), one per platform, each an address on that platform.
Everything is checked as the card editor checks it, on the card as it will stand after all of them: one refused change means nothing is changed, and the answer says which change and why.
While anybody but the person could see the result (changesWaitForThePerson in GET /spaces/{space}/card), NOTHING is written: a Send block in the conversation lists every change, and its Apply button - which only the person can press - writes them all, or the person answers at the address in the reply; the press refuses if the card changed in Tublish in between.
If the person has let this assistant act without asking (sendsWithoutAsking in GET /account), or nobody but the person could see the card yet, the changes are made at once and the Send block is a receipt.
Every change is listed on the person's Assistants screen, labeled with this assistant.

  • spacein the addressstringrequired

  • changesin the bodyarray of objectrequired

Example: Change the card's name, tagline and bio

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/card

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/card \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "details",
      "name": "Maya'\''s Kitchen",
      "tagline": "Weeknight dinners in 20 minutes",
      "bio": "Home cook, two kids, one small kitchen. New recipe videos every Tuesday."
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/card", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "details",
        "name": "Maya's Kitchen",
        "tagline": "Weeknight dinners in 20 minutes",
        "bio": "Home cook, two kids, one small kitchen. New recipe videos every Tuesday."
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/card",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "details",
          "name": "Maya's Kitchen",
          "tagline": "Weeknight dinners in 20 minutes",
          "bio": "Home cook, two kids, one small kitchen. New recipe videos every Tuesday.",
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "card",
    "lines": [
      {
        "what": "Tagline",
        "value": "Weeknight dinners in 20 minutes"
      },
      {
        "what": "About",
        "value": "Home cook, two kids, one small kitchen. New recipe videos every Tuesday."
      }
    ],
    "address": "https://myname.tublish.com/ecard"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com/ecard"
  }
}
Example: Add a link button that glows

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/card

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/card \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "add_link",
      "kind": "link",
      "title": "My cookbook",
      "url": "https://example.com/mayas-cookbook",
      "glow": true
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/card", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "add_link",
        "kind": "link",
        "title": "My cookbook",
        "url": "https://example.com/mayas-cookbook",
        "glow": true
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/card",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "add_link",
          "kind": "link",
          "title": "My cookbook",
          "url": "https://example.com/mayas-cookbook",
          "glow": True,
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "card",
    "lines": [
      {
        "what": "Adds a button",
        "value": "My cookbook",
        "detail": "example.com/mayas-cookbook"
      },
      {
        "what": "Makes a button glow",
        "value": "My cookbook"
      }
    ],
    "address": "https://myname.tublish.com/ecard"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com/ecard"
  }
}

Website

GET/spaces/{space}/website

The website of a Space

Read-only key

The website of one Space, whole: its address, whether it is online (the Space's root shows the website rather than the card) and visitorsSeeIt, its theme and layout (menu and content: left, center or right), and every page in menu order - id, title, address, whether it is home (always first, never removed), its search description, and every panel on it in order with its id, kind and settings as stored.

The rest of it

Also: designs (while the website has no pages - one builds a whole website), readyPages (Blog, FAQ, Events, Donate, Videos - each with its own panels, and whether it can still be added), panelKinds (what each kind is and what its settings take), the themes and which are free, pageLimit (the plan's), and limits.
A page with offline was taken offline by the plan because it holds fewer pages a website: visitors cannot see it and it is not in the menu; it is deleted on offline.deletedOn unless the person picks it to stay (at offlinePickAt, the website screen) or chooses a bigger plan - picking is the person's, never a change from chat.
changesWaitForThePerson is true while visitors could see a change (the address online and the website switched on): a change then goes through a Send block.
shownToSearchEngines says whether search engines are shown the website (its pages, blog and articles); on the Free plan (and during a new account's 14 days of Pro) that waits until the website's own pages - never its blog - hold ownWork.need of the person's own words, each picture uploaded to them counting as ownWork.pictureCounts, and ownWork.have is the count so far (seeded headings and page names do not count).
Anybody with the address can open the website either way.
editAt is where the person edits the website in Tublish.
Reads only.

  • spacein the addressstringrequired

Example: Read the website: its pages and their panels

URL

GEThttps://tublish.com/api/v1/spaces/myname/website

Request

curl https://tublish.com/api/v1/spaces/myname/website \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/website", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/website",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "address": "https://myname.tublish.com",
  "online": false,
  "addressOnline": false,
  "visitorsSeeIt": false,
  "changesWaitForThePerson": false,
  "theme": "midnight",
  "layout": {
    "menu": "center",
    "content": "center"
  },
  "pages": [
    {
      "id": "20df5828-b92c-4c9b-b247-129475f541a0",
      "title": "Home",
      "home": true,
      "kind": "main",
      "address": "https://myname.tublish.com",
      "panels": [
        {
          "id": "51aebd4a-623f-445a-9213-76258ea339af",
          "kind": "hero",
          "settings": {
            "tagline": "",
            "headline": "",
            "placement": "overlay"
          }
        },
        {
          "id": "69d3a906-f9c8-4568-a2b6-4af8921e038d",
          "kind": "latest_video",
          "settings": {}
        },
        {
          "id": "7d1099f3-b26a-4444-8e70-1732e90bed05",
          "kind": "video_grid",
          "settings": {
            "count": 6
          }
        },
        {
          "id": "843feb70-9148-4303-a14d-8af5c1ed81bf",
          "kind": "subscribe",
          "settings": {}
        },
        {
          "id": "83a7515b-6177-4608-a454-0cea5da4e298",
          "kind": "links",
          "settings": {}
        }
      ]
    },
    {
      "id": "ec180cc0-5c15-466e-81ca-8bd8c2b0ec97",
      "title": "About",
      "home": false,
      "kind": "about",
      "address": "https://myname.tublish.com/about",
      "panels": [
        {
          "id": "6add2082-c731-4dcb-8b85-9d174300661d",
          "kind": "text",
          "settings": {
            "body": "",
            "heading": "About me"
          }
        }
      ]
    },
    {
      "id": "a204b5ce-253c-404f-957b-45aac1e82f37",
      "title": "Contact",
      "home": false,
      "kind": "contact",
      "address": "https://myname.tublish.com/contact",
      "panels": [
        {
          "id": "61ff4d77-c093-4dfb-a5fe-fc7275f6db66",
          "kind": "contact",
          "settings": {}
        }
      ]
    },
    {
      "id": "f981fcdd-b844-4570-b574-837b2e1230bc",
      "title": "Terms",
      "home": false,
      "kind": "terms",
      "address": "https://myname.tublish.com/terms",
      "panels": [
        {
          "id": "e30aa1f7-53af-4046-9651-30ef79f743e4",
          "kind": "text",
          "settings": {
            "body": "",
            "heading": "Terms"
          }
        }
      ]
    },
    {
      "id": "f98a7059-3227-44f1-9ba5-f05b2f9b37f3",
      "title": "Recipes",
      "home": false,
      "kind": "custom",
      "address": "https://myname.tublish.com/recipes",
      "panels": []
    }
  ],
  "readyPages": [
    {
      "id": "blog",
      "name": "Blog",
      "canAdd": true
    },
    {
      "id": "faq",
      "name": "FAQ",
      "canAdd": true
    },
    {
      "id": "events",
      "name": "Events",
      "canAdd": true
    },
    {
      "id": "donate",
      "name": "Donate",
      "canAdd": true
    },
    {
      "id": "videos",
      "name": "Videos",
      "canAdd": true
    }
  ],
  "panelKinds": [
    {
      "id": "hero",
      "name": "Big banner",
      "settings": "headline, tagline, placement (overlay or below)"
    },
    {
      "id": "text",
      "name": "Text",
      "settings": "heading, body (up to 5000 characters, line breaks kept)"
    },
    {
      "id": "latest_video",
      "name": "Latest video",
      "settings": "nothing - it shows the newest YouTube upload"
    },
    {
      "id": "video_grid",
      "name": "Video grid",
      "settings": "count (3, 6, 9, 12)"
    },
    {
      "id": "subscribe",
      "name": "Subscribe box",
      "settings": "nothing - it collects emails into Subscribers"
    },
    {
      "id": "links",
      "name": "Link buttons",
      "settings": "nothing - the card's own link buttons"
    },
    {
      "id": "tips",
      "name": "Support me",
      "settings": "nothing - the card's own support links"
    },
    {
      "id": "contact",
      "name": "Contact form",
      "settings": "nothing - a contact form into Messages"
    },
    {
      "id": "contact_buttons",
      "name": "Call, WhatsApp or email",
      "settings": "call, whatsapp, email (true or false)"
    },
    {
      "id": "gallery",
      "name": "Photo gallery",
      "settings": "heading, fit (natural or frame), images: [{ id, title, description }] - its photos, up to 30; new photos are added on the website screen"
    },
    {
      "id": "cards",
      "name": "Cards list",
      "settings": "items: [{ id?, title, body, and where the card goes: page (the id of one of this website's pages) or url (another website's address) }] - up to 12"
    },
    {
      "id": "cta",
      "name": "Work with me",
      "settings": "heading, body, buttonLabel, and where the button goes: buttonPage (the id of one of this website's pages) or buttonUrl (another website's address) - one of the two. Its picture is added on the website screen"
    },
    {
      "id": "faq",
      "name": "Questions & answers",
      "settings": "items: [{ id?, question, answer }] - up to 20"
    },
    {
      "id": "events",
      "name": "Events",
      "settings": "items: [{ id?, title, date (YYYY-MM-DD), time (HH:MM), endTime, zone (an IANA zone like Asia/Jerusalem), where, body, url, urlLabel }] - up to 20; past (hide, dim or list), sort (soonest or newest), visitorTime"
    },
    {
      "id": "articles",
      "name": "Blog",
      "settings": "count (0, 3, 6, 9, 12; 0 is all of them)"
    },
    {
      "id": "music",
      "name": "Music player",
      "settings": "heading, items: [{ id?, link (a Spotify, Apple Music, Apple Podcasts or SoundCloud link, or Bandcamp's embed code), title }] - up to 6"
    },
    {
      "id": "live",
      "name": "Live numbers",
      "settings": "heading, feedId (a live source this Space already has), perRow"
    }
  ],
  "themes": [
    {
      "id": "cobalt",
      "name": "Cobalt",
      "free": true
    },
    {
      "id": "pearl",
      "name": "Pearl",
      "free": false
    },
    {
      "id": "mist",
      "name": "Mist",
      "free": false
    },
    {
      "id": "sky",
      "name": "Sky",
      "free": true
    },
    {
      "id": "sage",
      "name": "Sage",
      "free": true
    },
    {
      "id": "sand",
      "name": "Sand",
      "free": false
    },
    {
      "id": "blossom",
      "name": "Blossom",
      "free": false
    },
    {
      "id": "honey",
      "name": "Honey",
      "free": true
    },
    {
      "id": "crimson",
      "name": "Crimson",
      "free": true
    },
    {
      "id": "sunset",
      "name": "Sunset",
      "free": false
    },
    {
      "id": "terracotta",
      "name": "Terracotta",
      "free": false
    },
    {
      "id": "berry",
      "name": "Berry",
      "free": false
    },
    {
      "id": "royal",
      "name": "Royal",
      "free": false
    },
    {
      "id": "ocean",
      "name": "Ocean",
      "free": true
    },
    {
      "id": "teal",
      "name": "Teal",
      "free": false
    },
    {
      "id": "forest",
      "name": "Forest",
      "free": false
    },
    {
      "id": "noir",
      "name": "Noir",
      "free": true
    },
    {
      "id": "midnight",
      "name": "Midnight",
      "free": true
    },
    {
      "id": "espresso",
      "name": "Espresso",
      "free": false
    },
    {
      "id": "graphite",
      "name": "Graphite",
      "free": false
    }
  ],
  "paidThemes": true,
  "pageLimit": {
    "used": 5,
    "limit": null
  },
  "limits": {
    "pageTitleCharacters": 60,
    "pageDescriptionCharacters": 200,
    "panelsPerPage": 30
  },
  "shownToSearchEngines": false,
  "editAt": "https://tublish.com/dashboard/s/myname/website"
}

PATCH/spaces/{space}/website

Change the website

Changes one Space's website. changes is a list, applied in order; each is one of: online (on: whether the Space's root shows the website - it needs a Home page), theme (a theme id from GET /spaces/{space}/website), layout (menu, content: left, center or right), design (builds a whole website from one of the designs - only while the website has no pages; starting over happens on the website screen, where the old one can be undone), add_page (a ready-made page by ready - blog, faq, events, donate or videos, each with its own panels - or a page of the person's own by title; its address is made from the title once and never moves; position puts it at that place in the menu counting from 1, never before Home; an optional new id - a UUID - lets later changes in the same list add panels to it; under, a page's id, puts it in that page's drop-down menu instead), change_page (title, description - the words search engines show, and when it is empty they show the Space's tagline and a short line about the page; the address stays; under: a page's id puts it in that page's drop-down menu, as its last page, and null moves it back to the main menu; next_prev: true puts Previous and Next links at the foot of the pages of the drop-down this page holds - the page itself, then the pages under it, in the menu's order - and false takes them off; only a page in the main menu that is not Home), remove_page (not Home; its panels and their pictures go with it, and the pages in its drop-down go back to the main menu), order_pages (every page by id - Home stays first, and each drop-down keeps its pages and moves with its page), add_panel (a kind on a page, with optional settings; position from 1, otherwise it goes last; an optional new id), change_panel (settings laid over what the panel holds - a field left out is kept), remove_panel and order_panels (every panel of a page, by id).

The rest of it

The menu is two levels deep: a page with a drop-down sits in the main menu, a page in a drop-down has none of its own, and Home never has one; under in GET /spaces/{space}/website names the page a page sits under.
A panel's settings are the fields GET /spaces/{space}/website lists for its kind; a button (buttonPage) or a card (page) can go to one of the website's own pages by its id instead of to another website's address - the visitor stays on the website, and the link follows the page if it is renamed; for a list (cards, faq, events, music, a gallery's images), items replaces the whole list - an item naming an existing id is kept or changed, one without is new, one left out is removed - while add_items adds new ones after the stored ones.
Photos are added on the website screen: a chat keeps, retitles, reorders or removes a gallery's photos by id.
Everything is checked as the website editor checks it, on the website as it will stand after all of them: one refused change means nothing is changed, and the answer says which change and why.
While visitors could see the website (changesWaitForThePerson in GET /spaces/{space}/website), NOTHING is written: a Send block in the conversation lists every change, and its Apply button - which only the person can press - writes them all, or the person answers at the address in the reply; the press refuses if the website changed in Tublish in between.
If the person has let this assistant act without asking (sendsWithoutAsking in GET /account), or nobody but the person could see the website yet, the changes are made at once and the Send block is a receipt.
Every change is listed on the person's Assistants screen, labeled with this assistant.

  • spacein the addressstringrequired

  • changesin the bodyarray of objectrequired

Example: Build a whole website from one of the designs

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/website

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/website \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "design",
      "design": "channel"
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/website", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "design",
        "design": "channel"
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/website",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "design",
          "design": "channel",
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "site",
    "lines": [
      {
        "what": "Theme",
        "value": "Midnight"
      },
      {
        "what": "Adds a page",
        "value": "Home",
        "detail": "myname.tublish.com"
      },
      {
        "what": "Adds a panel: Big banner",
        "note": "Home",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a panel: Latest video",
        "note": "Home",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a panel: Video grid",
        "note": "Home",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a panel: Subscribe box",
        "note": "Home",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a panel: Link buttons",
        "note": "Home",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a page",
        "value": "About",
        "detail": "myname.tublish.com/about"
      },
      {
        "what": "Adds a panel: Text",
        "value": "About me",
        "note": "About",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a page",
        "value": "Contact",
        "detail": "myname.tublish.com/contact"
      },
      {
        "what": "Adds a panel: Contact form",
        "note": "Contact",
        "noteLabel": "On the page"
      },
      {
        "what": "Adds a page",
        "value": "Terms",
        "detail": "myname.tublish.com/terms"
      },
      {
        "what": "Adds a panel: Text",
        "value": "Terms",
        "note": "Terms",
        "noteLabel": "On the page"
      }
    ],
    "address": "https://myname.tublish.com"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com"
  }
}
Example: Add a Recipes page

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/website

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/website \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "add_page",
      "title": "Recipes"
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/website", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "add_page",
        "title": "Recipes"
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/website",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "add_page",
          "title": "Recipes",
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "site",
    "lines": [
      {
        "what": "Adds a page",
        "value": "Recipes",
        "detail": "myname.tublish.com/recipes"
      }
    ],
    "address": "https://myname.tublish.com"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com"
  }
}
Example: Put the website online, in a new theme

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/website

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/website \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "theme",
      "theme": "sage"
    },
    {
      "do": "online",
      "on": true
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/website", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "theme",
        "theme": "sage"
      },
      {
        "do": "online",
        "on": true
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/website",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "theme",
          "theme": "sage",
        },
        {
          "do": "online",
          "on": True,
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "site",
    "lines": [
      {
        "what": "Theme",
        "value": "Sage"
      },
      {
        "what": "Puts your website online"
      }
    ],
    "address": "https://myname.tublish.com"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com"
  }
}

Media kit

GET/spaces/{space}/kit

The media kit of a Space

Read-only key

One Space's media kit - a one-page sheet for brands and sponsors at its own address, hidden from search engines, with the person's numbers, a short About text and what they can do for a brand.

The rest of it

Returns whether it is online (the kit's own switch) and visitorsSeeIt (the Space's address online too), planAllowsThePage (the page itself comes with the Plus plan and up; everything else can be set on any plan), the language it speaks (the Space's own), about, the services one per line, its theme and layout with the themes and layouts to pick from (the kit's own, not the card's), the four fonts - ltrHead and ltrBody for Latin letters and every number, rtlHead and rtlBody for the kit's second alphabet (Hebrew or Arabic, written right to left, or Korean on a Korean kit) - each with the letters it is for, what it is picked (null follows the theme), what it drawsIn now, and the faces it offered, and the limits.
numbers are what the platforms reported, read nightly: nobody can change them, which is what the page's seal promises a brand.
The kit's picture - a downloadable image of the numbers in three shapes - is drawn in the person's own browser, at downloadAt; an assistant cannot make one.
changesWaitForThePerson is true while visitors could see a change: a change then goes through a Send block.
editAt is where the person edits the kit in Tublish.
Reads only.

  • spacein the addressstringrequired

Example: Read the media kit

URL

GEThttps://tublish.com/api/v1/spaces/myname/kit

Request

curl https://tublish.com/api/v1/spaces/myname/kit \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/kit", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/kit",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "name": "Maya's Kitchen",
  "address": "https://myname.tublish.com/kit",
  "online": false,
  "addressOnline": false,
  "visitorsSeeIt": false,
  "planAllowsThePage": true,
  "changesWaitForThePerson": false,
  "language": {
    "is": "en",
    "name": "English"
  },
  "about": null,
  "services": [],
  "theme": "cream",
  "layout": "press",
  "fonts": {
    "ltrHead": {
      "letters": "latin",
      "picked": null,
      "drawsIn": "Playfair Display",
      "offered": [
        {
          "id": "playfair",
          "name": "Playfair Display"
        },
        {
          "id": "baskerville",
          "name": "Libre Baskerville"
        },
        {
          "id": "fraunces",
          "name": "Fraunces"
        },
        {
          "id": "archivo",
          "name": "Archivo"
        },
        {
          "id": "outfit",
          "name": "Outfit"
        },
        {
          "id": "grotesk",
          "name": "Space Grotesk"
        }
      ]
    },
    "ltrBody": {
      "letters": "latin",
      "picked": null,
      "drawsIn": "Inter",
      "offered": [
        {
          "id": "baskerville",
          "name": "Libre Baskerville"
        },
        {
          "id": "fraunces",
          "name": "Fraunces"
        },
        {
          "id": "lora",
          "name": "Lora"
        },
        {
          "id": "archivo",
          "name": "Archivo"
        },
        {
          "id": "grotesk",
          "name": "Space Grotesk"
        },
        {
          "id": "inter",
          "name": "Inter"
        }
      ]
    },
    "rtlHead": {
      "letters": "hebrew",
      "picked": null,
      "drawsIn": "Frank Ruhl Libre",
      "offered": [
        {
          "id": "frankruhl",
          "name": "Frank Ruhl Libre"
        },
        {
          "id": "notoserifhe",
          "name": "Noto Serif Hebrew"
        },
        {
          "id": "miriam",
          "name": "Miriam Libre"
        },
        {
          "id": "heebo",
          "name": "Heebo"
        },
        {
          "id": "assistant",
          "name": "Assistant"
        },
        {
          "id": "rubik",
          "name": "Rubik"
        }
      ]
    },
    "rtlBody": {
      "letters": "hebrew",
      "picked": null,
      "drawsIn": "Heebo",
      "offered": [
        {
          "id": "frankruhl",
          "name": "Frank Ruhl Libre"
        },
        {
          "id": "notoserifhe",
          "name": "Noto Serif Hebrew"
        },
        {
          "id": "heebo",
          "name": "Heebo"
        },
        {
          "id": "assistant",
          "name": "Assistant"
        },
        {
          "id": "rubik",
          "name": "Rubik"
        },
        {
          "id": "notosanshe",
          "name": "Noto Sans Hebrew"
        },
        {
          "id": "arimo",
          "name": "Arimo"
        }
      ]
    }
  },
  "themes": [
    {
      "id": "cream",
      "name": "Cream"
    },
    {
      "id": "blush",
      "name": "Blush"
    },
    {
      "id": "clay",
      "name": "Clay"
    },
    {
      "id": "sage",
      "name": "Sage"
    },
    {
      "id": "ocean",
      "name": "Ocean"
    },
    {
      "id": "plum",
      "name": "Plum"
    },
    {
      "id": "ink",
      "name": "Ink"
    },
    {
      "id": "noir",
      "name": "Noir"
    }
  ],
  "layouts": [
    {
      "id": "press",
      "name": "Press sheet",
      "arrangement": "Your photo and name on top, then the numbers, your work, and how to reach you."
    },
    {
      "id": "rail",
      "name": "Side rail",
      "arrangement": "Photo, contact and numbers down one side; your writing down the other."
    },
    {
      "id": "spotlight",
      "name": "Spotlight",
      "arrangement": "One big picture, with your numbers beside it."
    }
  ],
  "limits": {
    "aboutCharacters": 1000,
    "servicesCharacters": 1000,
    "servicesShown": 12
  },
  "numbers": {
    "readOn": "2026-12-01",
    "subscribersOnTheMailingList": 3,
    "followersGainedThisMonth": 627,
    "platforms": [
      {
        "platform": "youtube",
        "followers": 4831,
        "views": 182000,
        "videos": 64,
        "averageViewsPerVideo": 2844,
        "engagementRatePercent": null
      },
      {
        "platform": "instagram",
        "followers": 13459,
        "views": null,
        "videos": null,
        "averageViewsPerVideo": null,
        "engagementRatePercent": null
      },
      {
        "platform": "facebook",
        "followers": 2587,
        "views": null,
        "videos": null,
        "averageViewsPerVideo": null,
        "engagementRatePercent": null
      }
    ]
  },
  "picture": {
    "shapes": [
      {
        "id": "post",
        "width": 1080,
        "height": 1350
      },
      {
        "id": "square",
        "width": 1080,
        "height": 1080
      },
      {
        "id": "story",
        "width": 1080,
        "height": 1920
      }
    ],
    "downloadAt": "https://tublish.com/dashboard/s/myname/kit"
  },
  "editAt": "https://tublish.com/dashboard/s/myname/kit"
}

PATCH/spaces/{space}/kit

Change a media kit

Changes one Space's media kit. changes is a list, applied in order; each is one of: words (about, the short text about the person, and services, what they can do for a brand as a list, one item each - each one left out is kept, and an empty one takes it off), theme (a theme id from GET /spaces/{space}/kit), layout (a layout id from GET /spaces/{space}/kit), fonts (ltrHead, ltrBody, rtlHead, rtlBody - each one left out is kept, a face must be one that slot offers in GET /spaces/{space}/kit, and an empty one goes back to the theme's choice) and online (on: whether the kit's page answers at its address - switching it on needs the Plus plan or above; switching it off is always allowed).

The rest of it

The numbers cannot be changed by anybody.
Everything is checked as the kit screen checks it: one refused change means nothing is changed, and the answer says which change and why.
While visitors could see the result (changesWaitForThePerson in GET /spaces/{space}/kit, or a change that puts the kit online), NOTHING is written: a Send block in the conversation lists every change, and its Apply button - which only the person can press - writes them all, or the person answers at the address in the reply; the press refuses if the kit changed in Tublish in between.
If the person has let this assistant act without asking (sendsWithoutAsking in GET /account), or nobody but the person could see the kit, the changes are made at once and the Send block is a receipt.
Every change is listed on the person's Assistants screen, labeled with this assistant.

  • spacein the addressstringrequired

  • changesin the bodyarray of objectrequired

Example: Write the media kit's About and services

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/kit

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/kit \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "do": "words",
      "about": "Weeknight recipes for busy families, filmed in a real home kitchen.",
      "services": [
        "Recipe videos",
        "Sponsored posts",
        "Product reviews"
      ]
    }
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/kit", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "do": "words",
        "about": "Weeknight recipes for busy families, filmed in a real home kitchen.",
        "services": [
          "Recipe videos",
          "Sponsored posts",
          "Product reviews"
        ]
      }
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/kit",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "changes": [
        {
          "do": "words",
          "about": "Weeknight recipes for busy families, filmed in a real home kitchen.",
          "services": [
            "Recipe videos",
            "Sponsored posts",
            "Product reviews",
          ],
        },
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "lang": "en",
  "change": {
    "surface": "kit",
    "lines": [
      {
        "what": "About you",
        "value": "Weeknight recipes for busy families, filmed in a real home kitchen."
      },
      {
        "what": "What you can do for them",
        "value": "Recipe videos\nSponsored posts\nProduct reviews"
      }
    ],
    "address": "https://myname.tublish.com/kit"
  },
  "done": {
    "kind": "applied",
    "mode": "private",
    "url": "https://myname.tublish.com/kit"
  }
}

Numbers

GET/spaces/{space}/numbers

A Space's numbers

Read-only key

The numbers of one Space, as its Analytics screen shows them.

The rest of it

which: "visitors" (the default): visits and visitors to the card and the website - a visitor is one person on one day - by day, where they came from, country, device, and how many visits arrived from a link.
which: "pages": each page of the website (the card counts as one page) with its visits and the measured average time on it.
which: "taps": which buttons on the card and the website people tapped, by the button's name - and which of the card's gallery photos that open an address of their own.
which: "followers": follower counts per connected platform, recorded by Tublish once a night, with the change across the window, and whoFollows - Meta's own age, gender, country and city shares of a connected Instagram's followers (countries and cities for Facebook), read once a night.
which: "months": each connected Instagram, Facebook and LinkedIn Page account's own totals for this calendar month so far (UTC), and the month before once Tublish has read it - views (every time something was shown), reach (each person once), likes, comments, shares, saves, clicks, interactions and Story views, only the ones that platform gives - for everything on that account, not only what went through Tublish; read once a night, readAt says when.
A sent post's or video's own numbers are on each platform line of GET /spaces/{space}/posts and GET /spaces/{space}/videos (which: "sent").
range is the window (7d, 30d, 90d, 1y, all) for the others; each plan keeps a limited history, and a window beyond it is refused with the windows it can read.
show narrows visitors, pages and taps to the card (ecard) or the website (site).
Reads only.

  • spacein the addressstringrequired

  • whichin the queryone of "visitors", "pages", "taps", "followers", "months"

  • rangein the queryone of "7d", "30d", "90d", "1y", "all"

  • showin the queryone of "all", "ecard", "site"

Example: Visitors over the last 30 days

URL

GEThttps://tublish.com/api/v1/spaces/myname/numbers?which=visitors&range=30d

Request

curl 'https://tublish.com/api/v1/spaces/myname/numbers?which=visitors&range=30d' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/numbers?which=visitors&range=30d", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/numbers?which=visitors&range=30d",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "which": "visitors",
  "window": "30d",
  "since": "2026-11-03",
  "counting": "the card and the website",
  "visits": 46,
  "visitors": 19,
  "visitorMeans": "one person on one day - the same person on two days counts twice",
  "visitsFromALink": 37,
  "days": [
    {
      "day": "2026-11-05",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-06",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-07",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-08",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-09",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-10",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-11",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-12",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-13",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-14",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-15",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-16",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-17",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-18",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-19",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-20",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-21",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-22",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-23",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-24",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-25",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-26",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-27",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-28",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-11-29",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-11-30",
      "visits": 1,
      "visitors": 1
    },
    {
      "day": "2026-12-01",
      "visits": 2,
      "visitors": 2
    },
    {
      "day": "2026-12-02",
      "visits": 2,
      "visitors": 2
    }
  ],
  "cameFrom": [
    {
      "name": "instagram.com",
      "visits": 10,
      "visitors": 10
    },
    {
      "name": "www.facebook.com",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "www.google.com",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "www.youtube.com",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "direct, or an app that doesn't say",
      "visits": 9,
      "visitors": 9
    }
  ],
  "countries": [
    {
      "name": "USA",
      "visits": 10,
      "visitors": 10
    },
    {
      "name": "Australia",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "Canada",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "United Kingdom",
      "visits": 9,
      "visitors": 9
    },
    {
      "name": "Israel",
      "visits": 9,
      "visitors": 9
    }
  ],
  "devices": [
    {
      "name": "phone",
      "visits": 34,
      "visitors": 19
    },
    {
      "name": "desktop",
      "visits": 12,
      "visitors": 12
    }
  ],
  "where": [
    {
      "name": "website",
      "visits": 23,
      "visitors": 19
    },
    {
      "name": "card",
      "visits": 12,
      "visitors": 12
    },
    {
      "name": "website",
      "visits": 11,
      "visitors": 11
    }
  ],
  "lastVisitEver": "2026-12-02T15:22:36.694+00:00",
  "olderVisitsKept": false
}
Example: Followers on each platform

URL

GEThttps://tublish.com/api/v1/spaces/myname/numbers?which=followers&range=90d

Request

curl 'https://tublish.com/api/v1/spaces/myname/numbers?which=followers&range=90d' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/numbers?which=followers&range=90d", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/numbers?which=followers&range=90d",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "which": "followers",
  "window": "90d",
  "platforms": [
    {
      "platform": "YouTube",
      "followers": 4831,
      "changeInWindow": 711,
      "since": "2026-09-13",
      "views": 182000,
      "videos": 64,
      "readOn": "2026-12-01"
    },
    {
      "platform": "Instagram",
      "followers": 13459,
      "changeInWindow": 1659,
      "since": "2026-09-13",
      "views": null,
      "videos": null,
      "readOn": "2026-12-01"
    },
    {
      "platform": "Facebook",
      "followers": 2587,
      "changeInWindow": 237,
      "since": "2026-09-13",
      "views": null,
      "videos": null,
      "readOn": "2026-12-01"
    }
  ],
  "note": "Recorded once a night by Tublish. YouTube rounds its subscriber count; a null count is one the platform would not give.",
  "whoFollows": [
    {
      "platform": "Instagram",
      "readOn": "2026-12-02",
      "age": [
        {
          "range": "18-24",
          "percent": 22
        },
        {
          "range": "25-34",
          "percent": 39
        },
        {
          "range": "35-44",
          "percent": 24
        },
        {
          "range": "45-54",
          "percent": 10
        },
        {
          "range": "55-64",
          "percent": 4
        },
        {
          "range": "65+",
          "percent": 1
        }
      ],
      "gender": [
        {
          "gender": "women",
          "percent": 64
        },
        {
          "gender": "men",
          "percent": 34
        },
        {
          "gender": "not given",
          "percent": 2
        }
      ],
      "countries": [
        {
          "country": "USA",
          "code": "US",
          "percent": 46
        },
        {
          "country": "United Kingdom",
          "code": "GB",
          "percent": 12
        },
        {
          "country": "Canada",
          "code": "CA",
          "percent": 8
        }
      ],
      "cities": [
        {
          "city": "Brooklyn, New York",
          "percent": 7
        },
        {
          "city": "Los Angeles, California",
          "percent": 5
        }
      ]
    },
    {
      "platform": "Facebook",
      "readOn": "2026-12-02",
      "countries": [
        {
          "country": "USA",
          "code": "US",
          "percent": 66
        },
        {
          "country": "Canada",
          "code": "CA",
          "percent": 11
        }
      ],
      "cities": [
        {
          "city": "Chicago, Illinois",
          "percent": 6
        }
      ]
    }
  ],
  "whoFollowsNote": "Meta's own shares of the Instagram and Facebook followers, read once a night: age and gender on Instagram only (Meta retired them for Pages). A percent is of the followers Meta knows this about (its top 45 values), so the counts need not add up to the follower count; Meta shares nothing under 100 followers, and its figures can be two days behind."
}

Subscribers and newsletters

Subscribers

GET/spaces/{space}/subscribers

A Space's subscribers

Read-only key

The mailing list of one Space: how many subscribers it has, where they signed up, and their email addresses, newest first, a page at a time (limit, page).

The rest of it

search finds addresses containing those letters.
These are real people's addresses, given to the person who owns the Space.
Reads only.

  • spacein the addressstringrequired

  • searchin the querystring

  • limitin the queryinteger

  • pagein the queryinteger

Example: The subscriber list

URL

GEThttps://tublish.com/api/v1/spaces/myname/subscribers?limit=10

Request

curl 'https://tublish.com/api/v1/spaces/myname/subscribers?limit=10' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/subscribers?limit=10", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/subscribers?limit=10",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "total": 3,
  "bySource": {
    "the E-Business card's subscribe box": 1,
    "the website's subscribe box": 1,
    "added from a message they sent": 1
  },
  "page": 1,
  "subscribers": [
    {
      "email": "rita.k@example.com",
      "cameFrom": "added from a message they sent",
      "joinedAt": "2026-12-01T15:22:36.304+00:00"
    },
    {
      "email": "sam.lee@example.com",
      "cameFrom": "the website's subscribe box",
      "joinedAt": "2026-11-27T15:22:36.304+00:00"
    },
    {
      "email": "noa.r@example.com",
      "cameFrom": "the E-Business card's subscribe box",
      "joinedAt": "2026-11-20T15:22:36.304+00:00"
    }
  ]
}

POST/spaces/{space}/subscribers/sync

Put subscribers on the mailing list

Puts one Space's subscribers who are not on its mailing list yet onto that list at the person's own mailing service - the Subscribers screen's own button.

The rest of it

Nobody is emailed by Tublish; up to 200 go in one call, and the answer says how many went, how many the service refused and why, and whether more are waiting (call again).
A mailing service has to be connected to the Space (GET /spaces/{space}/newsletters says whether one is, and how many are waiting).

  • spacein the addressstringrequired

Example: Copy new subscribers to the mailing service - with none connected

URL

POSThttps://tublish.com/api/v1/spaces/myname/subscribers/sync

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/subscribers/sync \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/subscribers/sync", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/subscribers/sync",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer422 Unprocessable Content

{
  "error": {
    "code": "API-20",
    "message": "No mailing service is connected to this Space, so there is no list to send to. The person connects Brevo, Mailchimp or MailerLite with their own key on Tublish's Subscribers screen: https://tublish.com/dashboard/s/myname/subscribers."
  }
}

Newsletters

GET/spaces/{space}/newsletters

Newsletters of a Space

Read-only key

Where one Space stands with newsletters, and what went out.

The rest of it

canSend says whether the plan sends newsletters; connected, service and list say which of the person's own mailing services (Brevo, Mailchimp or MailerLite, connected with their own key) and which list a newsletter goes to, and connectedBy which teammate connected that service ("by Dana"), absent when the person did; sender is the name and address it comes from; missing names what stands in the way of a send, with whatFixesIt.
newSubscribersJoinTheList says whether people who subscribe on the Space are put on that list as they sign up, notOnTheListYet how many subscribers are not on it yet (POST /spaces/{space}/subscribers/sync puts them there), and lastProblem the last time putting one there failed.
sent lists the newsletters that went out, newest first, each with its id, subject, list, service, whether it went and why not, via when an assistant sent it, and by when a teammate did ("by Dana"); with id the answer is that one newsletter with its words.
A newsletter is at most 200 characters of subject and 20000 of words, and POST /spaces/{space}/newsletters sends one.
mailingAt is the Mailing screen in Tublish.
Reads only.

  • spacein the addressstringrequired

  • limitin the queryinteger

Example: The newsletters sent so far

URL

GEThttps://tublish.com/api/v1/spaces/myname/newsletters?limit=5

Request

curl 'https://tublish.com/api/v1/spaces/myname/newsletters?limit=5' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/newsletters?limit=5", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/newsletters?limit=5",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "canSend": true,
  "connected": false,
  "service": null,
  "list": null,
  "sender": null,
  "missing": "notConnected",
  "whatFixesIt": "No mailing service is connected to this Space, so there is no list to send to. The person connects Brevo, Mailchimp or MailerLite with their own key on Tublish's Subscribers screen: https://tublish.com/dashboard/s/myname/subscribers.",
  "newSubscribersJoinTheList": false,
  "notOnTheListYet": 3,
  "lastProblem": null,
  "sendsWaitForThePerson": false,
  "limits": {
    "subject": 200,
    "words": 20000
  },
  "sent": [
    {
      "id": "a18340f6-be6b-4295-94a3-e9bf3813f006",
      "subject": "This week: soup season",
      "list": "Maya's Kitchen list",
      "service": "Brevo",
      "sent": true,
      "at": "2026-11-25T15:22:36.502+00:00"
    }
  ],
  "mailingAt": "https://tublish.com/dashboard/s/myname/email"
}

GET/spaces/{space}/newsletters/{id}

Newsletters of a Space

Read-only key

Where one Space stands with newsletters, and what went out.

The rest of it

canSend says whether the plan sends newsletters; connected, service and list say which of the person's own mailing services (Brevo, Mailchimp or MailerLite, connected with their own key) and which list a newsletter goes to, and connectedBy which teammate connected that service ("by Dana"), absent when the person did; sender is the name and address it comes from; missing names what stands in the way of a send, with whatFixesIt.
newSubscribersJoinTheList says whether people who subscribe on the Space are put on that list as they sign up, notOnTheListYet how many subscribers are not on it yet (POST /spaces/{space}/subscribers/sync puts them there), and lastProblem the last time putting one there failed.
sent lists the newsletters that went out, newest first, each with its id, subject, list, service, whether it went and why not, via when an assistant sent it, and by when a teammate did ("by Dana"); with id the answer is that one newsletter with its words.
A newsletter is at most 200 characters of subject and 20000 of words, and POST /spaces/{space}/newsletters sends one.
mailingAt is the Mailing screen in Tublish.
Reads only.

  • spacein the addressstringrequired

  • idin the addressstringrequired

Example: Read one newsletter that went out

URL

GEThttps://tublish.com/api/v1/spaces/myname/newsletters/a18340f6-be6b-4295-94a3-e9bf3813f006

Request

curl https://tublish.com/api/v1/spaces/myname/newsletters/a18340f6-be6b-4295-94a3-e9bf3813f006 \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/newsletters/a18340f6-be6b-4295-94a3-e9bf3813f006", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/newsletters/a18340f6-be6b-4295-94a3-e9bf3813f006",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "newsletter": {
    "id": "a18340f6-be6b-4295-94a3-e9bf3813f006",
    "subject": "This week: soup season",
    "list": "Maya's Kitchen list",
    "service": "Brevo",
    "sent": true,
    "at": "2026-11-25T15:22:36.502+00:00",
    "body": "Hi!\n\nThree soups for the first cold week, each one in a single pot.\n\nMaya"
  }
}

POST/spaces/{space}/newsletters

Send a newsletter

Sends a newsletter from one Space to everyone on its mailing list, through the person's own mailing service - it cannot be taken back.

The rest of it

subject is at most 200 characters and body at most 20000, plain words: a blank line starts a new paragraph, and a web address becomes a link.
It is checked as the Mailing screen checks it: the plan, the connected service and list, and the sender (GET /spaces/{space}/newsletters says what is missing, and what fixes it).
NOTHING is sent here: a Send block in the conversation shows the subject, the words, the list and the sender, and its Send button - which only the person can press, and which asks twice - sends it, or the person answers at the address in the reply.
If the person has let this assistant send without asking (sendsWithoutAsking in GET /account), it is sent at once and the Send block is a receipt.
Each newsletter is listed on the Mailing screen and on the person's Assistants screen, labeled with this assistant.
In a Space of somebody else's team (teamSpaces in GET /account) whose sendsWaitForOk is true, Send - or the switch - puts it on the Owner's "Waiting for your OK" list in Tublish instead, and nothing goes out until the Owner says yes.

  • spacein the addressstringrequired

  • subjectin the bodystringrequired

  • bodyin the bodystringrequired

Example: Send a newsletter - with no mailing service connected

URL

POSThttps://tublish.com/api/v1/spaces/myname/newsletters

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/newsletters \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "subject": "Three dinners under 20 minutes",
  "body": "Hi!\n\nThis week: lemon chicken, a pantry pasta and the fastest fried rice I know.\n\nMaya"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/newsletters", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "subject": "Three dinners under 20 minutes",
    "body": "Hi!\n\nThis week: lemon chicken, a pantry pasta and the fastest fried rice I know.\n\nMaya"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/newsletters",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "subject": "Three dinners under 20 minutes",
      "body": "Hi!\n\nThis week: lemon chicken, a pantry pasta and the fastest fried rice I know.\n\nMaya",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer422 Unprocessable Content

{
  "error": {
    "code": "API-20",
    "message": "Nothing was sent. No mailing service is connected to this Space, so there is no list to send to. The person connects Brevo, Mailchimp or MailerLite with their own key on Tublish's Subscribers screen: https://tublish.com/dashboard/s/myname/subscribers."
  }
}

Newsletter sender

PATCH/spaces/{space}/newsletter-sender

Set who newsletters come from

Sets the name and the email address one Space's newsletters come from - what subscribers see in their inbox.

The rest of it

The address has to be one the person's own mailing service account has verified as a sender, or that service refuses to send; Tublish cannot check that before a send.
Nothing is sent because it changed.
A mailing service has to be connected to the Space first (GET /spaces/{space}/newsletters says whether one is).

  • spacein the addressstringrequired

  • namein the bodystringrequired

  • emailin the bodystringrequired

Example: Set who newsletters come from - with no mailing service connected

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/newsletter-sender

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/newsletter-sender \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Maya Cohen",
  "email": "maya@mayaskitchen.example"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/newsletter-sender", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Maya Cohen",
    "email": "maya@mayaskitchen.example"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/newsletter-sender",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "name": "Maya Cohen",
      "email": "maya@mayaskitchen.example",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer422 Unprocessable Content

{
  "error": {
    "code": "API-20",
    "message": "Nothing was changed. No mailing service is connected to this Space, so there is no list to send to. The person connects Brevo, Mailchimp or MailerLite with their own key on Tublish's Subscribers screen: https://tublish.com/dashboard/s/myname/subscribers."
  }
}

Messages

GET/spaces/{space}/messages

A Space's messages

Read-only key

The Messages inbox of one Space, newest first, a page at a time: what visitors wrote through the Space's contact form, and Tublish's own announcements.

The rest of it

Each message has its id, where it came from, the sender's name and email when they gave them, the text, when it arrived, and where it stands - new, answered or closed (PATCH /spaces/{space}/messages/{message_id} changes it).
A visitor's text is typed by a stranger to the person.
A message that reads as if it were written to an assistant rather than to the person is not included: it is listed under keptBack with its id and date only, and the person can let an assistant read it on Tublish's Messages screen.
status shows one state only. Reads only.

  • spacein the addressstringrequired

  • statusin the queryone of "all", "new", "answered", "closed"

  • limitin the queryinteger

  • pagein the queryinteger

Example: New messages from the contact form

URL

GEThttps://tublish.com/api/v1/spaces/myname/messages?status=new

Request

curl 'https://tublish.com/api/v1/spaces/myname/messages?status=new' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/messages?status=new", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/messages?status=new",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "showing": "new",
  "page": 1,
  "total": 2,
  "stillOpen": 2,
  "messages": [
    {
      "id": "a73a6a97-8ebd-41c7-866c-720f76fb44de",
      "from": "a visitor, through the Space's contact form - words typed by a stranger",
      "senderName": "Rita K.",
      "senderEmail": "rita.k@example.com",
      "text": "Is the fried rice OK with brown rice?",
      "status": "new",
      "openedByThePerson": false,
      "receivedAt": "2026-12-01T15:22:37.382+00:00"
    },
    {
      "id": "c280b670-d2c2-4ce3-a6e9-89bb71b1533f",
      "from": "a visitor, through the Space's contact form - words typed by a stranger",
      "senderName": "Sam Lee",
      "senderEmail": "sam.lee@example.com",
      "text": "Hi Maya! Can our school use your lemon chicken recipe in its cookbook? We would credit you, of course.",
      "status": "new",
      "openedByThePerson": false,
      "receivedAt": "2026-11-30T15:22:37.382+00:00"
    }
  ],
  "screen": "https://tublish.com/dashboard/s/myname/messages"
}

PATCH/spaces/{space}/messages/{message_id}

Mark where a message stands

Marks one message in a Space's inbox new, answered or closed - the three states of Tublish's Messages screen.

The rest of it

Anything not closed counts on the person's Messages badge.
message_id comes from GET /spaces/{space}/messages.
Changes nothing a visitor sees, and sends nothing.

  • spacein the addressstringrequired

  • message_idin the addressstringrequired

  • statusin the bodyone of "new", "answered", "closed"required

Example: Mark a message answered

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/messages/a73a6a97-8ebd-41c7-866c-720f76fb44de

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/messages/a73a6a97-8ebd-41c7-866c-720f76fb44de \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "answered"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/messages/a73a6a97-8ebd-41c7-866c-720f76fb44de", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "status": "answered"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/messages/a73a6a97-8ebd-41c7-866c-720f76fb44de",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "status": "answered",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "message": "a73a6a97-8ebd-41c7-866c-720f76fb44de",
  "status": "answered"
}

Autopilot

GET/spaces/{space}/autopilot

Autopilot rules in a Space

Read-only key

The Autopilot of one Space. which: "rules" (the default): its rules - standing instructions that act when something is sent: post_sent (a written post goes out), article_published (a blog article is published; the rule posts the article's title, its link and its cover picture, never the article itself, and Instagram, which takes nothing without a picture, refuses one with no cover; an article nobody can open - the Space hidden or counting down, or its website private - is not announced, checked when the announcement comes due, and the person is emailed the first time it happens for an article) or video_sent (a video sent through Tublish is up where people watch it; the rule announces it with the person's line, the title and the link).

The rest of it

An article_published rule comes with the Plus plan and up; the other two with the Pro plan and up; choices.triggers lists the ones this account's plan holds.
Each rule: its id, its name, pickedOnly (true: it acts only for a send that names it; false: on every send), whether it is on, restsOnPlan when the plan no longer holds its trigger (it does nothing; it can be paused or deleted, not changed or turned back on), its trigger, when it acts (afterMinutes after the event, or atTime in a time zone some days later), the platforms it posts to, a video rule's watch/line/shorts, and the rules screen's own sentence for it; also the choices a rule may use.
which: "waiting": what Autopilot has queued and will send, soonest first - each item's id (what DELETE /spaces/{space}/autopilot/waiting/{item_id} takes), what it announces, when, and to which platforms.
which: "log": the Actions Log, newest first (limit lines) - what Autopilot did and every change to it, each with who made it (Autopilot, the person, a teammate as "by Dana", or an assistant by name).
Reads only.

  • spacein the addressstringrequired

  • whichin the queryone of "rules", "waiting", "log"

  • limitin the queryinteger

Example: The Autopilot rules

URL

GEThttps://tublish.com/api/v1/spaces/myname/autopilot?which=rules

Request

curl 'https://tublish.com/api/v1/spaces/myname/autopilot?which=rules' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot?which=rules", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot?which=rules",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "rules": [
    {
      "id": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
      "name": "New article on Facebook",
      "pickedOnly": false,
      "on": true,
      "trigger": "article_published",
      "when": {
        "atTime": "18:00",
        "zone": "America/New_York",
        "daysLater": 0
      },
      "platforms": [
        {
          "id": "facebook",
          "name": "Facebook"
        }
      ],
      "sentence": "When I publish an article, at 6:00 PM New York time, send it to Facebook."
    }
  ],
  "choices": {
    "triggers": [
      "article_published",
      "post_sent",
      "video_sent"
    ],
    "afterMinutes": [
      0,
      60,
      360,
      1440,
      2880,
      4320,
      10080,
      20160,
      43200
    ],
    "atTimeDaysLater": {
      "min": 0,
      "max": 30
    },
    "maxRules": 20
  }
}
Example: What Autopilot will send next

URL

GEThttps://tublish.com/api/v1/spaces/myname/autopilot?which=waiting

Request

curl 'https://tublish.com/api/v1/spaces/myname/autopilot?which=waiting' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot?which=waiting", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot?which=waiting",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "waiting": [
    {
      "id": "f7534422-ca26-4b6a-82f1-1a6fdcb4077a",
      "announces": "a blog article",
      "title": "The fastest fried rice I know",
      "dueAt": "2026-12-02T16:24:02.005+00:00",
      "platforms": [
        "Facebook",
        "Instagram"
      ],
      "because": "a rule"
    }
  ]
}

POST/spaces/{space}/autopilot/rules

Save an Autopilot rule

Creates an Autopilot rule in a Space, or changes one when rule_id is given.

The rest of it

A rule acts only when something is sent, so saving one sends nothing.
trigger is one of GET /spaces/{space}/autopilot's triggers; platforms are ids of platforms connected to the Space; when is either { after_minutes } (one of GET /spaces/{space}/autopilot's afterMinutes) or { at_time: "09:00", zone: an IANA time zone, days_later }.
A video_sent rule also takes video: { watch, line, shorts } - where people watch (a connected platform, today YouTube), the person's own line above the title (up to 150 characters), and whether YouTube Shorts are announced too.
name names the rule; picked_only: true makes it act only for a send that names it (POST /spaces/{space}/videos/{video_id}/send's or POST /spaces/{space}/posts's autopilot.rules), and needs a name.
Names are unique in a Space, whatever the case.
A trigger the account's plan does not hold is refused (article_published is Plus and up, the others Pro and up).
The change is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • triggerin the bodyone of "post_sent", "article_published", "video_sent"required

  • platformsin the bodyarray of stringrequired

  • whenin the bodyobjectrequired

  • namein the bodystring

  • picked_onlyin the bodyboolean

  • videoin the bodyobject

Example: A rule: tell Facebook about every new article, at 18:00 New York time

URL

POSThttps://tublish.com/api/v1/spaces/myname/autopilot/rules

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/autopilot/rules \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "New article on Facebook",
  "trigger": "article_published",
  "platforms": [
    "facebook"
  ],
  "when": {
    "at_time": "18:00",
    "zone": "America/New_York",
    "days_later": 0
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/rules", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "New article on Facebook",
    "trigger": "article_published",
    "platforms": [
      "facebook"
    ],
    "when": {
      "at_time": "18:00",
      "zone": "America/New_York",
      "days_later": 0
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/rules",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "name": "New article on Facebook",
      "trigger": "article_published",
      "platforms": [
        "facebook",
      ],
      "when": {
        "at_time": "18:00",
        "zone": "America/New_York",
        "days_later": 0,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "rule": {
    "id": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
    "name": "New article on Facebook",
    "pickedOnly": false,
    "on": true,
    "trigger": "article_published",
    "when": {
      "atTime": "18:00",
      "zone": "America/New_York",
      "daysLater": 0
    },
    "platforms": [
      {
        "id": "facebook",
        "name": "Facebook"
      }
    ],
    "sentence": "When I publish an article, at 6:00 PM New York time, send it to Facebook."
  }
}

PATCH/spaces/{space}/autopilot/rules/{rule_id}

Save an Autopilot rule

Creates an Autopilot rule in a Space, or changes one when rule_id is given.

The rest of it

A rule acts only when something is sent, so saving one sends nothing.
trigger is one of GET /spaces/{space}/autopilot's triggers; platforms are ids of platforms connected to the Space; when is either { after_minutes } (one of GET /spaces/{space}/autopilot's afterMinutes) or { at_time: "09:00", zone: an IANA time zone, days_later }.
A video_sent rule also takes video: { watch, line, shorts } - where people watch (a connected platform, today YouTube), the person's own line above the title (up to 150 characters), and whether YouTube Shorts are announced too.
name names the rule; picked_only: true makes it act only for a send that names it (POST /spaces/{space}/videos/{video_id}/send's or POST /spaces/{space}/posts's autopilot.rules), and needs a name.
Names are unique in a Space, whatever the case.
A trigger the account's plan does not hold is refused (article_published is Plus and up, the others Pro and up).
The change is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • rule_idin the addressstringrequired

  • triggerin the bodyone of "post_sent", "article_published", "video_sent"required

  • platformsin the bodyarray of stringrequired

  • whenin the bodyobjectrequired

  • namein the bodystring

  • picked_onlyin the bodyboolean

  • videoin the bodyobject

Example: Change the rule: an hour after the article, on Facebook and Instagram

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "New article on Facebook and Instagram",
  "trigger": "article_published",
  "platforms": [
    "facebook",
    "instagram"
  ],
  "when": {
    "after_minutes": 60
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "New article on Facebook and Instagram",
    "trigger": "article_published",
    "platforms": [
      "facebook",
      "instagram"
    ],
    "when": {
      "after_minutes": 60
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "name": "New article on Facebook and Instagram",
      "trigger": "article_published",
      "platforms": [
        "facebook",
        "instagram",
      ],
      "when": {
        "after_minutes": 60,
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "rule": {
    "id": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
    "name": "New article on Facebook and Instagram",
    "pickedOnly": false,
    "on": true,
    "trigger": "article_published",
    "when": {
      "afterMinutes": 60
    },
    "platforms": [
      {
        "id": "facebook",
        "name": "Facebook"
      },
      {
        "id": "instagram",
        "name": "Instagram"
      }
    ],
    "sentence": "When I publish an article, an hour later, send it to Facebook and Instagram."
  }
}

POST/spaces/{space}/autopilot/rules/{rule_id}/pause

Pause, resume or delete an Autopilot rule

This address sets change to "pause" itself.

Pauses a rule (it queues nothing new; anything already waiting still goes), turns a paused one back on, or deletes it.

The rest of it

rule_id comes from GET /spaces/{space}/autopilot.
A rule that restsOnPlan cannot be turned back on.
The change is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • rule_idin the addressstringrequired

Example: Pause the rule

URL

POSThttps://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/pause

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/pause \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/pause", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/pause",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "rule": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
  "change": "pause"
}

POST/spaces/{space}/autopilot/rules/{rule_id}/resume

Pause, resume or delete an Autopilot rule

This address sets change to "resume" itself.

Pauses a rule (it queues nothing new; anything already waiting still goes), turns a paused one back on, or deletes it.

The rest of it

rule_id comes from GET /spaces/{space}/autopilot.
A rule that restsOnPlan cannot be turned back on.
The change is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • rule_idin the addressstringrequired

Example: Switch it back on

URL

POSThttps://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/resume

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/resume \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/resume", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d/resume",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "rule": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
  "change": "resume"
}

DELETE/spaces/{space}/autopilot/rules/{rule_id}

Pause, resume or delete an Autopilot rule

This address sets change to "delete" itself.

Pauses a rule (it queues nothing new; anything already waiting still goes), turns a paused one back on, or deletes it.

The rest of it

rule_id comes from GET /spaces/{space}/autopilot.
A rule that restsOnPlan cannot be turned back on.
The change is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • rule_idin the addressstringrequired

Example: Delete the rule

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/rules/87ff5cf6-d770-4b67-aa3e-73ce7508758d",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "rule": "87ff5cf6-d770-4b67-aa3e-73ce7508758d",
  "change": "delete"
}

DELETE/spaces/{space}/autopilot/waiting/{item_id}

Cancel something Autopilot queued

Cancels one item on Autopilot's waiting list, so it never goes out - item_id comes from GET /spaces/{space}/autopilot with which="waiting".

The rest of it

Only an item still waiting can be cancelled; the rule that queued it stays as it is.
The cancel is written in the person's Actions Log with this assistant's name.

  • spacein the addressstringrequired

  • item_idin the addressstringrequired

Example: Stop one announcement before it goes

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/autopilot/waiting/f7534422-ca26-4b6a-82f1-1a6fdcb4077a

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/autopilot/waiting/f7534422-ca26-4b6a-82f1-1a6fdcb4077a \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/autopilot/waiting/f7534422-ca26-4b6a-82f1-1a6fdcb4077a", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/autopilot/waiting/f7534422-ca26-4b6a-82f1-1a6fdcb4077a",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "cancelled": "f7534422-ca26-4b6a-82f1-1a6fdcb4077a"
}

Story shelf

GET/spaces/{space}/story-shelf

The Story shelf in a Space

Read-only key

Autopilot's Story shelf in one Space: short videos that go up as a Facebook or Instagram Story by themselves, on the days of the week picked, at a time in a time zone.

The rest of it

On each of those days the video that has waited longest goes - so every one gets a turn before any comes round again - as an ordinary send waiting in Videos → Waiting to go out (GET /spaces/{space}/videos with which="waiting" shows it, with storyShelf: true).
Returns whether it is on, its days, atTime, zone (null when it was never saved), the platforms it sends to, its sentence and nextAt while on, and the videos on it in the order they will be used: each one's videoId, fileName, how often it was used, the day Tublish keeps its file until (renewed on every turn while the shelf runs), and where it canGoTo as a Story or why it cannotGoTo (a Story video is 3 to 60 seconds; Facebook takes it only upright).
addable lists stored videos that could join it.
Reads only.

  • spacein the addressstringrequired

Example: The Story shelf

URL

GEThttps://tublish.com/api/v1/spaces/myname/story-shelf

Request

curl https://tublish.com/api/v1/spaces/myname/story-shelf \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/story-shelf", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/story-shelf",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "on": false,
  "days": [
    "sunday"
  ],
  "atTime": "10:00",
  "zone": null,
  "platforms": [],
  "shelf": [],
  "maxVideos": 10,
  "screen": "https://tublish.com/dashboard/s/myname/autopilot/stories",
  "addable": [],
  "connectedStoryPlatforms": [
    {
      "id": "facebook",
      "name": "Facebook"
    },
    {
      "id": "instagram",
      "name": "Instagram"
    }
  ]
}

PATCH/spaces/{space}/story-shelf

Change the Story shelf

Changes Autopilot's Story shelf in a Space (GET /spaces/{space}/story-shelf reads it).

The rest of it

Any of: on (true turns it on - it then sends a Story on its days by itself; false stops it, and nothing already waiting is touched), days (days of the week, in English), at_time ("10:00", 24-hour) with zone (an IANA time zone such as "Asia/Jerusalem" - required with at_time, and whenever the shelf was never saved: Tublish never guesses a zone), platforms (ids of connected platforms that take a Story: facebook, instagram), add_video (a stored video's id, from GET /spaces/{space}/videos or GET /spaces/{space}/story-shelf's addable; at most 10 on a shelf, and it must be able to be a Story somewhere), remove_video (a video id on the shelf).
What is left out stays as it is.
Saved at once; every change is written in the person's Actions Log with this assistant's name.
A shelf that is on publishes by itself, so unless the person has let this assistant act without asking (sendsWithoutAsking in GET /account) it may not switch the shelf on, or add a video or a platform to a shelf that is on - those are refused with the screen where the person does them.
Everything else - the days, the time, taking a video off, switching it off, and anything while it is off - is always allowed.

  • spacein the addressstringrequired

  • onin the bodyboolean

  • daysin the bodyarray of one of "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"

  • at_timein the bodystring

  • zonein the bodystring

  • platformsin the bodyarray of string

  • add_videoin the bodystring

  • remove_videoin the bodystring

Example: A Story every Monday and Thursday at 9:00

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/story-shelf

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/story-shelf \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "days": [
    "monday",
    "thursday"
  ],
  "at_time": "09:00",
  "zone": "America/New_York",
  "platforms": [
    "instagram"
  ]
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/story-shelf", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "days": [
      "monday",
      "thursday"
    ],
    "at_time": "09:00",
    "zone": "America/New_York",
    "platforms": [
      "instagram"
    ]
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/story-shelf",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "days": [
        "monday",
        "thursday",
      ],
      "at_time": "09:00",
      "zone": "America/New_York",
      "platforms": [
        "instagram",
      ],
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "on": false,
  "days": [
    "monday",
    "thursday"
  ],
  "atTime": "09:00",
  "zone": "America/New_York",
  "platforms": [
    "Instagram"
  ],
  "shelf": [],
  "maxVideos": 10,
  "screen": "https://tublish.com/dashboard/s/myname/autopilot/stories"
}

Library

GET/spaces/{space}/library

The library in a Space

Read-only key

Autopilot's library in one Space: sent posts and published articles kept on a shelf, of which one goes out again by itself every few days, at a time in a time zone, to the platforms picked - always the one that has waited longest, so everything on it gets a turn before anything comes round again.

The rest of it

A post goes out again with its own words and pictures; an article as an announcement (its title, its link and its cover).
The shelf keeps no copy, so an edited article goes out as it reads now.
Each turn becomes an ordinary item on Autopilot's waiting list (GET /spaces/{space}/autopilot with which="waiting").
Returns whether it is on, everyDays (one of rhythms), atTime, zone (null when it was never saved), the platforms it sends to, its sentence and nextAt while on, the shelf in the order it will be used (each one's kind, id, title - null when it was deleted since, and its turn is skipped - timesUsed and lastUsedAt), eachComesRoundEveryDays and tooOften (true under 14 days, where the same thing again reads as repetition), addable (recent sent posts and published articles not on it yet) and connectedPlatforms (the connected platforms it can send to; a blog, a website or a video site is never one, because a second copy there is a duplicate).
Reads only.

  • spacein the addressstringrequired

Example: The library shelf

URL

GEThttps://tublish.com/api/v1/spaces/myname/library

Request

curl https://tublish.com/api/v1/spaces/myname/library \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/library", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/library",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "on": false,
  "everyDays": 7,
  "atTime": "12:00",
  "zone": "America/New_York",
  "platforms": [
    "Facebook"
  ],
  "shelf": [
    {
      "kind": "article",
      "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
      "title": "One-pan lemon chicken, in 20 minutes",
      "timesUsed": 0,
      "lastUsedAt": null
    }
  ],
  "eachComesRoundEveryDays": 7,
  "tooOften": true,
  "rhythms": [
    1,
    2,
    3,
    7,
    14,
    30
  ],
  "maxItems": 100,
  "screen": "https://tublish.com/dashboard/s/myname/autopilot/library",
  "addable": [
    {
      "kind": "article",
      "id": "2e3ed76e-3158-40d8-82f4-4691f109aa35",
      "title": "The fastest fried rice I know"
    },
    {
      "kind": "post",
      "id": "b78e08d7-3bd9-4fc2-9ce4-89b17c0c65de",
      "title": "Rice, canned tomatoes, eggs, frozen peas and a lemon."
    }
  ],
  "connectedPlatforms": [
    {
      "id": "facebook",
      "name": "Facebook"
    },
    {
      "id": "instagram",
      "name": "Instagram"
    }
  ]
}

PATCH/spaces/{space}/library

Change the library

Changes Autopilot's library in a Space (GET /spaces/{space}/library reads it).

The rest of it

Any of: on (true turns it on - it then sends one thing from the shelf by itself on its rhythm; false stops it, and nothing already waiting is touched), every_days (one of GET /spaces/{space}/library's rhythms: 1, 2, 3, 7, 14 or 30), at_time ("09:00", 24-hour) with zone (an IANA time zone such as "Asia/Jerusalem" - required with at_time, and whenever the library was never saved: Tublish never guesses a zone), platforms (ids from GET /spaces/{space}/library's connectedPlatforms), add (a SENT post or a PUBLISHED article of this Space, as {kind, id} - from GET /spaces/{space}/posts, GET /spaces/{space}/articles or GET /spaces/{space}/library's addable; at most 100 on a shelf), remove ({kind, id} of one on the shelf).
What is left out stays as it is.
Saving the rhythm while it is on sets the first turn at the next at_time in that zone - later today, or tomorrow when that hour has passed - and each turn after it every_days later.
Saved at once; every change is written in the person's Actions Log with this assistant's name.
A library that is on publishes by itself, so unless the person has let this assistant act without asking (sendsWithoutAsking in GET /account) it may not switch the library on, or add something or a platform to a library that is on - those are refused with the screen where the person does them.
Everything else - the rhythm, the time, taking something off, switching it off, and anything while it is off - is always allowed.

  • spacein the addressstringrequired

  • onin the bodyboolean

  • every_daysin the bodyinteger

  • at_timein the bodystring

  • zonein the bodystring

  • platformsin the bodyarray of string

  • addin the bodyobject

  • removein the bodyobject

Example: Put an article on the library shelf, one every 7 days

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/library

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/library \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "every_days": 7,
  "at_time": "12:00",
  "zone": "America/New_York",
  "platforms": [
    "facebook"
  ],
  "add": {
    "kind": "article",
    "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce"
  }
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/library", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "every_days": 7,
    "at_time": "12:00",
    "zone": "America/New_York",
    "platforms": [
      "facebook"
    ],
    "add": {
      "kind": "article",
      "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce"
    }
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/library",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "every_days": 7,
      "at_time": "12:00",
      "zone": "America/New_York",
      "platforms": [
        "facebook",
      ],
      "add": {
        "kind": "article",
        "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
      },
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "on": false,
  "everyDays": 7,
  "atTime": "12:00",
  "zone": "America/New_York",
  "platforms": [
    "Facebook"
  ],
  "shelf": [
    {
      "kind": "article",
      "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
      "title": "One-pan lemon chicken, in 20 minutes",
      "timesUsed": 0,
      "lastUsedAt": null
    }
  ],
  "eachComesRoundEveryDays": 7,
  "tooOften": true,
  "rhythms": [
    1,
    2,
    3,
    7,
    14,
    30
  ],
  "maxItems": 100,
  "screen": "https://tublish.com/dashboard/s/myname/autopilot/library"
}

Content calendar

GET/spaces/{space}/calendar

A Space's content calendar

Read-only key

One month of a Space's content calendar, as Tublish's calendar screen shows it: the posts waiting to go out, the posts that went out, the video sends waiting and gone out (title is the video's title, else the start of its words, else the file's name), the blog articles published (an article with a later date is scheduled), and the person's own plans for each day - each plan with its id (POST /spaces/{space}/calendar adds, changes and deletes them).

The rest of it

month is YYYY-MM, this month when left out.
Times are ISO 8601 in UTC; a plan has a day and no time.
Reads only.

  • spacein the addressstringrequired

  • monthin the querystring

Example: That month's plans, posts, videos and articles

URL

GEThttps://tublish.com/api/v1/spaces/myname/calendar?month=2026-12

Request

curl 'https://tublish.com/api/v1/spaces/myname/calendar?month=2026-12' \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/calendar?month=2026-12", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/calendar?month=2026-12",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "month": "2026-12",
  "postsWaiting": [],
  "postsSent": [
    {
      "id": "b78e08d7-3bd9-4fc2-9ce4-89b17c0c65de",
      "title": "Rice, canned tomatoes, eggs, frozen peas and a lemon.",
      "at": "2026-12-02T15:22:56.66+00:00"
    }
  ],
  "videosWaiting": [],
  "videosSent": [],
  "articlesPublished": [
    {
      "id": "2e3ed76e-3158-40d8-82f4-4691f109aa35",
      "title": "The fastest fried rice I know",
      "at": "2026-12-02T15:24:02.005+00:00"
    },
    {
      "id": "6ccf65e9-a9aa-48b0-9c5c-b475ca4effce",
      "title": "One-pan lemon chicken, in 20 minutes",
      "at": "2026-12-02T15:23:19.311+00:00"
    }
  ],
  "plans": [
    {
      "id": "1d3501cf-82ae-4751-84ac-1d04ad5e7052",
      "title": "Film the pantry pasta video",
      "day": "2026-12-09"
    }
  ],
  "screen": "https://tublish.com/dashboard/s/myname/tools/calendar?m=2026-12"
}

POST/spaces/{space}/calendar

Add, change or delete a plan on the calendar

This address sets action to "add" itself.

Adds a plan to a day of a Space's content calendar (action: "add" with title and day), changes one ("change" with plan_id and a new title and/or day), or deletes one ("delete" with plan_id).

The rest of it

A plan is the person's own note for a day - it publishes nothing.
day is YYYY-MM-DD; a title is at most 120 characters.

  • spacein the addressstringrequired

  • titlein the bodystring

  • dayin the bodystring

Example: Plan a video for Wednesday

URL

POSThttps://tublish.com/api/v1/spaces/myname/calendar

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/calendar \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Film the pantry pasta video",
  "day": "2026-12-09"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/calendar", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "title": "Film the pantry pasta video",
    "day": "2026-12-09"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/calendar",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "title": "Film the pantry pasta video",
      "day": "2026-12-09",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "plan": "1d3501cf-82ae-4751-84ac-1d04ad5e7052",
  "day": "2026-12-09"
}

PATCH/spaces/{space}/calendar/{plan_id}

Add, change or delete a plan on the calendar

This address sets action to "change" itself.

Adds a plan to a day of a Space's content calendar (action: "add" with title and day), changes one ("change" with plan_id and a new title and/or day), or deletes one ("delete" with plan_id).

The rest of it

A plan is the person's own note for a day - it publishes nothing.
day is YYYY-MM-DD; a title is at most 120 characters.

  • spacein the addressstringrequired

  • plan_idin the addressstringrequired

  • titlein the bodystring

  • dayin the bodystring

Example: Move it a day later

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052 \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "day": "2026-12-10"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "day": "2026-12-10"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "day": "2026-12-10",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "plan": "1d3501cf-82ae-4751-84ac-1d04ad5e7052"
}

DELETE/spaces/{space}/calendar/{plan_id}

Add, change or delete a plan on the calendar

This address sets action to "delete" itself.

Adds a plan to a day of a Space's content calendar (action: "add" with title and day), changes one ("change" with plan_id and a new title and/or day), or deletes one ("delete" with plan_id).

The rest of it

A plan is the person's own note for a day - it publishes nothing.
day is YYYY-MM-DD; a title is at most 120 characters.

  • spacein the addressstringrequired

  • plan_idin the addressstringrequired

Example: Take it off the calendar

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052 \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/calendar/1d3501cf-82ae-4751-84ac-1d04ad5e7052",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "deleted": "1d3501cf-82ae-4751-84ac-1d04ad5e7052"
}

To-do list

GET/spaces/{space}/todos

A Space's to-do list

Read-only key

The to-do list of one Space, in the order the person keeps it: each item's id, its text, details, priority (high, normal or low), category, and whether it is done.

The rest of it

POST /spaces/{space}/todos adds and changes items.
Reads only.

  • spacein the addressstringrequired

Example: The to-do list

URL

GEThttps://tublish.com/api/v1/spaces/myname/todos

Request

curl https://tublish.com/api/v1/spaces/myname/todos \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos", {
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos",
    method="GET",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "space": "myname",
  "todos": [
    {
      "id": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
      "text": "Answer the comments on the pasta video",
      "priority": "high",
      "done": false
    },
    {
      "id": "f39ff6ed-6de1-4a78-9086-0505b8f47d2f",
      "text": "Buy a second light for the kitchen",
      "priority": "low",
      "category": "Gear",
      "done": false
    }
  ],
  "maxItems": 200
}

POST/spaces/{space}/todos

Add or change a to-do item

This address sets action to "add" itself.

Adds an item to a Space's to-do list (action: "add" with text, and optionally details, priority - high, normal or low - and category), changes one ("change" with todo_id and the fields to change), ticks one done or not done ("done", "not_done"), or deletes one ("delete").

The rest of it

todo_id comes from GET /spaces/{space}/todos.
At most 300 characters of text, 2000 of details and 40 of category; a list holds 200 items.
Nothing here is public.

  • spacein the addressstringrequired

  • textin the bodystring

  • detailsin the bodystring

  • priorityin the bodyone of "high", "normal", "low"

  • categoryin the bodystring

Example: Add a to-do

URL

POSThttps://tublish.com/api/v1/spaces/myname/todos

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/todos \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Answer the comments on the pasta video",
  "priority": "high"
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "text": "Answer the comments on the pasta video",
    "priority": "high"
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "text": "Answer the comments on the pasta video",
      "priority": "high",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "todo": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a"
}

PATCH/spaces/{space}/todos/{todo_id}

Add or change a to-do item

This address sets action to "change" itself.

Adds an item to a Space's to-do list (action: "add" with text, and optionally details, priority - high, normal or low - and category), changes one ("change" with todo_id and the fields to change), ticks one done or not done ("done", "not_done"), or deletes one ("delete").

The rest of it

todo_id comes from GET /spaces/{space}/todos.
At most 300 characters of text, 2000 of details and 40 of category; a list holds 200 items.
Nothing here is public.

  • spacein the addressstringrequired

  • todo_idin the addressstringrequired

  • textin the bodystring

  • detailsin the bodystring

  • priorityin the bodyone of "high", "normal", "low"

  • categoryin the bodystring

Example: Add details to a to-do

URL

PATCHhttps://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a

Request

curl -X PATCH https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a \
  -H "Authorization: Bearer $TUBLISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "details": "Start with the questions about swapping the cream."
}'
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "details": "Start with the questions about swapping the cream."
  }),
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
    method="PATCH",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
      "details": "Start with the questions about swapping the cream.",
    }).encode(),
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "todo": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a"
}

POST/spaces/{space}/todos/{todo_id}/done

Add or change a to-do item

This address sets action to "done" itself.

Adds an item to a Space's to-do list (action: "add" with text, and optionally details, priority - high, normal or low - and category), changes one ("change" with todo_id and the fields to change), ticks one done or not done ("done", "not_done"), or deletes one ("delete").

The rest of it

todo_id comes from GET /spaces/{space}/todos.
At most 300 characters of text, 2000 of details and 40 of category; a list holds 200 items.
Nothing here is public.

  • spacein the addressstringrequired

  • todo_idin the addressstringrequired

Example: Tick it done

URL

POSThttps://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/done

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/done \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/done", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/done",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "todo": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
  "action": "done"
}

POST/spaces/{space}/todos/{todo_id}/not-done

Add or change a to-do item

This address sets action to "not_done" itself.

Adds an item to a Space's to-do list (action: "add" with text, and optionally details, priority - high, normal or low - and category), changes one ("change" with todo_id and the fields to change), ticks one done or not done ("done", "not_done"), or deletes one ("delete").

The rest of it

todo_id comes from GET /spaces/{space}/todos.
At most 300 characters of text, 2000 of details and 40 of category; a list holds 200 items.
Nothing here is public.

  • spacein the addressstringrequired

  • todo_idin the addressstringrequired

Example: Untick it

URL

POSThttps://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/not-done

Request

curl -X POST https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/not-done \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/not-done", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a/not-done",
    method="POST",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "todo": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
  "action": "not_done"
}

DELETE/spaces/{space}/todos/{todo_id}

Add or change a to-do item

This address sets action to "delete" itself.

Adds an item to a Space's to-do list (action: "add" with text, and optionally details, priority - high, normal or low - and category), changes one ("change" with todo_id and the fields to change), ticks one done or not done ("done", "not_done"), or deletes one ("delete").

The rest of it

todo_id comes from GET /spaces/{space}/todos.
At most 300 characters of text, 2000 of details and 40 of category; a list holds 200 items.
Nothing here is public.

  • spacein the addressstringrequired

  • todo_idin the addressstringrequired

Example: Delete it

URL

DELETEhttps://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a

Request

curl -X DELETE https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a \
  -H "Authorization: Bearer $TUBLISH_KEY"
const answer = await fetch("https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TUBLISH_KEY}`,
  },
});
console.log(answer.status, await answer.json());
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://tublish.com/api/v1/spaces/myname/todos/2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
    method="DELETE",
    headers={
        "Authorization": f"Bearer {os.environ['TUBLISH_KEY']}",
    },
)
try:
    with urlopen(request) as answer:
        print(answer.status, json.load(answer))
except HTTPError as answer:
    print(answer.code, json.load(answer))

Answer200 OK

{
  "todo": "2f84f17d-97d3-4b86-99f2-1f7839c4fa5a",
  "action": "delete"
}