Get the current authenticated user
curl --request GET \
--url https://api.webstashai.com/auth/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webstashai.com/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"plan": "free",
"email_verified": 123,
"name": "<string>",
"avatar_url": "<string>"
},
"usage": {
"bookmarks_count": 123,
"ai_queries_month": 123,
"ai_queries_reset_at": "2023-11-07T05:31:56Z"
},
"session_expires_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Get the current authenticated user
GET
https://api.webstashai.com
/
auth
/
me
Get the current authenticated user
curl --request GET \
--url https://api.webstashai.com/auth/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webstashai.com/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"plan": "free",
"email_verified": 123,
"name": "<string>",
"avatar_url": "<string>"
},
"usage": {
"bookmarks_count": 123,
"ai_queries_month": 123,
"ai_queries_reset_at": "2023-11-07T05:31:56Z"
},
"session_expires_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}