Return ``{success, chat_prompt_id, chat_prompt_set}`` for the caller
The caller's preferences: {success, chat_prompt_id, chat_prompt_set}. chat_prompt_id is default when none was set or the stored prompt was deleted or is no longer shared with the caller. chat_prompt_set is true once a chat prompt was ever stored, default included, even when it now reads as default.
Personal access token scope: prompts:read.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
Success
curl -X GET 'http://localhost:7091/api/user/preferences'Return the caller's limited buckets: ``{bucket, tokens, cost, resets_at}`` each GET
Any valid [personal access token](/API/personal-access-tokens) can call it.
Store ``chat_prompt_id`` after checking the caller may use that prompt PUT
Set the prompt the caller's chats use: {success, chat_prompt_id, applied}. With only_if_unset and a chat prompt already stored, nothing is written, applied is false and chat_prompt_id is the stored one as GET reads it. 400 for a value that is neither a preset nor a prompt id, or a non-boolean only_if_unset; 403 for only_if_unset from a token restricted to specific prompts; 404 when the caller can't read the prompt; 500 when the read or write fails. Returns: Response: `{success, chat_prompt_id, applied}`; `applied` is false only when `only_if_unset` found a stored chat prompt, whose readable value `chat_prompt_id` then carries. [Personal access token](/API/personal-access-tokens) scope: `prompts:write`.