Search…
Sessions

Available requests

    GET /v1/me/sessions
    GET /v1/me/sessions/active
    POST/v1/me/sessions/:id/revoke

The session object

1
{
2
"object": "session",
3
"id": "sess_1w1Nn26zzA47J1hYfdO26m4Rxdo",
4
"status": "active",
5
"expire_at": 1628227097160,
6
"abandon_at": 1630214297160,
7
"last_active_at": 1627622297160,
8
"user": {
9
"id": "user_1o4qfqMeCkK4KD9fiCPKIXcA9h8",
10
"object": "user",
11
"username": "boss-clerk",
12
"first_name": "Boss",
13
"last_name": "Clerk",
14
"gender": "",
15
"birthday": "",
16
"profile_image_url": "https://images.clerk.dev/uploaded/img_1ux177vBXVeUGn4wQXfnr3lSwIg.jpeg",
17
"primary_email_address_id": "idn_1o4qfak5AdI2qlXSXENGL05iei6",
18
"primary_phone_number_id": null,
19
"password_enabled": true,
20
"two_factor_enabled": false,
21
"email_addresses": [],
22
"phone_numbers": [],
23
"external_accounts": [],
24
"public_metadata": {},
25
"unsafe_metadata": {},
26
"created_at": 1612556316784,
27
"updated_at": 1628205483345
28
},
29
"created_at": 1627622297160,
30
"updated_at": 1627622297165
31
}
Copied!
get
https://clerk.example.com
/v1/me/sessions
List all sessions
get
https://clerk.example.com
/v1/me/sesssions/active
List all active sessions
post
https://clerk.example.com
/v1/me/sessions/:id/revoke
Revoke a session
Last modified 2mo ago