Leave thread

POST
/api/v1/threads/{threadId}/leave

Removes the acting principal from a thread's members and returns an empty response. Requires write access to the thread.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Path parameters

threadId*string

Response body

curl -X POST "https://api.capy.ai/api/v1/threads/{threadId}/leave" \  -H "Authorization: Bearer $CAPY_API_KEY"
Empty
Last updated
Open in Capy