Get my preferences
curl --request GET \
--url https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"monthly_reports_mail": true
}{
"error": "My preferences belong to a signed-in user, so they are not available with an API key."
}My preferences
Get my preferences
This API returns the preferences of the signed-in user. It works only for a signed-in user, such as a CLI session. An API key has no user, so the request is refused.
GET
/
my_preferences
Get my preferences
curl --request GET \
--url https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v2/my_preferences"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"monthly_reports_mail": true
}{
"error": "My preferences belong to a signed-in user, so they are not available with an API key."
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Response
OK - Request succeeded
Example:
true