Cancel a post
curl --request DELETE \
--url https://posted-api.example.com/api/posts/{postId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://posted-api.example.com/api/posts/{postId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://posted-api.example.com/api/posts/{postId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://posted-api.example.com/api/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://posted-api.example.com/api/posts/{postId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://posted-api.example.com/api/posts/{postId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://posted-api.example.com/api/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "cancelled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "cancelled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Cancel a post
Cancel pending deliveries. Ask the user before cancelling their post. Published posts remain in history.
DELETE
/
api
/
posts
/
{postId}
Cancel a post
curl --request DELETE \
--url https://posted-api.example.com/api/posts/{postId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://posted-api.example.com/api/posts/{postId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://posted-api.example.com/api/posts/{postId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://posted-api.example.com/api/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://posted-api.example.com/api/posts/{postId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://posted-api.example.com/api/posts/{postId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://posted-api.example.com/api/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"post": {
"id": "22222222-2222-4222-8222-222222222222",
"text": "A small update from the studio.",
"additionalPosts": [],
"mediaOverrides": {},
"scheduledAt": "2027-01-18T09:30:00.000Z",
"idempotencyKey": "studio-update-2027-01-18",
"state": "cancelled",
"version": 1,
"createdAt": "2027-01-18T09:30:00.000Z",
"media": [
{
"id": "44444444-4444-4444-8444-444444444444",
"fileName": "studio.jpg",
"contentType": "image/jpeg",
"sizeBytes": 245760,
"width": 1600,
"height": 900,
"alt": "A bright studio desk beside a window",
"durationSeconds": null
}
],
"managedBy": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Alex Morgan",
"avatarUrl": null
},
"deliveries": [
{
"id": "77777777-7777-4777-8777-777777777777",
"postIndex": 0,
"connectionId": "11111111-1111-4111-8111-111111111111",
"provider": "bluesky",
"accountName": "Alex Morgan",
"textOverride": null,
"state": "cancelled",
"providerPostId": null,
"publishedUrl": null,
"error": null,
"publishedAt": null
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Write access: a member/administrator with a write-enabled credential, or an authorized signed-in user.
Cancel pending deliveries. Ask the user before cancelling their post. Published posts remain in history.
Cancellation stops pending deliveries. It does not remove provider-side publications, and a group with work already preparing or publishing cannot be cancelled safely.
MCP clients can use
cancel_post for this operation.
Request conventions · API keys · MCP connectionsAuthorizations
bearerAuthsessionCookie
Personal or team Posted REST API key
Path Parameters
The postId from the corresponding list, record or authorization response.
Response
Successful response. Examples are illustrative; field values vary by record.
Show child attributes
Show child attributes
Was this page helpful?
