Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Verify Push Webhooks


(information)

Info

Looking for Verify Events?

See this overview for how to stream Verify Events from multiple Verification channels to a webhook.


Overview

overview page anchor

Webhooks are a general pattern for how one system can be notified of events generated by another system in real-time. In the case of Verify Push, your app backend can be notified when a Factor has been verified or when a Challenge has been approved by the Verify Push service, so that it knows to advance the user to the next step in your flow. This is more real-time and efficient than constantly polling the Verify Push API for the status of a Factor or Challenge.

To configure webhooks, follow these steps:

  1. Configure a webhook in your Verify Service via the Console UI
  2. Receive, parse, and verify a webhook
  3. Manage webhooks via Verify API (optional)

1. Configure a webhook in your Verify Service

1-configure-a-webhook-in-your-verify-service page anchor

Prerequisites

  1. Create a Verify Service.
  2. Create a REST API endpoint in your app backend that can receive HTTP POST requests.

Configure a webhook via Console UI

You can configure a webhook either via UI or API. We'll show the UI option first and then the API option later.

Webhook Events

webhook-events page anchor
EventDescription
*Fires when any of the following events occur.
factor.createdFires when a factor is created for the entity but is not ready to receive challenges.
factor.verifiedFires when a factor is verified and now is able to receive challenges.
factor.deletedFires when a factor was deleted from an entity.
challenge.approvedFires when a challenge is approved by the user.
challenge.deniedFires when a challenge is denied by the user.

2. Receive, parse, and verify a webhook

2-receive-parse-and-verify-a-webhook page anchor

When Twilio makes an HTTP request to your app backend, it will include parameters related to the event that triggered it:

ParameterTypeDescription
uuidStringUnique identifier for the webhook
typeStringEvent type
account_sidString, SIDThe Twilio Account SID that the Service instance belongs to
service_sidString, SIDThe Verify Service instance SID that the action relates to
entity_identityStringUnique identifier for the user
factor_sidString, SIDThe Verify Factor instance SID that the action relates to
factor_typeStringThe Type of the Verify Factor that the action relates to. Currently only push is supported
factor_friendly_nameStringThe friendly name of the Verify Factor that the action relates to
challenge_sidString, SIDThe Verify Challenge instance SID that the action relates to
challenge_detailsString, JSON StringThe Verify Challenge details provided for context and intended to be shown to the end user that the action relates to
challenge_hidden_detailsString, JSON StringThe Verify Challenge hidden details provided for context and not intended to be shown to the end user that the action relates to. If not provided during the Verify Challenge creation this parameter will be omitted
challenge_metadataString, JSON StringCustom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It is a stringified JSON with only string values eg. {"os": "Android"} up to 1024 characters in length. If not provided during the Challenge verification, this parameter will be omitted.
factor_metadataString, JSON StringCustom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It is a stringified JSON with only string values eg. {"os": "Android"} up to 1024 characters in length. If not provided during the Factor creation, this parameter will be omitted.

Webhook v2 call for factor events

webhook-v2-call-for-factor-events page anchor

_17
METADATA=$(cat << EOF
_17
{
_17
"os": "Android"
_17
}
_17
EOF
_17
)
_17
_17
curl -X POST https://mywebsite.com/webhook \
_17
--data-urlencode "uuid=Unique identifier" \
_17
--data-urlencode "type=factor.verified" \
_17
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_17
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_17
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_17
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_17
--data-urlencode "factor_type=push" \
_17
--data-urlencode "factor_friendly_name=John's Phone"
_17
--data-urlencode "factor_metadata=$METADATA"

Webhook v2 call for factors events without metadata

webhook-v2-call-for-factors-events-without-metadata page anchor

_10
curl -X POST https://mywebsite.com/webhook \
_10
--data-urlencode "uuid=Unique identifier" \
_10
--data-urlencode "type=factor.verified" \
_10
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_10
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "factor_type=push" \
_10
--data-urlencode "factor_friendly_name=John's Phone"

Webhook v2 call for challenge events

webhook-v2-call-for-challenge-events page anchor

_49
DETAILS=$(cat << EOF
_49
{
_49
"message": "Hi! Mr. John Doe, would you like to sign up?",
_49
"date": "2020-07-01T12:13:14Z",
_49
"fields": [
_49
{
_49
"label": "Action",
_49
"value": "Sign up in portal"
_49
}
_49
]
_49
}
_49
EOF
_49
)
_49
_49
HIDDENDETAILS=$(cat << EOF
_49
{
_49
"ip": "127.0.0.1"
_49
}
_49
EOF
_49
)
_49
_49
CHALLENGEMETADATA=$(cat << EOF
_49
{
_49
"os": "Android"
_49
}
_49
EOF
_49
)
_49
_49
FACTORMETADATA=$(cat << EOF
_49
{
_49
"os": "Android"
_49
}
_49
EOF
_49
)
_49
_49
curl -X POST https://mywebsite.com/webhook \
_49
--data-urlencode "uuid=Unique identifier" \
_49
--data-urlencode "type=challenge.approved" \
_49
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_49
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_49
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_49
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_49
--data-urlencode "factor_type=push" \
_49
--data-urlencode "factor_friendly_name=John's Phone" \
_49
--data-urlencode "factor_metadata=$FACTORMETADATA" \
_49
--data-urlencode "challenge_sid=YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_49
--data-urlencode "challenge_details=$DETAILS" \
_49
--data-urlencode "challenge_hidden_details=$HIDDENDETAILS" \
_49
--data-urlencode "challenge_metadata=$CHALLENGEMETADATA"

Webhook v2 call for challenge events without hidden details nor metadata

webhook-v2-call-for-challenge-events-without-hidden-details-nor-metadata page anchor

_25
DETAILS=$(cat << EOF
_25
{
_25
"message": "Hi! Mr. John Doe, would you like to sign up?",
_25
"date": "2020-07-01T12:13:14Z",
_25
"fields": [
_25
{
_25
"label": "Action",
_25
"value": "Sign up in portal"
_25
}
_25
]
_25
}
_25
EOF
_25
)
_25
_25
curl -X POST https://mywebsite.com/webhook \
_25
--data-urlencode "uuid=Unique identifier" \
_25
--data-urlencode "type=challenge.approved" \
_25
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_25
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_25
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_25
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_25
--data-urlencode "factor_type=push" \
_25
--data-urlencode "factor_friendly_name=John's Phone" \
_25
--data-urlencode "challenge_sid=YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_25
--data-urlencode "challenge_details=$DETAILS"

(warning)

Warning

Webhooks v1 is legacy and may be removed in the future.

ParameterTypeDescription
uuidStringUnique identifier for the webhook
typeStringEvent type
account_sidString, SIDThe Twilio Account SID that the Service instance belongs to
service_sidString, SIDThe Verify Service instance SID that the action relates to
entity_identityStringUnique identifier for the user
factor_sidString, SIDThe Verify Factor instance SID that the action relates to
challenge_sidString, SIDThe Verify Challenge instance SID that the action relates to

Webhook v1 call for factor events

webhook-v1-call-for-factor-events page anchor

_10
curl -X POST https://mywebsite.com/webhook \
_10
--data-urlencode "uuid=Unique identifier" \
_10
--data-urlencode "type=factor.verified" \
_10
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_10
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Webhook v1 call for challenge events

webhook-v1-call-for-challenge-events page anchor

_10
curl -X POST https://mywebsite.com/webhook \
_10
--data-urlencode "uuid=Unique identifier" \
_10
--data-urlencode "type=challenge.approved" \
_10
--data-urlencode "account_sid=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "service_sid=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "entity_identity=ff483d1ff591898a9942916050d2ca3f" \
_10
--data-urlencode "factor_sid=YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
--data-urlencode "challenge_sid=YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Verify the webhook's signature to confirm that it came from Twilio

  • Each HTTP request is issued with the Content-Type header application/x-www-urlencoded and signed with an X-Twilio-Signature HTTP header.
  • Twilio uses the parameters sent in the webhook and the exact URL your application supplied to Twilio to create this signature. The signature uses the HMAC-SHA1 hashing algorithm with your Twilio account's auth token as the secret key.
  • Your application can verify that this signature is correct using the server side Twilio SDKs. You will need your account's auth token, the value of the X-Twilio-Signature HTTP header that Twilio passed to you, the URL that Twilio sent the webhook to, and all of the parameters sent by Twilio.
  • For more information, check out our guide to Getting Started with Twilio Webhooks and Validating Requests are coming from Twilio . Find other webhook pages, such as a security guide and an FAQ in the Webhooks section of the docs.

3. Manage webhooks via Verify API (optional)

3-manage-webhooks-via-verify-api-optional page anchor

In addition to the Console UI, you can programmatically manage the Webhooks resource according to this API reference:


Resource properties
sidtype: SID<YW>Not PII

The unique string that we created to identify the Webhook resource.


service_sidtype: SID<VA>Not PII

The unique SID identifier of the Service.


account_sidtype: SID<AC>Not PII

The SID of the Account(link takes you to an external page) that created the Service resource.


friendly_nametype: stringNot PII

The string that you assigned to describe the webhook. This value should not contain PII.


event_typestype: string[]Not PII

The array of events that this Webhook is subscribed to. Possible event types: *, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied


statustype: enum<STRING>Not PII

The webhook status. Default value is enabled. One of: enabled or disabled

Possible values:
enableddisabled

versiontype: enum<STRING>Not PII

The webhook version. Default value is v2 which includes all the latest fields. Version v1 is legacy and may be removed in the future.

Possible values:
v1v2

webhook_urltype: string<URI>Not PII

The URL associated with this Webhook.


webhook_methodtype: enum<STRING>Not PII

The method to be used when calling the webhook's URL.

Possible values:
GETPOST

date_createdtype: string<DATE TIME>Not PII

The date and time in GMT when the resource was created specified in ISO 8601(link takes you to an external page) format.


date_updatedtype: string<DATE TIME>Not PII

The date and time in GMT when the resource was last updated specified in ISO 8601(link takes you to an external page) format.


urltype: string<URI>Not PII

The absolute URL of the Webhook resource.


POST https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks

URI parameters
ServiceSidtype: SID<VA>Not PII
Path Parameter

The unique SID identifier of the Service.


Request body parameters
FriendlyNametype: stringNot PII
Required

The string that you assigned to describe the webhook. This value should not contain PII.


EventTypestype: string[]Not PII
Required

The array of events that this Webhook is subscribed to. Possible event types: *, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied


WebhookUrltype: stringNot PII
Required

The URL associated with this Webhook.


Statustype: enum<STRING>Not PII

The webhook status. Default value is enabled. One of: enabled or disabled

Possible values:
enableddisabled

Versiontype: enum<STRING>Not PII

The webhook version. Default value is v2 which includes all the latest fields. Version v1 is legacy and may be removed in the future.

Possible values:
v1v2
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_15
// Download the helper library from https://www.twilio.com/docs/node/install
_15
// Find your Account SID and Auth Token at twilio.com/console
_15
// and set the environment variables. See http://twil.io/secure
_15
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_15
const authToken = process.env.TWILIO_AUTH_TOKEN;
_15
const client = require('twilio')(accountSid, authToken);
_15
_15
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_15
.webhooks
_15
.create({
_15
friendlyName: 'My Webhook',
_15
eventTypes: ['factor.created', 'factor.verified'],
_15
webhookUrl: 'https://mywebsite.com/webhook'
_15
})
_15
.then(webhook => console.log(webhook.sid));

Output

_17
{
_17
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"sid": "YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"friendly_name": "My Webhook",
_17
"event_types": [
_17
"factor.created",
_17
"factor.verified"
_17
],
_17
"webhook_method": "POST",
_17
"webhook_url": "https://mywebsite.com/webhook",
_17
"status": "enabled",
_17
"version": "v2",
_17
"date_created": "2015-07-30T20:00:00Z",
_17
"date_updated": "2015-07-30T20:00:00Z"
_17
}


Fetch a Webhook resource

fetch-a-webhook-resource page anchor
GET https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks/{Sid}

URI parameters
ServiceSidtype: SID<VA>Not PII
Path Parameter

The unique SID identifier of the Service.


Sidtype: SID<YW>Not PII
Path Parameter

The Twilio-provided string that uniquely identifies the Webhook resource to fetch.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.webhooks('YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.fetch()
_11
.then(webhook => console.log(webhook.friendlyName));

Output

_17
{
_17
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"sid": "YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"friendly_name": "name",
_17
"event_types": [
_17
"factor.deleted",
_17
"factor.verified"
_17
],
_17
"webhook_method": "POST",
_17
"webhook_url": "https://owlbank.twilio.com",
_17
"status": "enabled",
_17
"version": "v2",
_17
"date_created": "2015-07-30T20:00:00Z",
_17
"date_updated": "2015-07-30T20:00:00Z"
_17
}


Read multiple Webhook resources

read-multiple-webhook-resources page anchor
GET https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks

URI parameters
ServiceSidtype: SID<VA>Not PII
Path Parameter

The unique SID identifier of the Service.


PageSizetype: integerNot PII
Query Parameter

How many resources to return in each list page. The default is 50, and the maximum is 1000.


Pagetype: integerNot PII
Query Parameter

The page index. This value is simply for client state.


PageTokentype: stringNot PII
Query Parameter

The page token. This is provided by the API.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.webhooks
_11
.list({limit: 20})
_11
.then(webhooks => webhooks.forEach(w => console.log(w.sid)));

Output

_30
{
_30
"webhooks": [
_30
{
_30
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_30
"sid": "YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_30
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_30
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_30
"friendly_name": "name",
_30
"event_types": [
_30
"factor.deleted",
_30
"factor.verified"
_30
],
_30
"webhook_method": "POST",
_30
"webhook_url": "https://owlbank.twilio.com",
_30
"status": "enabled",
_30
"version": "v2",
_30
"date_created": "2015-07-30T20:00:00Z",
_30
"date_updated": "2015-07-30T20:00:00Z"
_30
}
_30
],
_30
"meta": {
_30
"page": 0,
_30
"page_size": 50,
_30
"first_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks?PageSize=50&Page=0",
_30
"previous_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks?PageSize=50&Page=0",
_30
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks?PageSize=50&Page=0",
_30
"next_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks?PageSize=50&Page=1",
_30
"key": "webhooks"
_30
}
_30
}


Update a Webhook resource

update-a-webhook-resource page anchor
POST https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks/{Sid}

URI parameters
ServiceSidtype: SID<VA>Not PII
Path Parameter

The unique SID identifier of the Service.


Sidtype: SID<YW>Not PII
Path Parameter

The Twilio-provided string that uniquely identifies the Webhook resource to update.


Request body parameters
FriendlyNametype: stringNot PII

The string that you assigned to describe the webhook. This value should not contain PII.


EventTypestype: string[]Not PII

The array of events that this Webhook is subscribed to. Possible event types: *, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied


WebhookUrltype: stringNot PII

The URL associated with this Webhook.


Statustype: enum<STRING>Not PII

The webhook status. Default value is enabled. One of: enabled or disabled

Possible values:
enableddisabled

Versiontype: enum<STRING>Not PII

The webhook version. Default value is v2 which includes all the latest fields. Version v1 is legacy and may be removed in the future.

Possible values:
v1v2
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.webhooks('YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.update({friendlyName: 'friendly_name'})
_11
.then(webhook => console.log(webhook.friendlyName));

Output

_17
{
_17
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"sid": "YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_17
"friendly_name": "name",
_17
"event_types": [
_17
"factor.deleted",
_17
"factor.verified"
_17
],
_17
"webhook_method": "POST",
_17
"webhook_url": "https://owlbank.twilio.com",
_17
"status": "disabled",
_17
"version": "v2",
_17
"date_created": "2015-07-30T20:00:00Z",
_17
"date_updated": "2015-07-30T20:00:00Z"
_17
}


Delete a Webhook resource

delete-a-webhook-resource page anchor
DELETE https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks/{Sid}

URI parameters
ServiceSidtype: SID<VA>Not PII
Path Parameter

The unique SID identifier of the Service.


Sidtype: SID<YW>Not PII
Path Parameter

The Twilio-provided string that uniquely identifies the Webhook resource to delete.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.webhooks('YWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.remove();


Rate this page: