Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Troubleshooting


This guide shows you how to troubleshoot common Twilio Communications API issues. It explains where error information appears, how to interpret it, and what to do next.


Where to find errors

where-to-find-errors page anchor

Errors can appear in three main places:

  • API responses
  • Twilio Console
  • Event logs

If a request fails, the API returns a 4xx or 5xx error in the response body.

  • 400 errors indicate that your request is invalid. The response includes a message that explains the problem.
  • 500 errors indicate an internal Twilio error.

If you need help with a 400 or 500 error, contact comms-api@twilio.com.

For a complete list of error codes and descriptions, see the API errors documentation.


Use the Console Debugger(link takes you to an external page) to find errors related to message delivery, opt-outs, and other post-request issues.


Twilio Event Streams deliver real-time events to webhooks and other destinations, such as AWS Kinesis and Segment. You can subscribe to the event types you need. If an event fails to deliver, Twilio queues the event and retries when the destination becomes available.

Twilio Communications API event types

twilio-communications-api-event-types page anchor

You can subscribe to these Communications API-specific event types:

Operations

  • com.twilio.comms-api.operation.processing
  • com.twilio.comms-api.operation.completed

Messages

  • com.twilio.comms-api.message.queued
  • com.twilio.comms-api.message.sent
  • com.twilio.comms-api.message.failed
  • com.twilio.comms-api.message.delivered
  • com.twilio.comms-api.message.undelivered
  • com.twilio.comms-api.message.read

You can also use events from downstream services, such as Programmable Messaging. These events include SM/MM SIDs for individual message deliveries.

See the outbound Messaging delivery status events for more details:

  • com.twilio.messaging.message.delivered
  • com.twilio.messaging.message.failed
  • com.twilio.messaging.message.queued
  • com.twilio.messaging.message.read
  • com.twilio.messaging.message.sent
  • com.twilio.messaging.message.undelivered

For error logging, subscribe to the error-logs event type:

  • com.twilio.error-logs.error.logged