Skip to main content
POST
/
webhook
/
insert-webhook
Insert or update user webhook URL
curl --request POST \
  --url https://api.cleartalk.ai/webhook/insert-webhook \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "webhook": "https://example.com/webhook"
}
'
{
  "message": "Webhook successfully updated"
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
webhook
string
required

The webhook URL to set for the user

Example:

"https://example.com/webhook"

Response

Webhook successfully updated

message
string
Example:

"Webhook successfully updated"