Overview
The Agent Preferences API stores per-user response-style settings. On every successful update, the platform regenerates a managed STYLE.md file in every agent workspace owned by the user. These preferences are also injected into agent-chat system instructions at send time.
Supported response styles are:
concise — brief, direct responses without preamble.
balanced — the default, thorough enough to be useful but concise enough to stay readable.
detailed — full reasoning, context, and edge cases.
custom — driven entirely by custom_instructions.
Base URL
Authentication
All requests must include a valid bearer token in the Authorization header.
Preference object
Endpoints
Get preferences
Returns the caller’s preferences. If no row exists, returns the default style balanced with empty custom instructions.
Example request
Example response
Set preferences
Updates the caller’s preferences. Omitted fields are merged with existing values. After the database update, the gateway best-effort regenerates STYLE.md in every agent workspace the user owns.
Request body
Example request
Example response
The managed STYLE.md written to each workspace looks like this:
Do not hand-edit STYLE.md. The gateway overwrites it on every preference update.
Error codes
Related pages