I want to add/delete phone numbers to a WABA account. It can be done through UI but is there any endpoint to do the same ?
I didn't find any in documentation.
Related
I'm new to the Twilio API. I'd like to verify whether a set of phone numbers is "in service" with our account. These are phone numbers like PN0c8XXXX...... and is there a way to send numbers in bulk to be sure that they are associated with our account and in working order? I see a call like this (would Sid be our PN0c8... number?):
GET https://verify.twilio.com/v2/Services/{Sid}
but not clear if this is what we want or if it supports batch mode. Any ideas?
I'm not entirely sure what you mean by verifying a set of phone numbers in "in service" with your account.
However, you can check the details of a phone number in your account using the Incoming Phone Numbers API. If you have a phone number SID, the ID that starts with PN, you can fetch an individual phone number resource by making a request to:
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}.json
There isn't an API request that allows you to send multiple SIDs, but you can list all your incoming phone numbers and then check against that list in your own code.
As an aside, the URL you asked about in the question is the Twilio Verify API. Verify allows you to verify user's phone numbers over SMS or voice, and can also perform verification via TOTP, push notification or emails. It's meant for verification or two factor authentication.
We have configured the WhatsApp cloud API (not as a BSP). We use a messages endpoint to send messages to our customers. But we need to validate if the customer number has a WhatsApp account associated with it.
Is there any endpoint available to check if a number has a WhatsApp account? Kindly Help.
There is an option in On-premises API using contacts API but there is no option for Cloud API.
Hope they will provide in the future.
I've recently been trying to get all messages sent and received by a Whatsapp Business account. At the moment im using the MessageBird API in order to do this, but as soon as I add the phone number in Facebook Whatsapp Manager im not able to use the number on the Whatsapp Business App. (Phonenumber is invalid)
What am I doing wrong? All I want to do is:
Use the phonenumber in the WA Business App to send and receive messages.
Use the phonenumber in the MessageBird API to get a list of conversations and all messages sent and received in this conversation.
Unfortunately, this is not possible. Once the number is registered with WhatsApp Business API it cannot be used with the Consumer or SMB App.
https://developers.facebook.com/docs/whatsapp/guides/phone-number#pick-number
I am trying to connect my WhatsApp Business Account with Facebook so that it shows my business name. As per https://www.facebook.com/business/help/2087193751603668?helpref=faq_content there shall be an option for WhatsApp Account in business.facebook.com under 'Business Settings' > Accounts. But it is not there. It also says:
If the WhatsApp accounts option is not visible, the Business API may
not be available to you yet.
So can anyone guide how to get Business API access?
https://developers.facebook.com/docs/whatsapp/faq#faq_1807206352701689:
How do I get the WhatsApp Business API?
In order to ensure a high quality experience for businesses and users, we're in a limited public preview. If you'd like to work with us, submit more information about your business for consideration as we continue to expand our availability, or reach out to your Facebook representative if you already have one.
If you have such a representative available, reach out to them; otherwise, you will simply have to wait until this becomes available to everyone.
I am working with facebook Account Kit. During signup, I want the user to verify both email and phone so they can login with either of them. But currently facebook lets only phone or only email for one user id. Is there a way I can use both for a single user?
No, there is currently no way for an email and a phone number to share the same user ID. You would need to handle this yourself by using only one of these values as the user ID, and having an association between these 2 values.