Is WhatsApp providing any API's for status uploading to it's Business platform
As I mentioned above, are there any API's available for uploading status (text, images and videos etc.) in the WhatsApp Businesses platform? For businesses messaging we can use Cloud API https://developers.facebook.com/docs/whatsapp/cloud-api or On-Premises API https://developers.facebook.com/docs/whatsapp/on-premises . Like messages API's, I am searching for status uploading API's. If anyone knows about this please guide me.
I'm using a third-party solution gateway for this. Statuses can be pictures or just text with a colored background.
A mandatory parameter should be an array of numbers to which the status will be displayed (including your own)
const options = { method: 'POST', headers: { accept: 'application/json', 'content-type': 'application/json', authorization: 'Bearer Your_Token' }, body: JSON.stringify({ background_color: '#00000000', caption_color: '#FFFFFFFF', caption: 'Hello world', font_type: 'SANS_SERIF', // media: 'data:image/png;name=test.png;base64,iVBORw0KG...........', contacts: ['any number', 'any number'] }) }; fetch('https://gate.whapi.cloud/stories', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));Run code snippetHide resultsExpand snippetRead more about the method here: https://whapi.readme.io/reference/createstory
You will need a token from provider. Attention, this is an unofficial solution, so use at your own risk.
Glad that you asked this here. According to the Meta documentation, till date, there is no direct API solution for Whatsapp Story creation. I am someone waiting for this feature.LOL. Whatsapp only have send and receive message endpoints in business APIs. But you could create stories in Insta and Facebook using API endpoints. Please check my answer in Fetch Facebook stories vith API for more details.
Being said this, you still cannot create a simple text as a story through API.
PS: There are third party options available but its not recommended as this may result in temporary or permanent bans of your WhatsApp account.