The Verification Attempts Summary API is currently in the Public Beta release stage!
Please note that Verification Attempts Summary API currently only supports SMS, WhatsApp, and Voice channels.
The Verification Attempts Summary API allows you to summarize verification attempts generated by your Verify V2 services.
A verification attempt is a communication attempt with the end user that contains a verification code and uses one of the channels supported by Twilio Verify. A single verification may generate one or more verification attempts.
This API contains one endpoint:
You can list, filter, and fetch verification attempts using the Verification Attempts API.
Verification Attempts Summary API currently supports only the SMS, Call & WhatsApp channel.
Verification Attempts Summary API provides a built-in rate limit of 100 requests per minute. If you reach this limit, you will start receiving HTTP 429 "Too Many Requests" responses.
Verification Attempts Summary API has a timeout value of 15 seconds. However, its 99th percentile is within 1 second.
These properties are returned in the JSON response output.
Total of attempts made according to the provided filters
0
Total of attempts made that were confirmed by the end user, according to the provided filters.
0
Total of attempts made that were not confirmed by the end user, according to the provided filters.
0
Percentage of the confirmed messages over the total, defined by (total_converted/total_attempts)*100.
GET https://verify.twilio.com/v2/Attempts/Summary
Returns a summary of verification attempts that match the selected query parameters.
Filter used to consider only Verification Attempts of the given verify service on the summary aggregation.
^VA[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
Filter used to consider only Verification Attempts sent to the specified destination country on the summary aggregation.
Filter Verification Attempts considered on the summary aggregation by communication channel. Valid values are SMS
, CALL
and WHATSAPP
sms
call
email
whatsapp
Filter the Verification Attempts considered on the summary aggregation by Destination prefix. It is the prefix of a phone number in E.164 format.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchVerificationAttemptsSummary() {11const verificationAttemptsSummary = await client.verify.v212.verificationAttemptsSummary()13.fetch();1415console.log(verificationAttemptsSummary.totalAttempts);16}1718fetchVerificationAttemptsSummary();
1{2"total_attempts": 11,3"total_converted": 9,4"total_unconverted": 2,5"conversion_rate_percentage": "81.818181818",6"url": "https://verify.twilio.com/v2/Attempts/Summary"7}
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchVerificationAttemptsSummary() {11const verificationAttemptsSummary = await client.verify.v212.verificationAttemptsSummary()13.fetch({ verifyServiceSid: "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" });1415console.log(verificationAttemptsSummary.totalAttempts);16}1718fetchVerificationAttemptsSummary();
1{2"total_attempts": 11,3"total_converted": 9,4"total_unconverted": 2,5"conversion_rate_percentage": "81.818181818",6"url": "https://verify.twilio.com/v2/Attempts/Summary"7}
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchVerificationAttemptsSummary() {11const verificationAttemptsSummary = await client.verify.v212.verificationAttemptsSummary()13.fetch({ country: "CO" });1415console.log(verificationAttemptsSummary.totalAttempts);16}1718fetchVerificationAttemptsSummary();
1{2"total_attempts": 11,3"total_converted": 9,4"total_unconverted": 2,5"conversion_rate_percentage": "81.818181818",6"url": "https://verify.twilio.com/v2/Attempts/Summary"7}