Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
curl --request POST \
--url http://localhost:3000/api/user/settings \
--header 'x-access-token: <api-key>'{
"success": true,
"message": "Setting updated!",
"data": [
{
"_id": "687e6ee393c79717445848de",
"key": "variable-2",
"value": "variable value",
"institution": "6631915765bb0a94cfd6ca99",
"user": "6430d02554cd4e00403e8b05",
"status": "active",
"admin_only": true,
"institution_shared": true,
"editable_others": true,
"institution_data": {
"_id": "6631915765bb0a94cfd6ca99",
"name": "scarlet.hugo.praxis-ai.instructure.com",
"ainame": "Scarlet"
},
"user_data": {
"_id": "6430d02554cd4e00403e8b05",
"email": "[email protected]",
"fname": "Hugo",
"lname": "Lebegue"
},
"index": 1
}
]
}Fetches the current instance’s variables with institution and user metadata
curl --request POST \
--url http://localhost:3000/api/user/settings \
--header 'x-access-token: <api-key>'{
"success": true,
"message": "Setting updated!",
"data": [
{
"_id": "687e6ee393c79717445848de",
"key": "variable-2",
"value": "variable value",
"institution": "6631915765bb0a94cfd6ca99",
"user": "6430d02554cd4e00403e8b05",
"status": "active",
"admin_only": true,
"institution_shared": true,
"editable_others": true,
"institution_data": {
"_id": "6631915765bb0a94cfd6ca99",
"name": "scarlet.hugo.praxis-ai.instructure.com",
"ainame": "Scarlet"
},
"user_data": {
"_id": "6430d02554cd4e00403e8b05",
"email": "[email protected]",
"fname": "Hugo",
"lname": "Lebegue"
},
"index": 1
}
]
}JWT token passed in x-access-token header
Successfully retrieved user settings
Whether the operation was successful
true
Success message
"Setting updated!"
Show child attributes
Setting unique identifier
"687e6ee393c79717445848de"
Setting key name
"variable-2"
Setting value
"variable value"
Institution ID this setting belongs to
"6631915765bb0a94cfd6ca99"
User ID this setting belongs to
"6430d02554cd4e00403e8b05"
Setting status
active, inactive "active"
Whether setting is admin-only
true
Whether setting is shared across institution
true
Whether setting can be edited by others
true
Show child attributes
Show child attributes
User unique identifier
"6430d02554cd4e00403e8b05"
User email address
User first name
"Hugo"
User last name
"Lebegue"
Setting display order index
1
Was this page helpful?