<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amna Abbas</title>
    <description>The latest articles on DEV Community by Amna Abbas (@amna_abbas_ed7e1b47cfcbfc).</description>
    <link>https://dev.to/amna_abbas_ed7e1b47cfcbfc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2743153%2Fc1ea4425-ed15-4d04-a152-9ce7503aeb9d.jpg</url>
      <title>DEV Community: Amna Abbas</title>
      <link>https://dev.to/amna_abbas_ed7e1b47cfcbfc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amna_abbas_ed7e1b47cfcbfc"/>
    <language>en</language>
    <item>
      <title>Twilio API on Zapier (Error: Invalid Phone Number)</title>
      <dc:creator>Amna Abbas</dc:creator>
      <pubDate>Tue, 21 Jan 2025 16:44:23 +0000</pubDate>
      <link>https://dev.to/amna_abbas_ed7e1b47cfcbfc/twilio-api-on-zapier-error-invalid-phone-number-1mkh</link>
      <guid>https://dev.to/amna_abbas_ed7e1b47cfcbfc/twilio-api-on-zapier-error-invalid-phone-number-1mkh</guid>
      <description>&lt;p&gt;I’ve been working with the Twilio API on Zapier to send WhatsApp messages and have hit a persistent issue. Despite extensive troubleshooting, I’m still getting the following error:&lt;/p&gt;

&lt;p&gt;Data Message:&lt;/p&gt;

&lt;p&gt;The 'To' number whatsapp: 923002459677 is not a valid phone number.&lt;/p&gt;

&lt;p&gt;What I’ve tried:&lt;br&gt;
Verified that the phone number is in the correct format: +countrycodephonenumber&lt;/p&gt;

&lt;p&gt;Ensured the receiver is opted in to receive messages via WhatsApp.&lt;/p&gt;

&lt;p&gt;Confirmed that the phone number works perfectly when using the same API on Postman (messages are successfully sent).&lt;/p&gt;

&lt;p&gt;Tested this on the live environment and double-checked all API details, including Account SID, Auth Token, and the request body.&lt;/p&gt;

&lt;p&gt;Verified the Content Variables match those in my approved Twilio content template.&lt;/p&gt;

&lt;p&gt;Confirmed the endpoint URL for production use (not sandbox): &lt;a href="https://api.twilio.com/2010-04-01/Accounts/" rel="noopener noreferrer"&gt;https://api.twilio.com/2010-04-01/Accounts/&lt;/a&gt;/Messages.json&lt;/p&gt;

&lt;p&gt;Used Base64 encoding for Authorization headers and confirmed its accuracy.&lt;/p&gt;

&lt;p&gt;Checked that the sender is verified, my Twilio account is upgraded to live status, and the content template is approved.&lt;/p&gt;

&lt;p&gt;Cross-checked my Zapier setup to ensure it mirrors the successful Postman request, including all variables and headers:&lt;/p&gt;

&lt;p&gt;Content-Type: application/x-www-form-urlencoded&lt;/p&gt;

&lt;p&gt;Authorization: Basic &lt;/p&gt;

&lt;p&gt;What I expected:&lt;br&gt;
I expected the message to send successfully via Zapier, just as it did in Postman.&lt;/p&gt;

&lt;p&gt;What actually happened:&lt;br&gt;
Zapier returned the following error:&lt;/p&gt;

&lt;p&gt;The 'To' number whatsapp: 923002459677 is not a valid phone number.&lt;/p&gt;

&lt;p&gt;This error persists even though:&lt;/p&gt;

&lt;p&gt;The same number works perfectly in Postman.&lt;/p&gt;

&lt;p&gt;The recipient is opted in and correctly configured to receive WhatsApp messages.&lt;/p&gt;

&lt;p&gt;Additional Details:&lt;br&gt;
The phone number is verified as valid.&lt;/p&gt;

&lt;p&gt;My Twilio account is upgraded to live, and the sender is verified.&lt;/p&gt;

&lt;p&gt;The Content Variables match the approved Twilio template.&lt;/p&gt;

&lt;p&gt;The same API request is successful on Postman but consistently fails on Zapier.&lt;/p&gt;

&lt;p&gt;I’m attaching screenshots of my API setup in Zapier for reference.&lt;/p&gt;

&lt;p&gt;Why Zapier might be rejecting the request while Postman works fine, and how to resolve this?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6dx3ljhwei29biscgzxp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6dx3ljhwei29biscgzxp.png" alt="API SS" width="800" height="466"&gt;&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2hx5mxqaqgl8jbsoel4a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2hx5mxqaqgl8jbsoel4a.png" alt="API SS" width="800" height="720"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4kr7e4x6adq0e5vly5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4kr7e4x6adq0e5vly5q.png" alt="API SS" width="800" height="754"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnpgv8ii6fw6su7gw6hh5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnpgv8ii6fw6su7gw6hh5.png" alt="Error" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>zapier</category>
      <category>twilio</category>
    </item>
  </channel>
</rss>
