Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Unshare a session

/api/v1/cli/unsharePOST
Use the original sharer key. API keys do not inherit their creator’s admin permissions. Unavailable sessions return the same success response.
Requires traces:write. The credential selects the workspace. Errors use a JSON error string; see Errors and limits.
Unsharing removes the stored events, clears the title, and hides the session. It returns the same success response when the session is already unavailable. A different sharer attempting to unshare an active session receives 403.
Ordinary ingestion into an unshared session returns 410. To reshare before the original expiry, the sharer can send a fresh event batch to POST /api/v1/cli/agent-events?share=1. This restores an unshared session and resets its creation and expiry times; deleted events must be sent again. It does not restore expired sessions or sessions removed through the dashboard's forget operation.
Authorization
ApiKey *Bearer <token>
Workspace API key. Create a key with the scope named by the operation. API keys use separate sharer identities; replacement keys do not inherit sharing ownership.
Request Bodyapplication/jsonrequired
session *string (uuid)
Response
200 · Success
unshared *true
400 · Invalid request
error *string
401 · Missing or invalid credential
error *string
403 · Required scope or sharer permission denied
error *string
503 · Storage or credential verification temporarily unavailable
error *string
Request example
curl -X POST "https://app.halfspan.com/api/v1/cli/unshare" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "session": "adbf491d-15fe-4bc7-b23b-cea21fdd8751" }'
Response example
{ "unshared": true }