Settings
Account system settings.
Endpoints
GET https://ai-tokenhub.com/v1/settings
PUT https://ai-tokenhub.com/v1/settingsGet Settings
bash
curl https://ai-tokenhub.com/v1/settings \
-H "Authorization: Bearer YOUR_API_KEY"Response
json
{
"account": {
"timezone": "Asia/Shanghai",
"language": "zh-CN",
"currency": "CNY"
},
"notifications": {
"email_usage_alert": true,
"balance_threshold": 100
},
"api": {
"default_model": "gpt-4o",
"default_temperature": 0.7
}
}Update Settings
bash
curl -X PUT https://ai-tokenhub.com/v1/settings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"notifications": {
"balance_threshold": 500
}
}'