T

twilio.com

20 integrations · REST · CLI

Twilio exposes many authenticated HTTP APIs plus the `twilio` CLI, with API access primarily via HTTP Basic using an API Key SID + Secret or Account SID + Auth Token, and some surfaces also supporting OAuth 2.0 bearer tokens from Twilio OAuth Apps, while the CLI authenticates through `twilio login`.

discovered 1d ago
REST · OpenAPI19
CLI1
Credentials
Twilio API Key SID and SecretbasicGet credentials

In the Twilio API keys overview, Twilio says API keys are the preferred way to authenticate with Twilio REST APIs. Create a key in the Twilio Console via Create API Keys in the Console. Use the API Key SID as the HTTP Basic username and the API Key Secret as the HTTP Basic password.

Twilio Account SID and Auth TokenbasicGet credentials

For local testing, Twilio documents that you can use your Account SID and Auth Token as API credentials. Get them from your Twilio account in Console and manage them from REST API: Auth Token. Use the Account SID as the HTTP Basic username and the Auth Token as the HTTP Basic password. Twilio recommends API keys instead for production.

Twilio OAuth App client credentialsoauth2_ccSet up OAuth

Create an OAuth app in the Twilio Console using OAuth apps. Twilio generates a Client ID and Client Secret. Use them with the OAuth client credentials grant at Twilio's token endpoint to obtain a short-lived access token, then send that bearer token to supported Twilio APIs. Twilio notes these tokens currently expire after 1 hour and are scope-limited.

Twilio CLI logged-in profilecompound$ twilio login

Acquired by the CLI — running twilio login opens the auth flow and stores the credential.

conventions · 1/8 published

Publish these signals → /publishing