For an existing Service, you can enable
Custom Verification Code
in the Twilio Console by navigating to
Verify > Services
and selecting your Service. This will open the
Service settings
page where you can select the
General tab
and select the
Enable Custom Verification Code
option for that Service. Once it is enabled on your Service, you can follow the
steps
listed below to submit custom verification codes.
If you already have token generation and validation logic and would like to keep those systems in place, you can do so. We have a feature where you can submit your code to us and utilize our pre-screened message templates and localizations for both text and voice.
Please ensure that you have selected Enable Custom Verification Code option on the Twilio Console on your Verify service before submitting custom verification codes.
If you're using custom verification codes you must also provide feedback that lets us know whether or not the user verified the code. This allows us to proactively monitor our global routing and stay operational.
Start a Verification with Custom Code
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl
_22
// Download the helper library from https://www.twilio.com/docs/node/install
_22
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_22
_22
// Find your Account SID and Auth Token at twilio.com/console
_22
// and set the environment variables. See http://twil.io/secure
By default, the company name that the end user sees in a verification message is set at the service level. You can programmatically override this by setting the custom_friendly_name parameter when creating verifications. Custom company names may be useful for Independent Software Vendors (ISVs) who own one Verify Service and need to customize the company name for each verification message.
There is a limit of 30 characters.
Start a Verification with Custom Company Name
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl
_22
// Download the helper library from https://www.twilio.com/docs/node/install
_22
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_22
_22
// Find your Account SID and Auth Token at twilio.com/console
_22
// and set the environment variables. See http://twil.io/secure