Users
Get preferences
Retrieve the authenticated user's preferences.
GET /users/me/preferences
Returns the user's preferences object.
Authentication: Bearer token · Permission:
account:read · Rate limit: default (120 / 60s)Request
curl https://api.twominutereports.com/v1/users/me/preferences \
-H "Authorization: Bearer tmrc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Response
{
"success": true,
"data": {
"appearance": "light",
"notifications": {
"email": { "billing": true, "productUpdates": true, "promotional": false }
}
}
}
{
"success": false,
"error": { "code": "UNAUTHORIZED", "message": "Authentication required" }
}
The preferences object
appearance
string
Theme preference. One of
auto, light, dark.notifications.email.billing
boolean
Whether to receive billing-related emails.
notifications.email.productUpdates
boolean
Whether to receive product-update emails.
notifications.email.promotional
boolean
Whether to receive promotional emails.