hit-sms-api/TODO.MD

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-12-16 23:37:23 +00:00
# Objetivo
- Implementar uma Inbox de API que tem suporte para o provedor de SMS InfoBIP
## Chatwoot -> HIT-SMS-API
- [ ] Rota de envio dos eventos oriundos do Chatwoot
- [ ] POST https://hit-sms-api.omnihit.app.br/api/chatwoot/webhook/sms/:provider_infobip/:apikey/:inbox_123
- [ ] Evento: message_created
- Parâmetros Requisição:
```json
{
"id": 0,
"content": "This is a incoming message from API Channel",
"created_at": "2020-08-30T15:43:04.000Z",
"message_type": "incoming",
"content_type": null,
"content_attributes": {},
"source_id": null,
"sender": {
"id": 0,
"name": "contact-name",
"avatar": "",
"type": "contact"
},
"inbox": {
"id": 0,
"name": "API Channel"
},
"conversation": {
"additional_attributes": null,
"channel": "Channel::Api",
"id": 0,
"inbox_id": 0,
"status": "open",
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"timestamp": 0
},
"account": {
"id": 1,
"name": "API testing"
},
"event": "message_created"
}
```
-