Delete an inbox item or comment
curl --request POST \
--url https://posttu.com/api/v1/inbox/delete-item \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "TWITTER",
"channelId": "ch_abc123",
"inboxItemId": "clx123abc456",
"externalCommentId": "ext_comm_abc123",
"externalPostId": "ext_post_abc123",
"type": "COMMENT",
"deleteFromPlatform": true
}
'import requests
url = "https://posttu.com/api/v1/inbox/delete-item"
payload = {
"platform": "TWITTER",
"channelId": "ch_abc123",
"inboxItemId": "clx123abc456",
"externalCommentId": "ext_comm_abc123",
"externalPostId": "ext_post_abc123",
"type": "COMMENT",
"deleteFromPlatform": True
}
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({
platform: 'TWITTER',
channelId: 'ch_abc123',
inboxItemId: 'clx123abc456',
externalCommentId: 'ext_comm_abc123',
externalPostId: 'ext_post_abc123',
type: 'COMMENT',
deleteFromPlatform: true
})
};
fetch('https://posttu.com/api/v1/inbox/delete-item', 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://posttu.com/api/v1/inbox/delete-item",
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([
'platform' => 'TWITTER',
'channelId' => 'ch_abc123',
'inboxItemId' => 'clx123abc456',
'externalCommentId' => 'ext_comm_abc123',
'externalPostId' => 'ext_post_abc123',
'type' => 'COMMENT',
'deleteFromPlatform' => true
]),
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://posttu.com/api/v1/inbox/delete-item"
payload := strings.NewReader("{\n \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\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://posttu.com/api/v1/inbox/delete-item")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/inbox/delete-item")
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 \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"error": "<string>",
"data": "<unknown>"
}{
"error": "<string>"
}Item management
Delete item
Soft-delete an inbox item or comment in Posttu and optionally delete it from the source social platform.
POST
/
api
/
v1
/
inbox
/
delete-item
Delete an inbox item or comment
curl --request POST \
--url https://posttu.com/api/v1/inbox/delete-item \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "TWITTER",
"channelId": "ch_abc123",
"inboxItemId": "clx123abc456",
"externalCommentId": "ext_comm_abc123",
"externalPostId": "ext_post_abc123",
"type": "COMMENT",
"deleteFromPlatform": true
}
'import requests
url = "https://posttu.com/api/v1/inbox/delete-item"
payload = {
"platform": "TWITTER",
"channelId": "ch_abc123",
"inboxItemId": "clx123abc456",
"externalCommentId": "ext_comm_abc123",
"externalPostId": "ext_post_abc123",
"type": "COMMENT",
"deleteFromPlatform": True
}
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({
platform: 'TWITTER',
channelId: 'ch_abc123',
inboxItemId: 'clx123abc456',
externalCommentId: 'ext_comm_abc123',
externalPostId: 'ext_post_abc123',
type: 'COMMENT',
deleteFromPlatform: true
})
};
fetch('https://posttu.com/api/v1/inbox/delete-item', 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://posttu.com/api/v1/inbox/delete-item",
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([
'platform' => 'TWITTER',
'channelId' => 'ch_abc123',
'inboxItemId' => 'clx123abc456',
'externalCommentId' => 'ext_comm_abc123',
'externalPostId' => 'ext_post_abc123',
'type' => 'COMMENT',
'deleteFromPlatform' => true
]),
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://posttu.com/api/v1/inbox/delete-item"
payload := strings.NewReader("{\n \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\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://posttu.com/api/v1/inbox/delete-item")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/inbox/delete-item")
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 \"platform\": \"TWITTER\",\n \"channelId\": \"ch_abc123\",\n \"inboxItemId\": \"clx123abc456\",\n \"externalCommentId\": \"ext_comm_abc123\",\n \"externalPostId\": \"ext_post_abc123\",\n \"type\": \"COMMENT\",\n \"deleteFromPlatform\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"error": "<string>",
"data": "<unknown>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Last modified on October 15, 2026

