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

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. 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

Property Description
Sid Unique identifier of this Debugger event.
AccountSid Unique identifier of the account that generated the Debugger event.
ParentAccountSid Unique identifier of the Parent Account. This parameter only exists if the above account is a subaccount.
Timestamp Time of occurrence of the Debugger event.
Level Severity of the Debugger event. Possible values are Error and Warning.
PayloadType application/json
Payload JSON data specific to the Debugging Event.


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

Property Description
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.


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


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': '' 
  'headers': {
    'key': 'value' 
  'parameters': {
    'key', 'value' 
  response: {
    'status_code': 200
    'headers': {
      'key': 'value'
    'body': '<Response><Dial>800-421-9004</Dial></Response>'
Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.