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>"
]
}Get current user profile
Returns information on the authenticated user.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Current user profile
Everything about the currently authenticated user.
Whether the user has a password set (false for SSO/LDAP-only).
Whether the user's primary email has been verified.
The user's role slugs, e.g. company_admin.
What the user is trying to achieve, captured at onboarding.
integrate- integrateno_code- no_codeevaluate- evaluateexploring- exploring
integrate, no_code, evaluate, exploring How the user will mostly interact, captured at onboarding.
api- apimcp- mcp
api, mcp The user's identity.
Show child attributes
Show child attributes
The user's company. Null if the user has no company.
Show child attributes
Show child attributes
What the user is allowed to do.
Show child attributes
Show child attributes
The user's preferences.
Show child attributes
Show child attributes
The user's legal acceptance status.
Show child attributes
Show child attributes
The groups the user belongs to, with their role in each.
Show child attributes
Show child attributes