Skip to main content

Chat preferences

The retarget endpoint uses an editable system prompt to steer how proactive openers sound. These two endpoints read and set it. Both require the chat:companion scope.

Get preferences

GET /api/v1/me/chat-preferences
{
"retarget_system_prompt": null,
"resolved_retarget_system_prompt": "You are reaching out first to re-engage the user...",
"is_default": true,
"default_prompt": "You are reaching out first to re-engage the user..."
}
FieldTypeNotes
retarget_system_promptstring | nullYour saved override, or null when you haven't set one.
resolved_retarget_system_promptstringThe prompt actually used (your override, or the default).
is_defaultbooleantrue when no override is set.
default_promptstringThe built-in default, for reference.

Set preferences

PUT /api/v1/me/chat-preferences
FieldTypeRequiredNotes
retarget_system_promptstringUp to 8000 chars. Send an empty or whitespace-only string to reset to the default.
curl -X PUT https://api.phantomrouter.ai/api/v1/me/chat-preferences \
-H "Authorization: Bearer $PHANTOM_KEY" \
-H "Content-Type: application/json" \
-d '{ "retarget_system_prompt": "Reach out warmly, reference a shared memory, ask one question." }'

Returns the same shape as Get preferences. See Retarget for how this prompt is used.