Skip to main content
POST
Prune sessions inactive for a duration (dry-run by default)

Body

application/json
agent
string

Filter by agent ID

ephemeral
boolean

Only match ephemeral sessions

execute
boolean

Actually delete matching sessions; default is dry-run

inactiveFor
string

Only match sessions inactive for this duration

namePrefix
string

Only match sessions whose name or key starts with prefix

Response

Success — no @Returns schema declared; payload shape is loose.

The response is of type object.