Our API: the basics
Twilio REST APIを使用してアカウント、電話番号、通話、テキストメッセージ、およびレコーディングについてのメタデータを照会できます。 さらに通話の発信を開始したり、テキストメッセージを送信したりといった素敵なことを行うことも可能です。
ベースURL
このドキュメントで参照されるベースURLは次の通りです。
https://api.twilio.com/2010-04-01
TwilioのREST APIはHTTPS経由で提供されます。 データのプライバシーを確保するため、暗号化されていないHTTPはサポートされません。
認証
HTTP requests to the REST API are protected with HTTP Basic authentication. To learn more about how Twilio handles authentication, please refer to our security documentation. In short, you will use your Twilio Account SID as the username and your Auth Token as the password for HTTP Basic authentication.
curl -G https://api.twilio.com/2010-04-01/Accounts \
-u <YOUR_ACCOUNT_SID>:<YOUR_AUTH_TOKEN>
You can find your Account SID and Auth Token on your dashboard.
サブリソース
Twilioアカウントには下記のサブリソースがあります。 リンクをクリックして、各リソースへのアクセスや変更についてのAPIドキュメントをお読みください。
電話番号
Usage
アカウント
アプリケーション
Make calls with Twilio
Twilio’s Voice API makes it easy to make, retrieve, control and monitor calls. Using this REST API, you can make outgoing calls, modify calls in progress, and query metadata about calls. See the Voice API Documentation for guides, REST resources, and troubleshooting tips.
SIPで接続する
Programmable Voice SIP lets you route your voice calls with global reach to any landline phone, mobile phone, browser, mobile app, or any other SIP endpoint. Check out Twilio’s SIP Resources for Voice including SIP Domains, IP Access Control Lists, and Credential Lists.
Send messages with Twilio
TwilioのMessaging APIを使用すると、SMSとMMSの送受信、配信ステータス、関連づけられたメディア、そしてCopilotのようなメッセージをグローバル規模に拡大するための役立つツールといった、テキストメッセージのメタデータの照会が簡単になります。 ガイド、RESTリソース、およびデバッグの秘訣については、Messaging APIドキュメントを参照してください。
ヘルプが必要ですか?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.