Skip to main content

Edge Route Webhook Verification Module

Replace HTTPS Edge Route Webhook Verification Module

Request

PUT /edges/https/{edge_id}/routes/{id}/webhook_verification

Example Request

curl \
-X PUT \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"enabled":true,"provider":"TWILIO","secret":"secret_token"}' \
https://api.ngrok.com/edges/https/edghts_2k5okiZZ3cXOfmTy3cIHAF0GmFI/routes/edghtsrt_2k5oklP3JJP5NJELNk4tsFBqSTh/webhook_verification

Parameters

NameTypeDescription
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
providerstringa string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers defined at https://ngrok.com/docs/cloud-edge/modules/webhook-verification
secretstringa string secret used to validate requests from the given provider. All providers except AWS SNS require a secret

Response

Returns a 200 response on success

Example Response

{
"enabled": true,
"provider": "TWILIO",
"secret": "secret_token"
}

Fields

NameTypeDescription
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
providerstringa string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers defined at https://ngrok.com/docs/cloud-edge/modules/webhook-verification
secretstringa string secret used to validate requests from the given provider. All providers except AWS SNS require a secret

Get HTTPS Edge Route Webhook Verification Module

Request

GET /edges/https/{edge_id}/routes/{id}/webhook_verification

Example Request

curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2k5okiZZ3cXOfmTy3cIHAF0GmFI/routes/edghtsrt_2k5oklP3JJP5NJELNk4tsFBqSTh/webhook_verification

Response

Returns a 200 response on success

Example Response

{
"enabled": true,
"provider": "TWILIO",
"secret": "secret_token"
}

Fields

NameTypeDescription
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
providerstringa string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers defined at https://ngrok.com/docs/cloud-edge/modules/webhook-verification
secretstringa string secret used to validate requests from the given provider. All providers except AWS SNS require a secret

Delete HTTPS Edge Route Webhook Verification Module

Request

DELETE /edges/https/{edge_id}/routes/{id}/webhook_verification

Example Request

curl \
-X DELETE \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2k5okiZZ3cXOfmTy3cIHAF0GmFI/routes/edghtsrt_2k5oklP3JJP5NJELNk4tsFBqSTh/webhook_verification

Response

Returns a 204 response with no body on success