clerk.revoke_session
Revoke a session in a connected Clerk application, immediately ending it.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the revoked session object with status set to revoked.
Cost = 5 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Clerk session id (sess_...) to retrieve or modify. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Clerk session id (sess_...). | |
| status | No | Current status of the session. | |
| user_id | No | Clerk user id (user_...) that owns this session. | |
| client_id | No | Clerk client id associated with this session. | |
| expire_at | No | Unix timestamp in milliseconds when this session expires. | |
| created_at | No | Unix timestamp in milliseconds when the session was created. | |
| updated_at | No | Unix timestamp in milliseconds when the session was last updated. | |
| last_active_at | No | Unix timestamp in milliseconds of the last activity on this session. |