Messages API Endpoint
Create an endpoint to control all messaging "inbox" communications
-
Jaydon Robinson commented
Hi there - I use Enso Connect for a handful of things, including automated messaging. Currently, there isn't the ability for me to send Airbnb messages via Enso Connect as Hostfully doesn't offer that capability via the API. Can't wait for this to be built as part of V3 API.
-
Trey commented
I would like to see a payload closer to these attributes. Also, can you set this as a webhook, so we can be notified in real-time, rather than the scheduler.
{
"_id": "5815f92df4ff4b0f005f053b",
"createdAt": "2016-10-30T13:44:13.031Z",
"lastUpdatedAt": "2017-07-31T07:03:31.685Z",
"isStarred": true,
"isRead": true,
"assignee": "59749d2537278b0f00396943",
"readLog": [
{
"by": "587b8283fc6b2610000f9b39",
"_id": "587c94ac66e78f10003ebff3",
"at": "2017-01-16T09:38:52.237Z"
},
{
"by": "591c23fddbb50f1000fa17ff",
"_id": "591c514455392d280059964a",
"at": "2017-05-17T13:33:56.815Z"
}
],
"pendingTasks": [],
"accountId": "563e0b6a08a2710e00057b82",
"integration": {
"_id": "5784a3cc64ce9c0e00ecaf1e",
"platform": "airbnb",
"airbnb": {
"id": 12345,
"guestId": 12345,
},
}
"thread": [
{
"module": "sms",
"createdAt": "2017-07-31T07:03:31.685Z",
"sentAt": "2017-07-31T07:04:52.312Z",
"status": "completed",
"isAutomatic": true,
"reservationId": "5976e738739d2d0f008fe0d8",
"by": "Us",
"sms": {
"from": "447520619995",
"to": [
"353858767622"
],
"body": "Hey just making sure you got this SMS"
}
}
]
}