Skip to main content
PATCH
/
agent
/
{agent_id}
Update Agent
curl --request PATCH \
  --url https://api.getoutbox.ai/agent/{agent_id}/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "timezone": "<string>",
  "first_message": "<string>",
  "webhook_url": "<string>",
  "interrupt_mode": "true",
  "log_to_crm": "true",
  "prompt": "<string>",
  "model": {
    "model": "<string>",
    "max_tokens": 123,
    "temperature": 123
  },
  "voice": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "provider": "11labs",
    "accent": "<string>",
    "gender": "<string>",
    "previewUrl": "<string>",
    "style": 123,
    "speed": 123,
    "stability": 123,
    "similarityBoost": 123,
    "useSpeakerBoost": true,
    "optimizeStreamingLatency": 123,
    "autoMode": true,
    "model": "<string>"
  },
  "language": "<string>",
  "keyterms": "<string>",
  "background": "lounge",
  "background_url": "<string>",
  "hipaa_enabled": "true",
  "forwarding_number": "<string>",
  "voicemail_message": "<string>",
  "end_call_message": "<string>",
  "recording_consent_message": "<string>",
  "unqualified_prompt": "<string>",
  "scoring_prompt": "<string>",
  "summary_prompt": "<string>"
}
'

Authorizations

Authorization
string
header
required

Company API Key

Path Parameters

agent_id
string
required

The ID of the agent to update

Body

application/json

Agent fields to update

name
string

Agent name

timezone
string

Timezone for the agent

first_message
string

Initial message

webhook_url
string

Webhook URL for callbacks

interrupt_mode
enum<string>

Enable interrupt mode (chatbot only)

Available options:
true,
false
log_to_crm
enum<string>

Log conversations to CRM

Available options:
true,
false
prompt
string

System prompt

model
object

AI model configuration

voice
object

Voice settings (voicebot only)

language
string

Language (voicebot only)

keyterms
string

Space-separated keywords (voicebot only)

background
enum<string>

Background audio (voicebot only)

Available options:
lounge,
off,
url
background_url
string<uri>

Custom background audio URL used when background is set to url (voicebot only)

hipaa_enabled
enum<string>

HIPAA compliance (voicebot only)

Available options:
true,
false
forwarding_number
string

Call forwarding number (voicebot only)

voicemail_message
string

Voicemail message (voicebot only)

end_call_message
string

End call message (voicebot only)

Recording consent message (voicebot only)

unqualified_prompt
string

Unqualified lead prompt (voicebot only)

scoring_prompt
string

Lead scoring prompt (voicebot only)

summary_prompt
string

Call summary prompt (voicebot only)

Response

Agent updated successfully