Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

90001: Message SID is invalid

Twilio Messaging DocumentationMessaging

Description

description page anchor

This error occurs when you send a Message SID that does not match the expected format for a Message resource. Use a Twilio-generated Message SID with the SM or MM prefix followed by 32 hexadecimal characters.

Possible causes

possible-causes page anchor
  • The SID does not start with SM or MM.
  • The SID is not 34 characters long.
  • The SID contains characters outside the hexadecimal range 0-9 and a-f.
  • You passed a SID for a different resource, such as an Account SID or Messaging Service SID, instead of a Message SID.
  • Copy the Message SID from the original message create response, a message fetch response, or the Messaging logs.
  • Validate the SID format before you send the request. A valid Message SID matches ^(SM|MM)[0-9a-fA-F]{32}$.
  • Make sure you send the MessageSid parameter with a Message SID value, not another Twilio resource SID such as AC... or MG....
  • If you need to inspect an existing message, fetch it from the Messages resource by using the correct Message SID.

Additional resources

additional-resources page anchor