Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Sam Agnew
    How to set up domain authentication for Twilio SendGrid Copy of C02 Blog Text (2).png

    When working with Twilio SendGrid APIs such as Inbound Parse, one of the first steps after creating a free account is to set up domain authentication. This can be a tedious process, but once you are finished you will be able to write code to receive emails.

    Let's walk through how to authenticate your domain with Twilio SendGrid step-by-step so you can get on to important things like writing code.

    Tutorial Requirements

    To follow this tutorial you will need to have the following items:

    • A Twilio SendGrid account — If you are new to Twilio SendGrid you can create a free account, which allows you to send 100 emails per day forever.
    • A domain on which you will receive emails. For the purposes of this article, I’m going to use yourdomainhere.com. You will need to replace it with your own domain name.

    With that taken care of, …

    Read More
  • By Matthew Setter
    Authenticate Uploads to Amazon S3 in SlimPHP Using Twilio Verify Authenticate Uploads to S3 in SlimPHP Using Twilio Verify

    It's hard to get away from cloud storage in modern web application development; and with good reason!

    Infrastructure as a Service (IaaS) providers such as Amazon Web Services, Microsoft Azure, Google Cloud Platform, and Alibaba Cloud make storing data anywhere in the world almost trivial, regardless of programming language, operating system, and budget.

    Whether you're storing instrumentation data from a Raspberry Pi-based weather station, or medical records for a nation-state, cloud providers are up to the task. However, they don't do everything for you. They won’t handle tasks such as only letting valid users store legitimate files.

    So in this tutorial, you're going to learn how to use Twilio's Verify API to validate uploads to an Amazon S3 bucket in a Slim framework application which uses the Twig templating engine for the view templates.

    Tutorial Requirements

    To follow this tutorial you need the following components:

    • PHP 7.4, …
    Read More
  • By Diane Phan
    How to Integrate Ngrok in a Twilio Java Application header - How to Integrate Ngrok in a Twilio Java Application

    When you are developing an application that uses Twilio services you need to expose your webhooks on public URLs that can be reached by Twilio. If you have followed some of the tutorials that we published on this blog you know that we recommend using the excellent ngrok tool to generate temporary public URLs for your development web server. Ngrok is an incredibly useful tool that creates a tunnel from a URL on the ngrok.io domain to your application running on your computer. You can then configure your webhook using the ngrok URL and when Twilio sends a request to it, ngrok redirects it to your application.

    If you use ngrok frequently enough, it pays off to become a paid customer, which allows you to secure a permanent URL.

    In this article I’m going to show you how to fully automate ngrok by incorporating it into your Java application. …

    Read More
  • By Mia Adjei
    Build an Audio Livestream App with Twilio Live Build an Audio Livestream App with Twilio Live

    The amount of online audio content and livestreams is increasing every day. More and more, people are tuning into audio for news, music, fitness, study, and entertainment. So if you have been thinking about creating something in the audio space, maybe you have considered building your own live audio application.

    Perhaps you've already explored Twilio Live to livestream your video feed or create a live screen share. But did you know you can use Twilio Live to create an audio-only experience as well?

    In this tutorial, you will learn how to build an audio livestream application with Twilio Live and React, and then deploy it using Twilio Functions and the Twilio Serverless Toolkit. This will allow you to start sharing your live audio with your friends and community right away. In this project, you'll also use the Twilio Paste design system to quickly build and style your …

    Read More
  • By Miguel Grinberg
    Add a Realtime Viewer Count to your Twilio Live Stream Add a Realtime Viewer Count to your Twilio Live Stream

    An important aspect of running a Twilio Live streaming experience is to track your viewership. But how do you do that? There are many different ways to do it, and the best method to use will depend on your needs and your technology stack.

    Are you ready to learn how to count your livestream viewers? In this article I’ll show you a few possible implementations with varying levels of complexity and flexibility.


    This article does not have any requirements beyond having some familiarity with the Twilio Live product. If you haven’t worked with Twilio Live before, I recommend that you follow an introductory tutorial first. My colleague Mia Adjei wrote a Twilio Live tutorial using Express.js, and I have also written one using the Twilio serverless platform, both of which show you how to build a complete livestreaming project step by step.

    To apply what you learn …

    Read More
  • By Ana Cristina Andres Del Valle
    Supercharge your contact centre experience with Flex and Veridas Voice Biometrics Supercharge your contact centre experience with Flex and Veridas Voice Biometrics

    Wouldn't it be great to verify the identity of the person who is at the other side of a phone call just using their voice? Agents in contact centres spend precious time asking security questions to verify customers’ identities. This process is not friendly and often relies on information that can be phished – stolen by untrustworthy third parties. Furthermore, from the customer's point of view, it is also an arduous and bewildering process. Either they have to spend an average of 30 seconds answering personal questions, or they are forced to memorize passwords that are often forgotten. In the end, these processes do not actually verify an identity but simply check that a person has access to certain information.

    Voice biometrics can help contact centres create friendly and natural ways to verify who is speaking on the phone. Veridas Voice Biometric Authentication solution services facilitate the registration of a …

    Read More
  • By Cuong Tram
    Pitfalls to Avoid When Selecting IoT Data Plans IoT Data Plans - Twilio IoT

    If you’re in the IoT world, you know that machine-to-machine cellular data usage is skyrocketing. The average monthly data usage has nearly doubled in just the last three years. Given that dramatic increase in data usage, it’s also no surprise that one of the most common questions we get here at Twilio is how to most cost effectively manage data plans.

    In fact, a recent survey from IDC revealed that when customers looked at data plans, their two top concerns were data costs and pricing models. In fact, managing cost has emerged as a top concern for organizations regardless of use case, deployment location and device fleet size.

    Those same customers outlined the primary sources of their data costs:

    • 65% of organizations are paying for overages and unused data
    • More than 50% of the organizations manage multiple mobile carriers
    • For organizations with multiple domestic mobile operators, their top challenge is …
    Read More
  • By Kelley Robinson
    How to build TOTP support with the Verify API and Google Authenticator Build TOTP support with the Verify API and Google Authenticator

    While One-Time Passcodes (OTPs) delivered via SMS or email have a place, authenticator apps like Authy and Google Authenticator provide stronger authentication with time based one time passcodes (TOTP). Not only do TOTPs work offline, but they're based on a standardized algorithm so can be used without PII and with a variety of authenticator apps.

    Learn more about what TOTP is and its benefits in our glossary.

    Example TOTPs in the Google Authenticator app

    The Twilio Verify API makes it easy to initiate and verify TOTPs, now available in public beta. Let's see how to get started with Verify TOTP in under 5 minutes.

    Prerequisites for sending One-Time Passcodes

    Before you can send an OTP you'll need:

    Read More
  • By Catie Kolander
    Introducing Verify TOTP: Secure, Low-cost Verification - Now in Beta Verify TOTP Launch Hero

    We're excited to announce that we have expanded the Verify API solution to include Time-based One-time Passcodes (TOTP) – now in Public Beta. This end-to-end API service allows companies to add a secure and cost-effective second factor into their application flows. TOTP is also known as app based authentication, software tokens, or soft tokens.

    Verify TOTP

    Soft tokens work by having a user store a secret key in an authenticator app, which is then used to generate expiring codes that use the secret key and current system time as inputs.

    Example Verify TOTP Soft Token

    TOTP is a common form of two-factor authentication (2FA). The time-based passcodes are available offline and provide user friendly account security when used as a second factor. This means that Verify TOTP does not rely on cellular data or WiFi for code delivery, and end-users can verify anywhere, anytime.

    Verify TOTP allows user verification via third-party authentication applications, eliminating telecom …

    Read More
  • By Lizzie Siegle
    Detect Objects in a Serverless Twilio Video App with TensorFlow.js header-tf-obj-det

    Object detection is a computer vision technique for locating instances of objects in media such as images or videos. This machine learning (ML) method can be applied to many areas of computer vision, like image retrieval, security, surveillance, automated vehicle systems and machine inspection. Read on to learn how to detect objects in a Twilio Programmable Video application using TensorFlow.js.

    object detection gif


    To build a Twilio Programmable Video application, we will need:

    Download this GitHub repo and then create a file named .env in the top-level directory with the following contents, replacing the XXXXX placeholders with the values that apply …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.