Skip to main content
DELETE
/
api
/
v1
/
user-sessions
/
{user_session_id}
Delete User Session
curl --request DELETE \
  --url https://api.example.com/api/v1/user-sessions/{user_session_id} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_session_id
string
required

Query Parameters

delete_worktree
boolean
default:false

If true, also delete the git worktree associated with this session.

Response

Successful Response