Skip to main content
POST
Prune Threads

Body

application/json

Request body for POST /threads/prune

thread_ids
string[]
required

Threads to prune. Ids the caller cannot see are skipped.

strategy
enum<string>
default:delete

'delete' removes the threads entirely; 'keep_latest' keeps each thread and its latest state.

Available options:
delete,
keep_latest

Response

Successful Response

Response model for POST /threads/prune

pruned_count
integer
default:0

Threads deleted or pruned by this request

deleted
integer
default:0

Threads fully deleted (strategy 'delete')

pruned
integer
default:0

Threads whose history was pruned (strategy 'keep_latest')