Search…
Sessions
This object represents an active session for a user. Sessions are created when a user successfully goes through the sign in or sign up flows.

Available requests

  • GET/v1/sessions/:id
  • GET/v1/sessions
  • POST/v1/sessions/:id/revoke
  • POST/v1/sessions/:id/verify

Example session schema

1
{
2
"object": "session",
3
"id": "sess_1q8uCbeJSMgTJnTQMgpAK1Ff0ER",
4
"client_id": "client_1q8sn8pLHjqTU2g1UheJwJ7YWU6",
5
"user_id": "user_1n5BS00ns3t21GWIXiPJ0KcSe02",
6
"status": "active",
7
"last_active_at": 1616473411,
8
"expire_at": 1617078211,
9
"abandon_at": 1619065411
10
}
Copied!
get
https://api.clerk.dev
/v1/sessions/:id
Retrieve a session
get
https://api.clerk.dev
/v1/sessions
List all sessions
post
https://api.clerk.dev
/v1/sessions/:id/revoke
Revoke a session
post
https://api.clerk.dev
/v1/sessions/:id/verify
Verify a session
Last modified 3mo ago