Search…
Sessions
A Session 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/client/sessions/:id
  • POST/v1/client/sessions/:id/tokens
  • POST/v1/client/sessions/:id/touch
  • POST/v1/client/sessions/:id/end
  • POST/v1/client/sessions/:id/remove

The Session object

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://clerk.example.com
/v1/client/sessions/:id
Retrieve a session
post
https://clerk.example.com
/v1/client/sessions/:id/tokens
Issue a session JWT
post
https://clerk.example.com
/v1/client/sessions/:id/touch
Touch current session
post
https://clerk.example.com
/v1/client/sessions/:id/end
End a session
post
https://clerk.example.com
/v1/client/sessions/:id/remove
Remove a session