Skip to content

Twilio - Verify API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

Twilio - Verify is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 53 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Phone
Base URL
https://verify.twilio.com
Version
1.42.0
Endpoints
53
Spec updated
2023-04-20

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://verify.twilio.com/v2/Attempts" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://verify.twilio.com/v2/Attempts", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://verify.twilio.com/v2/Attempts",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/v2/AttemptsList all the verification attempts for a given Account.
GET/v2/Attempts/SummaryGet a summary of how many attempts were made and how many were converted.
GET/v2/Attempts/{Sid}Fetch a specific verification attempt.
GET/v2/Forms/{FormType}Fetch the forms for a specific Form Type.
POST/v2/SafeList/NumbersAdd a new phone number to SafeList.
GET/v2/SafeList/Numbers/{PhoneNumber}Check if a phone number exists in SafeList.
DELETE/v2/SafeList/Numbers/{PhoneNumber}Remove a phone number from SafeList.
GET/v2/ServicesRetrieve a list of all Verification Services for an account.
POST/v2/ServicesCreate a new Verification Service.
POST/v2/Services/{ServiceSid}/AccessTokensCreate a new enrollment Access Token for the Entity
GET/v2/Services/{ServiceSid}/AccessTokens/{Sid}Fetch an Access Token for the Entity
GET/v2/Services/{ServiceSid}/EntitiesRetrieve a list of all Entities for a Service.
POST/v2/Services/{ServiceSid}/EntitiesCreate a new Entity for the Service
GET/v2/Services/{ServiceSid}/Entities/{Identity}Fetch a specific Entity.
DELETE/v2/Services/{ServiceSid}/Entities/{Identity}Delete a specific Entity.
GET/v2/Services/{ServiceSid}/Entities/{Identity}/ChallengesRetrieve a list of all Challenges for a Factor.
POST/v2/Services/{ServiceSid}/Entities/{Identity}/ChallengesCreate a new Challenge for the Factor
POST/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/NotificationsCreate a new Notification for the corresponding Challenge
GET/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}Fetch a specific Challenge.
POST/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}Verify a specific Challenge.
GET/v2/Services/{ServiceSid}/Entities/{Identity}/FactorsRetrieve a list of all Factors for an Entity.
POST/v2/Services/{ServiceSid}/Entities/{Identity}/FactorsCreate a new Factor for the Entity
GET/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}Fetch a specific Factor.
POST/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param.
DELETE/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}Delete a specific Factor.
GET/v2/Services/{ServiceSid}/MessagingConfigurationsRetrieve a list of all Messaging Configurations for a Service.
POST/v2/Services/{ServiceSid}/MessagingConfigurationsCreate a new MessagingConfiguration for a service.
GET/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}Fetch a specific MessagingConfiguration.
POST/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}Update a specific MessagingConfiguration
DELETE/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}Delete a specific MessagingConfiguration.
GET/v2/Services/{ServiceSid}/RateLimitsRetrieve a list of all Rate Limits for a service.
POST/v2/Services/{ServiceSid}/RateLimitsCreate a new Rate Limit for a Service
GET/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/BucketsRetrieve a list of all Buckets for a Rate Limit.
POST/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/BucketsCreate a new Bucket for a Rate Limit
GET/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}Fetch a specific Bucket.
POST/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}Update a specific Bucket.
DELETE/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}Delete a specific Bucket.
GET/v2/Services/{ServiceSid}/RateLimits/{Sid}Fetch a specific Rate Limit.
POST/v2/Services/{ServiceSid}/RateLimits/{Sid}Update a specific Rate Limit.
DELETE/v2/Services/{ServiceSid}/RateLimits/{Sid}Delete a specific Rate Limit.
POST/v2/Services/{ServiceSid}/VerificationCheckchallenge a specific Verification Check.
POST/v2/Services/{ServiceSid}/VerificationsCreate a new Verification using a Service
GET/v2/Services/{ServiceSid}/Verifications/{Sid}Fetch a specific Verification
POST/v2/Services/{ServiceSid}/Verifications/{Sid}Update a Verification status
GET/v2/Services/{ServiceSid}/WebhooksRetrieve a list of all Webhooks for a Service.
POST/v2/Services/{ServiceSid}/WebhooksCreate a new Webhook for the Service
GET/v2/Services/{ServiceSid}/Webhooks/{Sid}Fetch a specific Webhook.
POST/v2/Services/{ServiceSid}/Webhooks/{Sid}UpdateWebhook
DELETE/v2/Services/{ServiceSid}/Webhooks/{Sid}Delete a specific Webhook.
GET/v2/Services/{Sid}Fetch specific Verification Service Instance.
POST/v2/Services/{Sid}Update a specific Verification Service.
DELETE/v2/Services/{Sid}Delete a specific Verification Service Instance.
GET/v2/TemplatesList all the available templates for a given Account.

Questions

Does the Twilio - Verify API need an API key?

Yes. The Twilio - Verify API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the Twilio - Verify API support HTTPS?

Yes, the Twilio - Verify API is served over HTTPS.

How many endpoints does the Twilio - Verify API have?

Its OpenAPI description lists 53 endpoints in version 1.42.0. All of them are shown on this page.

What are alternatives to the Twilio - Verify API?

Other Phone APIs include Twilio - Accounts, ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, Twilio - Api, Mobility API, Telnyx API.

Compare alternatives →

Listed from APIs.guru (CC0).