AI

Set the AI policy for a connection

Draft or auto mode, with token, rate and monthly cost ceilings. Absent policy means AI is off for that connection.

put/v1/ai/policies/{connection}

Request

  • Base URL: https://www.chatrail.dev
  • URL: https://www.chatrail.dev/v1/ai/policies/{connection}
  • Auth: HTTP bearer

Path parameters

connectionstring required

Connection slug.

Request body

credential_source'byok' | 'managed'
credential_idstring uuid nullable
enabledboolean required
mode'draft' | 'auto' required
modelstring
system_instructionstring required
max_context_bytesinteger
max_output_tokensinteger
include_historyboolean
humanizeboolean
human_takeover_minutesinteger
reply_delay_secondsinteger
group_replies'off' | 'addressed' | 'all'
monthly_cost_limit_microsinteger nullable
input_cost_micros_per_millioninteger
output_cost_micros_per_millioninteger

Response

The policy.

Changes

No recorded changes to this operation across all 1 revision of this API.