Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
curl --request GET \
--url http://localhost:3000/api/admin/user/{userId} \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"rt_voice": "coral",
"use_location": true,
"showSideBar": true,
"dark_mode": true,
"max_dialogues": 123,
"_id": "<string>",
"email": "<string>",
"fname": "<string>",
"lname": "<string>",
"picture": "<string>",
"password": "<string>",
"accountType": "<string>",
"permissions": [
"<string>"
],
"customerId": "<string>",
"lxp_user_id": "<string>",
"lxp_user_type": 123,
"lxp_partner_id": "<string>",
"lxp_partner_name": "<string>",
"lxp_role_id": 123,
"lxp_role_name": "<string>",
"credits": 123,
"creditsUsed": 123,
"plan": "<string>",
"status": "<string>",
"trial_end": "2023-11-07T05:31:56Z",
"trial_used": true,
"current_period_end": "2023-11-07T05:31:56Z",
"cancel_at_period_end": true,
"referralId": "<string>",
"referrerPaid": true,
"institution": {
"_id": "<string>",
"name": "<string>",
"picture": "<string>",
"credits": 123,
"creditsUsed": 123,
"creditsAwarded": 123,
"status": "active",
"publicId": "<string>",
"publicAuthorizedUrls": [
"<string>"
],
"ainame": "<string>",
"contactEmail": "<string>",
"poolCredits": true,
"created": "2023-11-07T05:31:56Z",
"conversationModel": "<string>",
"account": {
"_id": "<string>",
"name": "<string>"
},
"maxCompletionTokens": 123,
"creditsTotal": 123,
"creditsUsagePct": 123,
"id": "<string>",
"displayAgentDetails": true
},
"resetCodeId": "<string>",
"direct": true,
"invoices_urls": [
"<string>"
],
"remember_history_count": 123,
"browser_voice": "<string>",
"created": "2023-11-07T05:31:56Z"
}
}Retrieves detailed information about a specific user. Requires admin privileges.
curl --request GET \
--url http://localhost:3000/api/admin/user/{userId} \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"rt_voice": "coral",
"use_location": true,
"showSideBar": true,
"dark_mode": true,
"max_dialogues": 123,
"_id": "<string>",
"email": "<string>",
"fname": "<string>",
"lname": "<string>",
"picture": "<string>",
"password": "<string>",
"accountType": "<string>",
"permissions": [
"<string>"
],
"customerId": "<string>",
"lxp_user_id": "<string>",
"lxp_user_type": 123,
"lxp_partner_id": "<string>",
"lxp_partner_name": "<string>",
"lxp_role_id": 123,
"lxp_role_name": "<string>",
"credits": 123,
"creditsUsed": 123,
"plan": "<string>",
"status": "<string>",
"trial_end": "2023-11-07T05:31:56Z",
"trial_used": true,
"current_period_end": "2023-11-07T05:31:56Z",
"cancel_at_period_end": true,
"referralId": "<string>",
"referrerPaid": true,
"institution": {
"_id": "<string>",
"name": "<string>",
"picture": "<string>",
"credits": 123,
"creditsUsed": 123,
"creditsAwarded": 123,
"status": "active",
"publicId": "<string>",
"publicAuthorizedUrls": [
"<string>"
],
"ainame": "<string>",
"contactEmail": "<string>",
"poolCredits": true,
"created": "2023-11-07T05:31:56Z",
"conversationModel": "<string>",
"account": {
"_id": "<string>",
"name": "<string>"
},
"maxCompletionTokens": 123,
"creditsTotal": 123,
"creditsUsagePct": 123,
"id": "<string>",
"displayAgentDetails": true
},
"resetCodeId": "<string>",
"direct": true,
"invoices_urls": [
"<string>"
],
"remember_history_count": 123,
"browser_voice": "<string>",
"created": "2023-11-07T05:31:56Z"
}
}JWT token passed in x-access-token header
The user ID to retrieve
User details retrieved successfully
Request success status
Show child attributes
Real-time voice setting
"coral"
Whether user allows location usage
Show Sidebar in Pria UI
Dark mode preference
Maximum number of dialogues
User ID
User email address
First name
Last name
Profile picture URL
Encrypted password hash
Type of user account
User permissions array
Customer ID
LXP user identifier
LXP user type
LXP partner ID
LXP partner name
LXP role ID
LXP role name
Available credits
Credits used
User subscription plan
User account status
Trial end date
Whether trial has been used
Current billing period end
Whether to cancel at period end
Referral ID
Whether referrer has been paid
Show child attributes
Institution ID
Institution name
Institution picture URL
Available credits for the institution
Number of credits used
Credits awarded to the institution
Institution status
active, inactive Public identifier for the institution
List of authorized URLs for the institution
AI name for the institution
Contact email for the institution
Whether credits are pooled
Institution creation timestamp
AI conversation model used
Maximum completion tokens allowed
Total credits available
Percentage of credits used
Institution identifier
Whether to display agent details
Password reset code ID
Direct user flag
Array of invoice URLs
Number of history items to remember
Browser voice setting
Account creation date
Was this page helpful?