Skip to content

Twilio - Events API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

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

At a glance

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

Make a first request

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

cURL
curl -X GET "https://events.twilio.com/v1/Sinks" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://events.twilio.com/v1/Sinks", {
  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://events.twilio.com/v1/Sinks",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/v1/Schemas/{Id}Fetch a specific schema with its nested versions.
GET/v1/Schemas/{Id}/VersionsRetrieve a paginated list of versions of the schema.
GET/v1/Schemas/{Id}/Versions/{SchemaVersion}Fetch a specific schema and version.
GET/v1/SinksRetrieve a paginated list of Sinks belonging to the account used to make the request.
POST/v1/SinksCreate a new Sink
GET/v1/Sinks/{Sid}Fetch a specific Sink.
POST/v1/Sinks/{Sid}Update a specific Sink
DELETE/v1/Sinks/{Sid}Delete a specific Sink.
POST/v1/Sinks/{Sid}/TestCreate a new Sink Test Event for the given Sink.
POST/v1/Sinks/{Sid}/ValidateValidate that a test event for a Sink was received.
GET/v1/SubscriptionsRetrieve a paginated list of Subscriptions belonging to the account used to make the request.
POST/v1/SubscriptionsCreate a new Subscription.
GET/v1/Subscriptions/{Sid}Fetch a specific Subscription.
POST/v1/Subscriptions/{Sid}Update a Subscription.
DELETE/v1/Subscriptions/{Sid}Delete a specific Subscription.
GET/v1/Subscriptions/{SubscriptionSid}/SubscribedEventsRetrieve a list of all Subscribed Event types for a Subscription.
POST/v1/Subscriptions/{SubscriptionSid}/SubscribedEventsCreate a new Subscribed Event type for the subscription
GET/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}Read an Event for a Subscription.
POST/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}Update an Event for a Subscription.
DELETE/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}Remove an event type from a subscription.
GET/v1/TypesRetrieve a paginated list of all the available Event Types.
GET/v1/Types/{Type}Fetch a specific Event Type.

Questions

Does the Twilio - Events API need an API key?

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

Does the Twilio - Events API support HTTPS?

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

How many endpoints does the Twilio - Events API have?

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

What are alternatives to the Twilio - Events 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).