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
Authorizationstringheaderrequired
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Response
application/jsonSuccess
descriptionstring
Example: "Describe email type here so that it becomes easy for user to understand"
labelstring
Example: "automation"
namestring
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
}
]