const body = {
"instanceToken": "f082fa6d-a01a-42a3-b343-0a507a4af1a4",
"message": {
"contactId": "556298125663@c.us",
"type": "TEXT",
"body": "Teste de envio"
}
}
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>'}
body: JSON.stringfy(body)
};
fetch('https://api.rocketsend.click/v1/instances/start', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));