Switchmast

Twilio error 30005: unknown destination handset

Updated

Short answer

30005 (Unknown destination handset) means the recipient's carrier told Twilio the number is unknown and may no longer exist. Usually it's disconnected or mistyped; sometimes the phone is off, out of signal or a landline. Check the E.164 format, send one test, and if it keeps failing, remove the number from your list.

What Twilio says it means

Twilio's error reference names 30005 Unknown destination handset, log type CARRIER, level ERROR. It's a delivery error: Twilio accepted your message and handed it on, then a carrier partner reported the destination as unknown. Twilio passes that status back to you, so the Message ends with status undelivered or failed and error_code 30005.

Common causes, most likely first

  1. The number no longer exists: disconnected, cancelled or never issued. Old lists collect these over time.
  2. A typo or the wrong country code, which produces a valid-looking number that nobody has.
  3. The phone is off or has poor signal.
  4. The number can't receive SMS, for example a landline.
  5. A problem at the mobile carrier that blocks delivery for a while.

How to check and fix it

  1. Find the failures. In the Console, Monitor › Logs › Messaging lists messages; search by To number and click the date for Message Details. Through the API, fetch the Message and read status and error_code, or watch MessageStatus and ErrorCode in your status callback.
  2. Check the format. E.164 with the right country code and the full subscriber number.
  3. Send one more test through the REST API to see whether the error persists.
  4. Ask the recipient, if you can reach them another way: is the phone on, with signal, on its home network rather than roaming? Do texts from other senders arrive?
  5. Try a different Twilio number or a shorter, one-segment message to rule out the sender or the content.
  6. Check the line type with Lookup line type intelligence: a landline won't take texts.
  7. Still failing for numbers you trust? Collect at least three recent Message SIDs with 30005 and contact Twilio Support.

How to prevent it

CodeMeaning
30003Unreachable destination handset: usually off, out of signal or roaming
30006Landline or unreachable carrier
30008Unknown error: a generic carrier failure
30007Message filtered as spam by Twilio or the carrier
21211Invalid 'To' number, rejected before sending

How Switchmast helps

Switchmast's message log on iPhone with a Failed filter
Switchmast's message log, on sample data.

In Switchmast's message log, the Failed filter and error-code search pull out every 30005 in what's loaded, each explained in plain English. Export them as CSV from the same screen to clean your list. Other codes are on the Twilio error codes hub.

Questions

What does Twilio error 30005 mean?

Unknown destination handset: the carrier reported that the destination number is unknown and may no longer exist. Twilio receives this status from its carrier partners and passes it on to you.

Should I retry a 30005?

Send one more test message to see whether it persists, after checking the number is in E.164 with the right country code. If it keeps failing, treat the number as dead and remove it from your list.

What's the difference between 30003 and 30005?

30003 (Unreachable destination handset) usually means the phone couldn't be reached right now, for example it was off or out of signal. 30005 means the carrier doesn't know the number, which often means it's disconnected. Twilio lists a powered-off phone as a possible cause of both, so one failure isn't conclusive.

When should I contact Twilio Support about 30005?

If the error persists for numbers you believe are valid, collect at least three recent Message SIDs that failed with 30005 and open a ticket.

Sources