Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Debugging Events Webhook (Beta)

Note: this feature of the Debugger is in Beta. The webhook API documented here may be subject to change.

When an error or warning takes places on your Twilio account, this event is published into Twilio's Debugging System. This is the system that powers the Monitor Alerts API, Alert Triggers and the Console Debugger.

The Console Debugger allows developers to configure an optional webhook to receive data about errors and warnings as they happen. This makes it easy for developers to react to problems with their application in a timely manner.

If the Console Debugger webhook is configured, Twilio will make an HTTP POST request debugging events as they occur. Please note that the webhook has a 100-character limit. Below is an overview of the parameters passed.

Twilio can send your web application an HTTP request when certain events happen, such as an incoming text message to one of your Twilio phone numbers. These requests are called webhooks, or status callbacks. For more, check out our guide to Getting Started with Twilio Webhooks. Find other webhook pages, such as a security guide and an FAQ in the Webhooks section of the docs.

Debugging Event Callback Parameters

プロパティ 概要
Sid The ID of this Debugging Event.
AccountSid The ID of the Account for which this Debugging Event was recorded.
timestamp The datetime this Debugging Event happened, given in ISO 8601 format
Level DEBUG, INFO, WARNING, ERROR
PayloadType application/json
ペイロード JSON data specific to the Debugging Event.

ペイロード

The payload is a JSON object that provides more information about the Debugging Event in question.

プロパティ 概要
resource_sid The ID of this Twilio Platform Resource that this error is associated with
service_sid The ID of the Twilio Platform Service that this error is associated with
error_code The unique error code for this debugging event
more_info A subdocument containing more information about this debugging event
Webhook A subdocument containing Information about the request and response of the webhook associated with this debugging event.

more_info

The more_info property of the payload is optional and contains additional information specific to the Twilio product/feature that published this debugging event.

Webhook

The webhook property of the payload is optional. It is only present if a webhook request was associated with the debugging event.

{
'request': {
  'method': 'POST',
  'url': 'http://twimlets.com/forward?PhoneNumber=800-421-9004' 
  'headers': {
    'key': 'value' 
  },
  'parameters': {
    'key', 'value' 
  }
  },
  response: {
    'status_code': 200
    'headers': {
      'key': 'value'
    },
    'body': '<Response><Dial>800-421-9004</Dial></Response>'
  }
}
Rate this page:

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。