Posts tagged with twilio

We are currently in the process of implementing the Whatsapp Embedded Signup fucntionality that will be required by Twilio later in the year.

We've followed the documentation and we think we haven't made any mistakes.

In our front-end, everything works fine. The correct Whatsapp Business Account ID and Phone Number ID are retrieved from the Meta window.

After this we attempt to register these credentials to a new subaccount in Twilio using Twilio's Java library. We retrieve the phone number to use as the sender using Meta's API.

The step that fails is registering a Whatsapp Sender on the Twilio subaccount. This is done the following way:

private LinkedPhoneNumberResponseDto linkTwilioPhoneNumber(String countryCode, String phoneNumber, Account account, Long wabaId) {         TwilioCreateRequestDto body = TwilioCreateRequestDto.builder()                 .configuration(WhatsappTwilioConnectionConfigurationRequestDto.builder()                         .wabaId(wabaId.toString())                         .build())                 .senderId("whatsapp:" + countryCode + phoneNumber)                 .profile(WhatsappTwilioConnectionProfileRequestDto.builder()                         .name(account.getFriendlyName())                         .build())                 .build();         log.info("RequestBody is: {}", body);         log.info("ACC INFO = {}:{}:{}:{}", account.getSid(), account.getAuthToken(), account.getFriendlyName(), account.getStatus());         ResponseEntity<LinkedPhoneNumberResponseDto> res = restClient                 .post()                 .uri("https://messaging.twilio.com/v2/Channels/Senders")                 .headers(headers -> {                     headers.setContentType(MediaType.APPLICATION_JSON);                     headers.setBasicAuth(account.getSid(), account.getAuthToken());                 })                 .body(body)                 .accept(MediaType.ALL)                 .retrieve()                 .toEntity(LinkedPhoneNumberResponseDto.class);         if (res.getStatusCode().is2xxSuccessful()) {             return res.getBody();         } else {             throw new BadRequestException("Something went wrong linking the phone number to Twilio");         }     } 

For some reason, no matter what phone number we use, we always get the validation error.

We've already tried making the request thorugh Postman instead of Twilio's Java library. We've also tried three different phone numbers. Multiple Whatsapp Business Accounts have also been used.

Any help would be appreciated.

I have successfully created a webhook and configured it to handle incoming messages and send responses using Twilio's API. However, I'm currently using a Twilio-provided WhatsApp Business number. I need to switch to my existing WhatsApp Business number so that when clients message my number, it triggers the webhook and Twilio API sends the response.

1.Created a Twilio account and set up the WhatsApp Sandbox for testing. 2.Verified my WhatsApp Business number with WhatsApp. 3.Configured webhook URLs in the Twilio console to handle incoming messages. 4.Successfully handled incoming messages and sent responses using Twilio's provided number.

I’m developing a custom crm in react and nodejs.

I need to integrate a box in which the user/operator can message through whatsapp to the customers.

I read that I can’t use the iframe cause there are some several restrictions.

How can I add this feature?

ps: I don’t want to open new tab in the browser and redirect to whatsapp web.

I'm developing an application similar to Confirmafy that uses the WhatsApp Business API to send messages to users. According to WhatsApp's documentation, message templates need to be pre-approved, and line breaks are not allowed within variables.

However, I've noticed that Confirmafy allows users to edit the message body, including adding line breaks, and the message is sent instantly without any apparent approval process. Here’s an example of how the message configuration looks in Confirmafy

In this configuration, I can insert line breaks and any text, and the message is delivered instantly via WhatsApp. This behavior seems to contradict WhatsApp's official documentation.

How does Confirmafy manage to send messages with line breaks in variables without needing pre-approval from WhatsApp? Is there a specific API endpoint or method that bypasses the template approval process? Are there any exceptions or special permissions required to achieve this functionality?

I already talked to Twilio and Meta support and they can´t help me. Someone know hoy can I do this? Thanks

Using Twilio API to send WhatsApp messages using Python. Sending rate is about 1 message per second. Have a confirmed business account with Meta/WhatsApp and the phone number is approved for 1,000 business-initiated messages per 24-hour period.

Trying to do some type of load test by sending messages to a single number - my number. All is good for 50+ messages and then I get the above error. Neiter the API rate limit nor the max messages per day are being exceeded.

Any help is greatly appreciated.

I have looked at the error code documentation and it does not seem to fit the situation. I have tried Twilio web support but no response yet.