30124: MessagingServiceSID cannot be empty or null
MESSAGING
ERROR
This error occurs when a message create request does not include a usable messagingServiceSid value. When you send a message with a Messaging Service, Twilio uses that SID to select a sender from the service's Sender Pool.
- The request omitted the
messagingServiceSidfield. - The request included
messagingServiceSid, but the value was empty, null, or not a valid Messaging Service SID. Twilio expects an SID that matches theMGpattern.
- Pass a valid
messagingServiceSidvalue that matches the Messaging Service SID format (MGfollowed by 32 hexadecimal characters). - If you are not using a Messaging Service, provide a valid
fromsender instead. Thefromparameter is required whenMessagingServiceSidis not passed. - If you are using a Messaging Service, omit
fromor set it to a sender from that service's Sender Pool.