Update current user profile
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_instructions": "<string>",
"skip_help_step": true,
"terms_accepted": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users/me"
payload = {
"agent_instructions": "<string>",
"skip_help_step": True,
"terms_accepted": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_instructions: '<string>', skip_help_step: true, terms_accepted: true})
};
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"
}
]
}Users
Update current user profile
Updates settings for the authenticated user.
Updatable fields:
language: User’s preferred languageskip_help_step: Whether to skip help steps in the UIagent_instructions: Custom instructions for AI agentsterms_accepted: Accept the latest terms and conditions (can only be set to true)persona: What the user is trying to achieve (captured at onboarding)channel: How the user will mostly interact (captured at onboarding)
Note: Setting terms_accepted to false will result in a 400 error.
PATCH
/
api
/
v3
/
users
/
me
Update current user profile
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_instructions": "<string>",
"skip_help_step": true,
"terms_accepted": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users/me"
payload = {
"agent_instructions": "<string>",
"skip_help_step": True,
"terms_accepted": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_instructions: '<string>', skip_help_step: true, terms_accepted: true})
};
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"
}
]
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
The updated current user profile.
Everything about the currently authenticated user.