- Push Sync: Hellomateo pushes messages to the external system via a webhook.
- Pull Sync: The external system pulls messages from Hellomateo via the API.
contact_id of the conversation directly from the webhook payload, or query external_id of the contact:
raw_content of the message, which is either the raw text or for emails the HTML content. You can use this to update the message log in your system.
The Pull Sync is a bit more complex, as you need to periodically poll the Hellomateo API for changes. We recommend setting up a cron job that runs at least every night to fetch all messages that were updated since the last run.