API
The API lets you post from a script or your site's deploy, look up where a post was sent, and read the replies, likes, reposts, and Webmentions your posts collect. Every route here takes a token except the ping URL and a site's public reads.
Tokens
- Owners and admins can create a token in Settings, under API tokens. It's shown only once, so copy it then.
- Send it as
Authorization: Bearer <token>. Keep it on a server, because the/v1routes send no CORS headers and a web page can't call them. - A token can do any of four things: Post, Read syndication links, Read, remove, and block responses, and Read mentions. Each token can make 60 requests a minute.
- A token's permissions are set when it's created. A token made before responses existed doesn't include the third, and one made before mentions existed doesn't include the fourth, so create a new one if you need them.
- Deleting a token stops it immediately.
Posting
POST https://publishedt.app/v1/posts, with a token that can post. A post goes to the destinations you name. A feed's posting settings don't apply, so no template, filter, or route runs on it.
The body
| Field | What it does |
|---|---|
text |
The post, at most 5000 characters. Send text, images, or both. |
link |
An http(s) link. It goes after the text, past a blank line, unless the text has it already. |
tags |
Up to 10 tags of at most 100 characters. On Mastodon and Bluesky they go at the end as hashtags. |
images |
Up to 4 images. |
images[].url |
A public http(s) image URL. |
images[].alt |
Its description, for people who can't see it, at most 1500 characters. Optional. |
destination_ids |
Where to post: up to 20 destination ids from GET /v1/destinations. |
overrides |
Other text for some destinations, keyed by destination id. Optional. |
overrides.<destination id>.text |
The text that destination posts in place of text. |
A field the API doesn't take, at any depth, returns 422 invalid_field, and field is its own key, without its path. A typo is rejected, not dropped.
An example
post.json:
{
"text": "Version 2.4 is out, with faster search.",
"link": "https://example.com/blog/version-2-4",
"tags": [
"release",
"search"
],
"images": [
{
"url": "https://example.com/images/search.png",
"alt": "The new search results page"
}
],
"destination_ids": [
"3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
"b2d4e6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b"
],
"overrides": {
"b2d4e6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b": {
"text": "Version 2.4: faster search."
}
}
}
curl https://publishedt.app/v1/posts \
-H "Authorization: Bearer $PUBLISHEDT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: release-2.4" \
--data @post.json
Posting returns 202, with one delivery per destination. Its Location is the post's address.
HTTP/1.1 202 Accepted
Location: /v1/posts/6f1e3d5b-2a4c-4e6f-8b0d-1c3e5a7f9b2d
{
"post": {
"id": "6f1e3d5b-2a4c-4e6f-8b0d-1c3e5a7f9b2d",
"created_at": "2026-11-26T17:00:00Z",
"deliveries": [
{
"id": "9d7b5f3e-1c2a-4b4d-8e6f-0a2c4e6b8d1f",
"destination_id": "3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
"status": "queued",
"remote_url": null
},
{
"id": "4b6d8f0a-2c3e-4a5b-9d7f-1e3a5c7e9b0d",
"destination_id": "b2d4e6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b",
"status": "queued",
"remote_url": null
}
]
}
}
Finding destination ids
GET https://publishedt.app/v1/destinations lists the workspace's destinations, oldest first, 50 at a time. Pass limit (up to 100) to change that, and pass next_cursor back as cursor for the next page.
{
"destinations": [
{
"id": "3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
"kind": "mastodon",
"name": "Example on Mastodon",
"status": "ok"
},
{
"id": "b2d4e6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b",
"kind": "bluesky",
"name": "Example on Bluesky",
"status": "ok"
}
],
"next_cursor": null
}
Following a post
GET https://publishedt.app/v1/posts/<id> returns the same shape, with each delivery's current status. To check that a post was sent, call it until each delivery's status is sent.
{
"post": {
"id": "6f1e3d5b-2a4c-4e6f-8b0d-1c3e5a7f9b2d",
"created_at": "2026-11-26T17:00:00Z",
"deliveries": [
{
"id": "9d7b5f3e-1c2a-4b4d-8e6f-0a2c4e6b8d1f",
"destination_id": "3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
"status": "sent",
"remote_url": "https://example.social/@example/113555000000000001"
},
{
"id": "4b6d8f0a-2c3e-4a5b-9d7f-1e3a5c7e9b0d",
"destination_id": "b2d4e6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b",
"status": "sending",
"remote_url": null
}
]
}
}
| Status | What it means |
|---|---|
queued |
Waiting to post, or waiting to try again. |
sending |
Posting now. |
sent |
Posted. remote_url links to the post when the destination gave one. |
failed |
Couldn't post. |
unconfirmed |
Publishedt couldn't confirm whether it posted. Check the destination before posting it again. |
skipped |
Not sent: the post came out empty, or it waited more than 3 days to post. |
canceled |
Not sent: the destination was disconnected first. |
- A post can wait as
queuedfor a while, because each destination posts at a steady pace and has a daily cap. - A posted link counts toward link dedupe, so when a feed item with the same link arrives within 7 days, Publishedt doesn't post it again to that destination.
Idempotency
- Send an
Idempotency-Keyheader of 1 to 255 printable ASCII characters with each post, and keep it the same when you retry. - A repeated key within 24 hours never makes a second post. It returns the first request's status, 202, with the same post and
Idempotent-Replayed: true. The body shows the post as it is now, not a copy of the first response. - The same key with a different body returns 422
idempotency_key_reused. While the first request is still being handled, it returns 409idempotency_key_in_use. - Keys belong to the workspace, not the token, and a retry still matches after you change tokens.
Syndication links
GET https://publishedt.app/v1/syndications?url=<link>, with a token that can read syndication links, lists where the workspace posted a link, most recent first. It lists up to 50, and only posts that were sent. Use it to show "Also on" links next to a post.
The match ignores the link's fragment, its tracking and empty parameters, and the case of its scheme and host.
{
"syndications": [
{
"destination_id": "3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
"kind": "mastodon",
"remote_url": "https://example.social/@example/113555000000000001",
"sent_at": "2026-11-26T17:00:42Z"
}
]
}
Responses
With a token that can read, remove, and block responses, your site can read the replies, likes, and reposts collected on its posts, remove one, and block an author. Responses covers turning collecting on, and what's collected.
Listing an item's responses
GET https://publishedt.app/v1/responses?url=<link> lists the responses to the workspace's posts of that link, oldest first, 50 at a time. For a post made through the API, pass post=<post id> in place of url, which works for a post with no link too.
- The link matches as syndication links do. A Webmention matches by its target page instead, without regard to the fragment, a trailing slash, a default port, or the case of the scheme and host. Its query must match exactly.
countscovers every page. Passlimit(up to 100) andnext_cursorascursorfor the next page.urlis the link you sent, or the post's own link. It'snullfor a post with no link.- A link with no responses returns zero counts and an empty list.
- The list includes the Webmentions your sites received for the link, once they're showing. A mention awaiting approval is never listed.
countsgainsbookmarkandmentionwhen there are any.
{
"counts": {
"like": 1,
"reply": 2,
"repost": 0
},
"next_cursor": null,
"responses": [
{
"author": {
"name": "Alex Chen",
"photo": "https://example.social/avatars/alex.png",
"type": "card",
"url": "https://example.social/@alex"
},
"content": {
"html": "<p><span><a href=\"https://example.social/@example\" rel=\"nofollow ugc\">@<span>example</span></a></span> Search feels instant now. Nice work!</p>",
"text": "@example Search feels instant now. Nice work!"
},
"id": "7c9e1a3b-5d2f-4e8a-9b6c-0d1e2f3a4b5c",
"in-reply-to": "https://example.com/blog/version-2-4",
"platform": "mastodon",
"published": "2026-11-26T17:12:30Z",
"type": "entry",
"url": "https://example.social/@alex/113555000000000042",
"wm-property": "in-reply-to",
"wm-received": "2026-11-26T17:15:00Z",
"wm-target": "https://example.com/blog/version-2-4"
},
{
"author": {
"name": "Jo Park",
"photo": "https://cdn.example.com/avatars/jo.jpg",
"type": "card",
"url": "https://bsky.app/profile/jo.example.com"
},
"id": "e4f6a8b0-2c4d-4e6f-8a1b-3c5d7e9f1a2b",
"like-of": "https://example.com/blog/version-2-4",
"platform": "bluesky",
"published": "2026-11-26T17:20:05Z",
"type": "entry",
"url": null,
"wm-property": "like-of",
"wm-received": "2026-11-26T17:25:00Z",
"wm-target": "https://example.com/blog/version-2-4"
},
{
"author": {
"name": "Sam Rivera",
"photo": "https://example.social/avatars/sam.png",
"type": "card",
"url": "https://example.social/@sam"
},
"content": {
"html": "<p>The ending of the demo video got me. Well done.</p>",
"text": "The ending of the demo video got me. Well done."
},
"id": "a1b3c5d7-e9f1-4a2b-8c3d-5e7f9a1b3c5d",
"in-reply-to": "https://example.com/blog/version-2-4",
"platform": "mastodon",
"published": "2026-11-26T17:31:10Z",
"sensitive": true,
"summary": "Spoilers for the demo video",
"type": "entry",
"url": "https://example.social/@sam/113555000000000077",
"wm-property": "in-reply-to",
"wm-received": "2026-11-26T17:35:00Z",
"wm-target": "https://example.com/blog/version-2-4"
}
],
"url": "https://example.com/blog/version-2-4"
}
Each response is a JF2 entry:
| Field | What it contains |
|---|---|
id |
Publishedt's id for the response, for DELETE /v1/responses/<id>. |
type |
Always entry. |
platform |
mastodon, bluesky, or web (a Webmention). |
wm-id |
A number that only grows, as other Webmention services' do. The same response has the same wm-id here and in mentions.jf2. |
wm-source |
A Webmention's sender page. Not sent for a Mastodon or Bluesky response. |
wm-property |
Its kind: in-reply-to for a reply, like-of for a like, repost-of for a repost, bookmark-of for a bookmark, and mention-of for any other mention. |
in-reply-to, like-of, repost-of, bookmark-of, or mention-of |
The link of the post it responds to, under the name wm-property gives. null for an API post with no link. |
wm-target |
The same link. |
url |
The reply's own page. |
published |
When it was made, as the platform reports it. |
wm-received |
When Publishedt collected it. |
author |
Its author: type is card, name their name, url their profile, and photo their profile picture. name is their handle when they set no display name, and photo is null when they have none. |
content |
A reply's words, as text and as html. The HTML includes links, paragraphs, and basic formatting, nothing else. |
summary |
A Mastodon reply's content warning, as plain text. Only a reply its author put behind a warning has it. |
sensitive |
true when a Mastodon reply's author marked it sensitive, and left out otherwise. |
url is null for a like or repost, because neither has a page. Neither has content.
Show a reply with a summary collapsed behind it, as Mastodon does: the warning first, the words a click away. A reply that's sensitive with no summary may include sensitive media.
If url or post is missing or malformed, both are sent, or limit or cursor is bad, it returns 422 invalid_field. A post that isn't an API post of this workspace returns 404 post_not_found.
Deleting a response
DELETE https://publishedt.app/v1/responses/<id> removes a response and stops it from being collected again. It returns 204, with no body. Each webhook that takes responses gets a response.deleted event.
- A response already removed returns 204 too, for at least 30 days after its removal. After that it returns 404
response_not_found, the same as an id the workspace never had.
Blocking an author
POST https://publishedt.app/v1/responses/blocks removes every response by an author in the workspace, and stops their new ones from being collected. Each webhook that takes responses gets a response.deleted event for each one removed.
{
"author_url": "https://example.social/@alex"
}
It returns 201, with how many responses it removed:
HTTP/1.1 201 Created
{
"author_url": "https://example.social/@alex",
"removed": 1
}
author_urlis theurlof a response's author, an http(s) URL of at most 2048 characters. It matches without regard to the case of its scheme and host, a default port, a fragment, or a trailing slash.- You can block an author Publishedt hasn't collected anything from yet.
- A Bluesky profile link that names a handle blocks the account behind it too, and the block still applies after the account changes its handle. Publishedt looks the handle up first, and blocks nothing when it can't:
- If no account has the handle, it returns 422
author_not_found. - If the lookup fails, it returns 503
bluesky_unavailable, withRetry-After. Retry the same request after that.
- If no account has the handle, it returns 422
- Blocking an author again does no harm. It returns 201 with the number of responses removed this time, which is often 0.
- A missing, malformed, or too long
author_urlreturns 422invalid_field.
Reading mentions
GET https://publishedt.app/webmention/mentions.jf2, /webmention/count, and /webmention/deleted.jf2 read the Webmentions your sites received. They return the shape Webmention services have long used, and scripts or plugins written for those services read them unchanged. mentions.jf2 is a JF2 feed whose children are the entries listed above, count is {"count": 4, "type": {"reply": 2, ...}}, and deleted.jf2 lists the mentions removed. See Webmentions to add a site.
Pass a token that can read mentions or responses as Authorization: Bearer <token>, or as ?token=<token>. The token parameter works on these three routes and nowhere else, and only for a token whose only scope is Read mentions. A token that can do more gets a 401 there. A token covers every site in the workspace, with the replies, likes, and reposts collected on its posts. Without a token, these routes return a site's Webmentions only if you turned on public reads for it, and nothing else. Any page can read these routes, because they send Access-Control-Allow-Origin: *.
Keep a token on a server or in a build, never in a page. A script on the page would make the token public, along with the Mastodon and Bluesky responses it reads. A page should read through public reads instead.
| Parameter | What it does |
|---|---|
target, target[] |
A page's URL. Repeat target[] for up to 50. The match ignores the fragment, a trailing slash, and the case of the host. |
domain |
A site's host, such as example.com. |
wm-property, wm-property[] |
Only these kinds: in-reply-to, like-of, repost-of, bookmark-of, mention-of. rsvp is accepted and matches nothing. |
since |
Only mentions received after this time, such as 2017-06-01T10:00:00-0700 or 2017-06-01. The comparison is to the second, so sending the latest wm-received you have doesn't return that mention again. |
since_id |
Only mentions with a larger wm-id. |
sort-by |
created (default), updated, or published. |
sort-dir |
down (default, most recent first) or up. |
per-page, page |
20 a page by default, up to 1000. page starts at 0. Each page's paging has total and total-pages, which are correct even on a page past the end. |
countneeds atargetor adomain. Without either,mentions.jf2anddeleted.jf2read every site in the token's workspace, but a read without a token needs one. A token from a suspended workspace, or one with no plan yet, reads nothing.deleted.jf2takestarget,domain,since,per-page, andpage. Each entry haswm-id,wm-target,wm-property, andwm-deleted, the time it was removed. A Webmention's entry also haswm-source. A read with a token also lists removed Mastodon and Bluesky responses, the same way itsmentions.jf2lists them. Publishedt stores removals for 365 days, so poll at least once a year. A Webmention removed before these routes existed isn't listed.- A mention awaiting approval doesn't show up in any of them.
- Publishedt limits reads without a token to 120 a minute for each address, and past that it returns 429 with
Retry-After. A read with a token counts against the token's own requests. - Errors are
{"error": ..., "code": ...}: 400invalid_input, 401unauthorizedfor a missing or wrong token, or a site with public reads off, 403insufficient_scopefor a header token that can read neither mentions nor responses, 404not_foundfor a host no verified site claims, and 429rate_limited. - A site that isn't verified serves no reads without a token. They return 404 until Check now or the weekly check finds its endpoint again, though a read with a token still lists its mentions.
Webhooks
A webhook destination gets each post as a signed JSON request. It can also get a syndication event each time another destination posts, and an event for each new, edited, and removed response. The webhook docs cover its headers, events, retries, and how to check the signature, with examples in Go and JavaScript.
Ping URL
A feed's ping URL has Publishedt check the feed immediately. It takes no token, because the URL itself is the credential. See Ping URL.
Errors
An error returns {error, code}. field is added when an input is wrong, and names a body field such as destination_ids[1] or the Idempotency-Key header. Branch on code. The wording of error may change.
{
"error": "text or images is required",
"code": "invalid_field",
"field": "text"
}
| Status | Code | What it means |
|---|---|---|
| 400 | invalid_json |
The body isn't a JSON object. |
| 401 | unauthorized |
The token is missing, malformed, or deleted. It comes with a WWW-Authenticate: Bearer header. |
| 403 | insufficient_scope |
The token can't do this. Create one that can. |
| 404 | post_not_found |
No post with that id was made through the API in this workspace. |
| 404 | response_not_found |
No response with that id is in this workspace. A response removed at least 30 days ago may return this too. |
| 404 | not_found |
There is no such endpoint. |
| 405 | method_not_allowed |
The endpoint doesn't take that method. Allow lists the ones it does. |
| 409 | idempotency_key_in_use |
A request with this Idempotency-Key is still being handled. Retry it later. |
| 409 | workspace_held |
The workspace can't post: it has no plan yet, its posting is paused, or it's suspended. error names which. Nothing was queued. |
| 413 | body_too_large |
The body is larger than 1024 KB. |
| 422 | invalid_field |
An input is wrong, such as a missing value or alt text over 1500 characters. field names it. A field the API doesn't take is rejected too, at any depth: field is its own key, without its path. |
| 422 | idempotency_key_reused |
This Idempotency-Key was used with a different body in the last 24 hours. |
| 422 | author_not_found |
A block's author_url names a Bluesky handle no account has. Nothing was blocked. Check the link, or block the author's did: profile link. |
| 429 | rate_limited |
Too many requests. Wait the Retry-After seconds, then retry. |
| 500 | server_error |
Publishedt had a problem. Retry with the same Idempotency-Key, which can't post twice. |
| 503 | bluesky_unavailable |
Publishedt couldn't look up the Bluesky handle in a block's author_url. Nothing was blocked. Wait the Retry-After seconds, then retry. |
Something wrong on this page? Contact support@publishedt.app.