Skip to main content
PATCH
Update a webhook destination
Supply expectedUpdatedAt and at least one editable field. A stale token returns 409 conflict. An unchanged patch returns the current updatedAt without an audit event. Source and event changes apply to later occurrences.

Authorizations

Authorization
string
header
required

An API key (tars_sk_…) sent as Authorization: Bearer <key>. Each operation names the permission it needs. Create keys in Settings → Integrations → API keys.

Path Parameters

id
string
required

The id.

Required string length: 1 - 128

Body

application/json

The destination fields to change, with the updatedAt you last read.

expectedUpdatedAt
integer
required

The destination's updatedAt from the last list, create or update response.

name
string
Maximum string length: 80
url
string<uri>

A public https URL.

Maximum string length: 2048
sources

Where events come from: "all", or the chat agents, voice agents and campaigns to receive events from.

events
enum<string>[]
Minimum array length: 1
Available options:
conversation.started,
conversation.ended,
conversation.analyzed,
call.transcript_updated,
call.transfer_ringing,
call.transfer_connected,
call.transfer_bridged,
call.transfer_failed,
call.transfer_cancelled,
call.guardrail_triggered,
call.sms_sent,
call.continued_in_chat,
handoff.requested,
handoff.accepted,
handoff.unmet,
handoff.completed,
campaign.message_sent,
campaign.message_delivered,
campaign.message_read,
campaign.message_replied,
campaign.message_failed,
campaign.completed,
contact.created,
contact.updated
timeoutMs
integer
Required range: 1000 <= x <= 30000
enabled
boolean

Response

The next expectedUpdatedAt.

The destination's new updatedAt: send it as the next expectedUpdatedAt.

id
string
required
updatedAt
number
required