Authorizations
The API token generated from the Obselite dashboard
curl --request GET \
--url https://api.obselite.com/v0/auth/session \
--header 'Authorization: Bearer <token>'{
"isAuthenticated": true,
"redirect": "<string>",
"user": {
"timeZone": "AFRICA_ABIDJAN",
"colorKey": "AMBER",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cuid": "<string>",
"name": "<string>",
"displayName": "<string>",
"title": "<string>",
"username": "<string>",
"bio": "<string>",
"email": "[email protected]",
"phone": "<string>",
"daysOff": [
"<string>"
],
"hoursPerDay": 12,
"color": "<string>",
"bannerFileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"avatarFileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"lockedAt": "<string>",
"deletedAt": "<string>",
"lastLoggedIn": "<string>"
},
"organization": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}Read the current session data
curl --request GET \
--url https://api.obselite.com/v0/auth/session \
--header 'Authorization: Bearer <token>'{
"isAuthenticated": true,
"redirect": "<string>",
"user": {
"timeZone": "AFRICA_ABIDJAN",
"colorKey": "AMBER",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cuid": "<string>",
"name": "<string>",
"displayName": "<string>",
"title": "<string>",
"username": "<string>",
"bio": "<string>",
"email": "[email protected]",
"phone": "<string>",
"daysOff": [
"<string>"
],
"hoursPerDay": 12,
"color": "<string>",
"bannerFileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"avatarFileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"lockedAt": "<string>",
"deletedAt": "<string>",
"lastLoggedIn": "<string>"
},
"organization": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}The API token generated from the Obselite dashboard