Delete queued posts in bulk
curl --request POST \
--url https://api.superx.so/v1/scheduled-posts/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"V1StGXR8_Z5jdHi6B-myT",
"Fq2xWnA0kLpR7sVtYu3zc"
]
}
'import requests
url = "https://api.superx.so/v1/scheduled-posts/bulk/delete"
payload = { "ids": ["V1StGXR8_Z5jdHi6B-myT", "Fq2xWnA0kLpR7sVtYu3zc"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['V1StGXR8_Z5jdHi6B-myT', 'Fq2xWnA0kLpR7sVtYu3zc']})
};
fetch('https://api.superx.so/v1/scheduled-posts/bulk/delete', 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://api.superx.so/v1/scheduled-posts/bulk/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'V1StGXR8_Z5jdHi6B-myT',
'Fq2xWnA0kLpR7sVtYu3zc'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/scheduled-posts/bulk/delete"
payload := strings.NewReader("{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/scheduled-posts/bulk/delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/scheduled-posts/bulk/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"deleted": 2
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Scheduling
Delete queued posts in bulk
Deletes up to 100 QUEUED posts at once and refunds their post quota.
POST, not DELETE, because the ids travel in a body.
Only posts in the queue are deleted: a leaked id for a sent post
cannot wipe history, and drafts are left alone (delete those with
DELETE /v1/scheduled-posts/{id}). deleted can therefore be lower
than the number of ids you sent.
Costs one write. Idempotency-Key is not supported and not needed:
deleting an already-deleted id is a no-op.
POST
/
v1
/
scheduled-posts
/
bulk
/
delete
Delete queued posts in bulk
curl --request POST \
--url https://api.superx.so/v1/scheduled-posts/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"V1StGXR8_Z5jdHi6B-myT",
"Fq2xWnA0kLpR7sVtYu3zc"
]
}
'import requests
url = "https://api.superx.so/v1/scheduled-posts/bulk/delete"
payload = { "ids": ["V1StGXR8_Z5jdHi6B-myT", "Fq2xWnA0kLpR7sVtYu3zc"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['V1StGXR8_Z5jdHi6B-myT', 'Fq2xWnA0kLpR7sVtYu3zc']})
};
fetch('https://api.superx.so/v1/scheduled-posts/bulk/delete', 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://api.superx.so/v1/scheduled-posts/bulk/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'V1StGXR8_Z5jdHi6B-myT',
'Fq2xWnA0kLpR7sVtYu3zc'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/scheduled-posts/bulk/delete"
payload := strings.NewReader("{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/scheduled-posts/bulk/delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/scheduled-posts/bulk/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"V1StGXR8_Z5jdHi6B-myT\",\n \"Fq2xWnA0kLpR7sVtYu3zc\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"deleted": 2
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Body
application/json
Response
How many posts were deleted.
Show child attributes
Show child attributes