User Profile › Getting User Preference
User Profile
Getting User Preference Getting User Preference
curl -- request GET \
-- url "https://auth.lambdatest.com/api/user/preference" \
-- header "Authorization: Basic <encoded-value>"
[
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "automation" ,
"name" : "Automation Daily" ,
"value" : 0
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "marketing" ,
"name" : "offers and deals" ,
"value" : 0
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "newsletter" ,
"name" : "Newsletters" ,
"value" : 0
} ,
{
"description" : "Get notified when we release something new" ,
"label" : "product" ,
"name" : "Product Updates" ,
"value" : 1
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "weekly" ,
"name" : "Weekly Reports" ,
"value" : 1
}
]
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Response 200▼
application/json Success
description string
Example: "Describe email type here so that it becomes easy for user to understand"
label string
Example: "automation"
name string
Example: "Automation Daily"
curl -- request GET \
-- url "https://auth.lambdatest.com/api/user/preference" \
-- header "Authorization: Basic <encoded-value>"
[
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "automation" ,
"name" : "Automation Daily" ,
"value" : 0
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "marketing" ,
"name" : "offers and deals" ,
"value" : 0
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "newsletter" ,
"name" : "Newsletters" ,
"value" : 0
} ,
{
"description" : "Get notified when we release something new" ,
"label" : "product" ,
"name" : "Product Updates" ,
"value" : 1
} ,
{
"description" : "Describe email type here so that it becomes easy for user to understand" ,
"label" : "weekly" ,
"name" : "Weekly Reports" ,
"value" : 1
}
]