Skip to main content
PUT
/
v1
/
webhooks
/
{id}
Update webhook
curl --request PUT \
  --url https://api.timelyai.com.br/v1/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "events": [
    "conversation.created"
  ],
  "is_active": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "is_active": true,
    "secret": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-api-key
string
header
required

API key obtained from the dashboard

Path Parameters

id
string<uuid>
required

Webhook ID

Body

application/json
name
string
Required string length: 1 - 100
url
string<uri>
events
enum<string>[]
Minimum array length: 1
Available options:
conversation.created,
conversation.closed,
conversation.transferred,
message.received,
message.sent,
contact.created,
contact.updated,
appointment.created,
appointment.cancelled,
appointment.completed
is_active
boolean

Response

Webhook updated

data
object