Skip to content

Twilio - Oauth API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

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

At a glance

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

Make a first request

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

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

Endpoints

MethodPathWhat it does
GET/v1/.well-known/openid-configurationFetch configuration details about the OpenID Connect Authorization Server
GET/v1/certsFetches public JWKs
POST/v1/device/codeIssues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant
POST/v1/tokenIssues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant
GET/v1/userinfoRetrieves the consented UserInfo and other claims about the logged-in subject (end-user).

Questions

Does the Twilio - Oauth API need an API key?

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

Does the Twilio - Oauth API support HTTPS?

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

How many endpoints does the Twilio - Oauth API have?

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

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