Get session
Inspect the current session — returns null when not signed in.
GET
/api/user/session
Authentication
API Key (cookie: better-auth.session_token)
Responses
200
Session info
application/jsonuser
unknown
REQUIRED
curl -X GET 'https://motioness.com/api/user/session'
const response = await fetch('https://motioness.com/api/user/session', { method: 'GET'});const data = await response.json();console.log(data);
import requestsresponse = requests.get('https://motioness.com/api/user/session')print(response.json())
200
Response
{ "user": { "id": "<string>", "email": "<string>", "name": "<string>" }}
API Playground
Try this endpoint
GET
/api/user/session