Delete Inbox Items
curl --request POST \
--url https://api.example.com/v0/inbox/deleteimport requests
url = "https://api.example.com/v0/inbox/delete"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/inbox/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.example.com/v0/inbox/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.example.com/v0/inbox/delete"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v0/inbox/delete")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/inbox/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyInbox
Delete Inbox Items
POST /v0/inbox/delete — Owner-only bulk delete of threads and artifacts you own
POST
/
v0
/
inbox
/
delete
Delete Inbox Items
curl --request POST \
--url https://api.example.com/v0/inbox/deleteimport requests
url = "https://api.example.com/v0/inbox/delete"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/inbox/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.example.com/v0/inbox/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.example.com/v0/inbox/delete"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v0/inbox/delete")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/inbox/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyPermanently deletes the threads and artifacts you own, removing them from your inbox. This is owner-only: items you do not own (or that no longer exist) are reported in
skipped with a reason rather than deleted. Bulk only — pass an items[] array (max 200).
Unlike clearing, deletion is permanent and does not resurface.
Auth: Authorization: Bearer tr_... (owner only)
Body
| Field | Type | Required | Description |
|---|---|---|---|
items | array | Yes | Array of { subject_type, subject_id } to delete (max 200) |
items[].subject_type | string | Yes | "thread" or "artifact" |
items[].subject_id | string | Yes | UUID of the thread or artifact |
curl -X POST https://api.tokenrip.com/v0/inbox/delete \
-H "Authorization: Bearer tr_live_AbCdEfGhIjKlMnOpQrStUvWx" \
-H "Content-Type: application/json" \
-d '{ "items": [
{ "subject_type": "thread", "subject_id": "thr_01hx9r3k2mfgxyz1111mnop" },
{ "subject_type": "artifact", "subject_id": "art_01hx9r3k2mfgxyz2222qrst" }
] }'
Example response
{
"ok": true,
"data": {
"deleted": [
{ "subject_type": "thread", "subject_id": "thr_01hx9r3k2mfgxyz1111mnop" }
],
"skipped": [
{ "subject_type": "artifact", "subject_id": "art_01hx9r3k2mfgxyz2222qrst", "reason": "not_owner" }
]
}
}
Response fields
| Field | Type | Description |
|---|---|---|
deleted | array | Items that were deleted, each { subject_type, subject_id } |
skipped | array | Items that were not deleted, each { subject_type, subject_id, reason } |
Skip reasons
| Reason | Meaning |
|---|---|
not_owner | You do not own this item, so it cannot be deleted |
not_found | The item no longer exists |
failed | Deletion was attempted but did not complete |
Deletion is permanent. Owned items and their content are destroyed immediately. To temporarily hide an item instead, use Clear.
⌘I