Get current user profile
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/users/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/users/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/users/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"has_usable_password": true,
"email_verified": true,
"roles": [
"<string>"
],
"persona": "integrate",
"channel": "api",
"profile": {
"id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"display": "<string>"
},
"company": {
"id": 123,
"name": "<string>",
"tier": "free",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"login_method": "password",
"ldap_logout_url": "<string>",
"group": {
"id": 123,
"name": "<string>"
}
},
"permissions": {
"is_admin": true,
"can_manage_documents": true,
"can_manage_api_keys": true,
"has_monitoring_permission": true
},
"settings": {
"language": "<string>",
"agent_instructions": "<string>",
"skip_help_step": true
},
"compliance": {
"terms_accepted": true
},
"group_memberships": [
{
"group": {
"id": 123,
"name": "<string>",
"category": "company"
},
"role": "owner"
}
]
}{
"id": null,
"code": 401,
"error": "unauthorized",
"detail": "Authentication credentials were not provided or are invalid.",
"doc_url": "https://developers.lighton.ai/errors#unauthorized"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Users
Get current user profile
Returns information on the authenticated user.
GET
/
api
/
v3
/
users
/
me
Get current user profile
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/users/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/users/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/users/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"has_usable_password": true,
"email_verified": true,
"roles": [
"<string>"
],
"persona": "integrate",
"channel": "api",
"profile": {
"id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"display": "<string>"
},
"company": {
"id": 123,
"name": "<string>",
"tier": "free",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"login_method": "password",
"ldap_logout_url": "<string>",
"group": {
"id": 123,
"name": "<string>"
}
},
"permissions": {
"is_admin": true,
"can_manage_documents": true,
"can_manage_api_keys": true,
"has_monitoring_permission": true
},
"settings": {
"language": "<string>",
"agent_instructions": "<string>",
"skip_help_step": true
},
"compliance": {
"terms_accepted": true
},
"group_memberships": [
{
"group": {
"id": 123,
"name": "<string>",
"category": "company"
},
"role": "owner"
}
]
}{
"id": null,
"code": 401,
"error": "unauthorized",
"detail": "Authentication credentials were not provided or are invalid.",
"doc_url": "https://developers.lighton.ai/errors#unauthorized"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Response
Current user profile
Everything about the currently authenticated user.