Webhook
Webhooks allow your server to receive messages received through Automata.
To get started, login to your dashboard and navigate to the Integrations
page.
Click on API Integrations
to expand the settings. Enter your server's endpoint URL and click on Save
.
⚠️
You must restart your Automata app to load the new setting.
When Automata detects a received message, Automata will POST
to your server's endpoint URL a JSON object with the following fields:
type
- String. Describes type of data. OnlyINSERT
s for now. Future releases will enable subscription to dataUPDATE
sdirection
- String. Describes direction.inbound
for received messages, andoutbound
for sent messages. Onlyinbound
messages will be logged for now.date
- UTC datetimeguid
- String. Apple's internal ID for the message. This ID is universally unique and is Apple's version of UUID.group
- String. Name of group chat.handle
- String. Email or phone number of message sender.display
- String. Display name of message sender.message
- String. Message received. For attachments, the message will be "[Attachment]". Future releases will send the actual attachment.service
- String. Message protocol used.