Get user settings
GET
/v1/user/settings
const url = 'https://api.neuramancer.dev/v1/user/settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.neuramancer.dev/v1/user/settings \ --header 'Authorization: Bearer <token>'Returns the authenticated user’s settings (language preference, ToS acceptance). Requires authentication with settings scope.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”User settings retrieved successfully
Media typeapplication/json
object
success
boolean
data
User preference settings.
object
lang
Preferred language code (e.g. ‘de’, ‘en’)
string
tosAccepted
Whether the user has accepted the terms of service
boolean
Example
{ "success": true, "data": { "lang": "de" }}Unauthorized - missing or invalid token
Media typeapplication/json
Standardized error response following the APIResponse
object
success
required
boolean
message
required
string
Example
{ "success": false, "message": "Bad request"}Internal server error
Media typeapplication/json
Standardized error response following the APIResponse
object
success
required
boolean
message
required
string
Example
{ "success": false, "message": "Bad request"}