Skip to main content
PUT
Update webhook

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook_id
string
required

an ID of webhook

Body

application/json

A JSON describing webhook.

Partial representation used to update an existing webhook. Any omitted field keeps its current value.

event_type
enum<string>

Event topic that will trigger the webhook. For the current list of supported values see the Webhooks events documentation (for example: message:sent:new, message:received:new).

Available options:
message:new,
message:sent:new,
message:received:new,
whatsapp:account:connected,
whatsapp:account:disconnected,
whatsapp:account:suspended,
whatsapp:account:resumed,
chat:new,
chat:incoming:new,
chat:outgoing:new,
chat:responsible:assigned,
chat:responsible:unassigned,
call:incoming:missed,
call:incoming:ended,
call:outgoing:ended,
message:reaction
Example:

"message:sent:new"

enabled
boolean

Set to true to resume deliveries or false to pause them.

Example:

true

url
string

Destination HTTPS endpoint that TimelinesAI will call. Must be publicly accessible and respond with 2xx status within 5 seconds. The URL must be a structurally valid http(s):// URL — TimelinesAI rejects URLs that contain characters or shapes that would prevent a standard HTTP client from dispatching to them (for example, unescaped + or = in the userinfo portion). The validator runs on POST /webhooks and PUT /webhooks/{id}; a malformed URL is rejected with 400 validation_error.

Maximum string length: 4096
Example:

"http://www.example.com/api/hook"

Response

Success

Standard envelope returning a single webhook in the data field.

status
enum<string>
required
Available options:
ok,
error
Example:

"ok"

data
object
required

Server generated representation of a webhook subscription including its unique identifier and delivery error statistics.