Hello Mautic Community,I hope you’re doing well.
I would like to know if it’s possible to create a custom API endpoint to add a new event type. I’m currently using a third-party application for SMS campaigns and would love to integrate it with Mautic. My goal is to track each sent message and its status for every contact within Mautic.
Additionally, I’m considering inserting events directly into the database via SQL. However, I want to ensure that this approach won’t negatively impact Mautic’s functionality. Could you kindly advise on the best way to achieve this integration?
I truly appreciate your time and guidance. Looking forward to your response.
Isn’t the SmsBundle doing the same thing? Perhaps you just need to build a SMS transport for your SMS provider?
Thank for reply @escopecz but my goal is to send custom event to contact the have receive the text message and also change the status in case message deliver or fails
That is common for all email and SMS providers, isn’t it? You can check how Twilio is integrated. It is directly in the SmsBundle which shouldn’t be the case. It should have been a separate plugin. But still, other SMS transports can be done the same way as separate plugins. So Twilio will send a webhook about the delivered SMS or bounced phone number to Mautic and this callback class will validate the callback and the SmsBundle will handle the rest.
I didn’t check deeper what it does and if it shows up in the contact’s timeline. If it doesn’t then it should. But it should be a feature of the SmsBundle and make it available for all the SMS transports.
Thanks i will also check that way