Get the current user
curl --request GET \
--url https://api.arg.ai/api/auth/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Account
Get the current user
Return the signed-in user. Requires a user session, not an API key.
GET
/
api
/
auth
/
me
Get the current user
curl --request GET \
--url https://api.arg.ai/api/auth/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful response
The response is of type object.