Skip to content

Twilio - Media API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

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

At a glance

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

Make a first request

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

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

Endpoints

MethodPathWhat it does
GET/v1/MediaProcessorsReturns a list of MediaProcessors.
POST/v1/MediaProcessorsCreateMediaProcessor
GET/v1/MediaProcessors/{Sid}Returns a single MediaProcessor resource identified by a SID.
POST/v1/MediaProcessors/{Sid}Updates a MediaProcessor resource identified by a SID.
GET/v1/MediaRecordingsReturns a list of MediaRecordings.
GET/v1/MediaRecordings/{Sid}Returns a single MediaRecording resource identified by a SID.
DELETE/v1/MediaRecordings/{Sid}Deletes a MediaRecording resource identified by a SID.
GET/v1/PlayerStreamersReturns a list of PlayerStreamers.
POST/v1/PlayerStreamersCreatePlayerStreamer
GET/v1/PlayerStreamers/{Sid}Returns a single PlayerStreamer resource identified by a SID.
POST/v1/PlayerStreamers/{Sid}Updates a PlayerStreamer resource identified by a SID.
GET/v1/PlayerStreamers/{Sid}/PlaybackGrant**This method is not enabled.** Returns a single PlaybackGrant resource identified by a SID.
POST/v1/PlayerStreamers/{Sid}/PlaybackGrantCreatePlayerStreamerPlaybackGrant

Questions

Does the Twilio - Media API need an API key?

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

Does the Twilio - Media API support HTTPS?

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

How many endpoints does the Twilio - Media API have?

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

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