cURL
curl --request GET \ --url https://api.example.com/v2/databases/{database}/auth/session
{ "user": { "name": "User Name", "email": "user@example.com", "image": "https://example.com/user.png" }, "expires": "2024-07-16T19:20:30.450Z" }
Returns the session object if the user is authenticated.
The string (id or name, depending on the credentials)
The current session
Show child attributes
"2024-07-16T19:20:30.450Z"
Was this page helpful?