1.4 KiB
1.4 KiB
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:
{ "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" }
- Parâmetros Requisição:
- Evento: message_created
- POST https://hit-sms-api.omnihit.app.br/api/chatwoot/webhook/sms/:provider_infobip/:apikey/:inbox_123