Skip to main content
PUT
/
v1
/
organization
/
apps
/
{appId}
/
webhooks
/
{webhookId}
cURL
curl --request PUT \
  --url https://9dc2c77e6dbf.ngrok-free.app/v1/organization/apps/{appId}/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://example.com/webhook",
  "events": [
    "MESSAGE_CREATED",
    "MESSAGE_DELIVERED"
  ],
  "headers": {
    "X-Custom-Header": "new-value"
  }
}'
{
  "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
  "appId": "b1ffcd11-1d1c-5fg9-cc7e-7cc0ce491b22",
  "url": "https://example.com/webhook",
  "events": [
    "MESSAGE_CREATED",
    "MESSAGE_SENT"
  ],
  "headers": {
    "X-Custom-Header": "value"
  },
  "createdAt": "2021-08-01T00:00:00Z",
  "updatedAt": "2021-08-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Admin API key (format: sk_admin_*) for organization-level operations

Path Parameters

appId
string<uuid>
required

App UUID

Example:

"b1ffcd11-1d1c-5fg9-cc7e-7cc0ce491b22"

webhookId
string<uuid>
required

Webhook UUID

Example:

"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"

Body

application/json
url
string<uri>

URL to send webhook events to

Example:

"https://example.com/webhook"

events
enum<string>[]

Events to trigger webhook

Example:
["MESSAGE_CREATED", "MESSAGE_DELIVERED"]
headers
object

Custom headers to include in webhook requests

Example:
{ "X-Custom-Header": "new-value" }

Response

Update webhook

id
string<uuid>
required

Webhook UUID

Example:

"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"

appId
string<uuid>
required

App UUID

Example:

"b1ffcd11-1d1c-5fg9-cc7e-7cc0ce491b22"

url
string<uri>
required

URL to send webhook events to

Example:

"https://example.com/webhook"

events
string[]
required

Events that trigger this webhook

Example:
["MESSAGE_CREATED", "MESSAGE_SENT"]
headers
object | null
required

Custom headers included in webhook requests

Example:
{ "X-Custom-Header": "value" }
createdAt
string<date-time>
required

When the webhook was created

Example:

"2021-08-01T00:00:00Z"

updatedAt
string<date-time>
required

When the webhook was last updated

Example:

"2021-08-01T00:00:00Z"