const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rocketsend.click/v1/instances', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
[
{
"id": {
"description": "Id unico da instância",
"type": "string"
},
"name": {
"description": "Nome da Instância",
"type": "string"
},
"token": {
"description": "Token de identificação unico",
"type": "string"
},
"webhooks": {
"description": "Webhooks para envio de mensagens",
"type": "String Array" | "string[]"
},
"status": {
"description": "Status da conexão do WhatsApp",
"type": "CONECTED" | "DISABLED"
},
"createdAt": {
"description": "Data de criação da instancia",
"type": "2024-06-07T01:32:12.935Z"
},
"updatedAt": {
"description": "Data de alteração da instancia",
"type": "2024-06-07T01:32:12.935Z"
}
}
]