Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Messagebird API - not recieving SMS texts

I'm following the Messagebird docs on sending an SMS through the messagebird API. When I run my app and go to the link in postman, I get no errors and "SUCCESS" is console.logged as well as the reponse. However I never recieve a text. When I go to the SMS logs on the messagebird dashboard there's nothing there except for the test SMS I sent rhough the messagebird dashboard

I've replaced my number for privacy purposes but there was no issue regarding the number being invalid

router.get("/testSMS", (req,res) => {
    messagebird.messages.create({
        originator : 'Movie App',
        recipients : [ '123456778' ],
        body : 'Hello World, I am a text message and I was hatched by Javascript code!'
     }, function (err, response) {
        if (err) {
           console.log("ERROR:");
           console.log(err);
       } else {
           console.log("SUCCESS:");
           console.log(response);
       }
    });
})

Here's my console enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This example works for me. If you add your number as a query param does this work for you?

router.get("/test/:phone", (req, res) => {
  const { phone } = req.params;

  // Ensure the phone nubmer follows the E.164 format (https://www.twilio.com/docs/glossary/what-e164)
  if (!/^\+[1-9]{1}[0-9]{3,14}$/.test(phone)) {
    return res.status(400).send("Invalid phone number");
  }

  // Sends a test SMS to the number specified in the request
  messagebird.messages.create(
    {
      originator: "MessageBird",
      recipients: [phone],
      body: "This is a test message from MessageBird",
    },
    (err, response) => {
      if (err) {
        return res.send(err);
      }
      return res.send(response);
    }
  );
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!