cURL
curl --request GET \ --url https://api.example.com/api/v2/user/settings \ --header 'Content-Type: application/json' \ --data ' { "language": "<string>", "image_format": "<string>", "notifications_enabled": true } '
Get and update user preferences
curl https://neuralbox.top/api/v2/user/settings \ -H "Authorization: Bearer nb_YOUR_API_KEY"
{ "language": "en", "image_format": "webp", "notifications_enabled": true, "default_image_size": "1024x1024" }
curl -X PATCH https://neuralbox.top/api/v2/user/settings \ -H "Authorization: Bearer nb_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"image_format": "png", "language": "ru"}'
en
ru
webp
png
jpeg
200 OK