Problems with Twilio API Request {"code":21604,"message":"A 'To' phone number is required."
Hi, i’m having erros trying to call Twilio API Request, the error that appears is “{"code":21604,"message":"A 'To' phone number is required.","more_info":"https://www.twilio.com/docs/errors/21604","status":400}”.
I tried a lot of forms to add the ‘TO’ Parameter without result.
I attach the configurations of the step
Thank you for your help.
Page 1 / 1
Hi @milobenavides
Please link to the Twilio API endpoint documentation you used to configure the API request.
This is the information, this is in my Twilio account, probably it doesn’t public.
201 - CREATED - The request was successful. We created a new resource and the response body contains the representation. { "account_sid": "AC00812c3f10e0864cfa0b91f3a921de48", "api_version": "2010-04-01", "body": "Your appointment is coming up on July 21 at 3PM", "date_created": "Fri, 09 Aug 2024 21:35:09 +0000", "date_sent": null, "date_updated": "Fri, 09 Aug 2024 21:35:09 +0000", "direction": "outbound-api", "error_code": null, "error_message": null, "from": "whatsapp:+XXXXXXXXXX", "messaging_service_sid": null, "num_media": "0", "num_segments": "1", "price": null, "price_unit": null, "sid": "SM8e1bd585b5ddb3d045553b5289a08b1e", "status": "queued", "subresource_uris": { "media": "/2010-04-01/Accounts/AC00812c3f10e0864cfa0b91f3a921de48/Messages/SM8e1bd585b5ddb3d045553b5289a08b1e/Media.json" }, "to": "whatsapp:+XXXXXXXXXXXX", "uri": "/2010-04-01/Accounts/AC00812c3f10e0864cfa0b91f3a921de48/Messages/SM8e1bd585b5ddb3d045553b5289a08b1e.json" }
@milobenavides
First, remove the configured Query String Parameters.
Then check your parameter capitalization.
To instead of to
From instead of from
Body instead of body
i chaged the configuration, but i have the same error.
{"code":21604,"message":"A 'To' phone number is required.","more_info":"https://www.twilio.com/docs/errors/21604","status":400}
But when i try to send a message using zapier, an error appears.
Response Body
body
{"code":21604,"message":"A 'To' phone number is required.","more_info":"https://www.twilio.com/docs/errors/21604","status":400}
Hi @milobenavides
I did some digging and found an existing feature request for the ability to support sending WhatsApp messages via the Twilio app, so that may be why it’s not working. I’ve gone ahead and added your vote to that feature request. While we can’t make any promises around when/if it will be implemented we’ll be sure to send you an email notification once it is.