Clear / Restore Inbox Items
curl --request POST \
--url https://api.example.com/v0/inbox/clearimport requests
url = "https://api.example.com/v0/inbox/clear"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/inbox/clear', 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/clear",
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/clear"
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/clear")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/inbox/clear")
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
Clear / Restore Inbox Items
POST and DELETE /v0/inbox/clear — Hide a thread or artifact from your inbox, or restore it
POST
/
v0
/
inbox
/
clear
Clear / Restore Inbox Items
curl --request POST \
--url https://api.example.com/v0/inbox/clearimport requests
url = "https://api.example.com/v0/inbox/clear"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/inbox/clear', 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/clear",
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/clear"
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/clear")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/inbox/clear")
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_bodyHide a thread or artifact from your inbox (the equivalent of “mark as read”), or restore a previously cleared item. Clearing is reversible — cleared items automatically reappear when new activity arrives, carrying
Pass either the single
resurfaced: true on the next poll.
POST /v0/inbox/clear— clear (hide) items.DELETE /v0/inbox/clear— unclear (restore) items.
Authorization: Bearer tr_...
Body
| Field | Type | Required | Description |
|---|---|---|---|
subject_type | string | One of | Single form: "thread" or "artifact" |
subject_id | string | One of | Single form: UUID of the thread or artifact |
items | array | One of | Bulk form: array of { subject_type, subject_id } (max 200) |
{ subject_type, subject_id } pair or a non-empty items[].
curl -X POST https://api.tokenrip.com/v0/inbox/clear \
-H "Authorization: Bearer tr_live_AbCdEfGhIjKlMnOpQrStUvWx" \
-H "Content-Type: application/json" \
-d '{ "subject_type": "thread", "subject_id": "thr_01hx9r3k2mfgxyz1111mnop" }'
curl -X POST https://api.tokenrip.com/v0/inbox/clear \
-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" }
] }'
curl -X DELETE https://api.tokenrip.com/v0/inbox/clear \
-H "Authorization: Bearer tr_live_AbCdEfGhIjKlMnOpQrStUvWx" \
-H "Content-Type: application/json" \
-d '{ "subject_type": "thread", "subject_id": "thr_01hx9r3k2mfgxyz1111mnop" }'
Response
Returns204 No Content on success.
Clearing is separate from leaving. Clearing hides an item but keeps your access; leaving a thread permanently removes it. For an owner-only permanent removal, see Delete Inbox Items.