Active Sessions

Used to interact with the sessions of the current user.

Get Active Sessions

Returns all active session for user, including activity information.

SecurityDevBrowser or ProductionBrowser or ProductionNativeApp and ProductionNativeFlag)
Request
query Parameters
_clerk_session_id
string

The session_id associated with the requesting user.

Responses
200

Returns an Active Sessions array.

401

Request was not successful

get/v1/me/sessions/active
Response samples
application/json
[
  • {
    }
]

Revoke given session

Revokes given session.

SecurityDevBrowser or ProductionBrowser or ProductionNativeApp and ProductionNativeFlag)
Request
path Parameters
session_id
required
string

The session id to be revoked.

query Parameters
_clerk_session_id
string

The session_id associated with the requesting user.

Responses
200

Returns a Session object.

400

Request was not successful

401

Request was not successful

403

Request was not successful

404

Request was not successful

post/v1/me/sessions/{session_id}/revoke
Response samples
application/json
{
  • "response": {
    },
  • "client": {
    }
}

Get Sessions

Get all the sessions of the current user.

SecurityDevBrowser or ProductionBrowser or ProductionNativeApp and ProductionNativeFlag)
Request
query Parameters
_clerk_session_id
string

The session_id associated with the requesting user.

Responses
200

Returns Sessions array.

401

Request was not successful

403

Request was not successful

404

Request was not successful

get/v1/me/sessions
Response samples
application/json
[
  • {
    }
]