Skip to main content

webhooks

Creates, updates, deletes, gets or lists a webhooks resource.

Overview

Namewebhooks
TypeResource
Idcloudflare.streams.webhooks

Fields

The following fields are returned by SELECT queries:

View webhooks response.

NameDatatypeDescription
modifiedstring (date-time)The date and time the webhook was last modified. (example: 2014-01-02T02:20:00Z)
notificationUrlstring (uri)The URL where webhooks will be sent. (example: https://example.com)
notification_urlstring (uri)The URL where webhooks will be sent. (example: https://example.com)
secretstringThe secret used to verify webhook signatures.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idRetrieves a list of webhooks.
updatereplaceaccount_idCreates a webhook notification.
deletedeleteaccount_idDeletes a webhook.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

Retrieves a list of webhooks.

SELECT
modified,
notificationUrl,
notification_url,
secret
FROM cloudflare.streams.webhooks
WHERE account_id = '{{ account_id }}' -- required
;

REPLACE examples

Creates a webhook notification.

REPLACE cloudflare.streams.webhooks
SET
notificationUrl = '{{ notificationUrl }}',
notification_url = '{{ notification_url }}'
WHERE
account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Deletes a webhook.

DELETE FROM cloudflare.streams.webhooks
WHERE account_id = '{{ account_id }}' --required
;