30127: MessagingServiceSID is invalid.
MESSAGING
ERROR
MessagingServiceSID is invalid when the value you provide does not match a valid Messaging Service SID. Messaging Service SIDs are 34-character identifiers that start with MG.
- You passed a
MessagingServiceSIDvalue that does not use theMGprefix or does not contain 32 hexadecimal characters after the prefix. - The SID does not identify a Messaging Service resource.
- You copied the SID from the wrong account or from an unrelated resource. This is an inference based on how Twilio uses SIDs to identify specific resources.
- Replace the value with a valid Messaging Service SID from the Services resource or Console. Use a SID that matches
^MG[0-9a-fA-F]{32}$. - If you are creating a message, send the SID in the
MessagingServiceSidparameter. Twilio lets you send a message withMessagingServiceSidinstead ofFrom. - Make sure the Messaging Service exists and belongs to the account making the request. Twilio identifies Messaging Service resources with SIDs, and the Messages resource requires the sender to belong to the creating account.