Multiple revisions 420089-420090,420097
[asterisk/asterisk.git] / rest-api / api-docs / events.json
index cf93f4b..5e115fb 100644 (file)
                                "EndpointStateChange",
                                "Dial",
                                "StasisEnd",
-                               "StasisStart"
+                               "StasisStart",
+                               "TextMessageReceived"
                        ]
                },
                "DeviceStateChanged": {
                                        "type": "Channel"
                                }
                        }
+               },
+               "TextMessageReceived": {
+                       "id": "TextMessageReceived",
+                       "description": "A text message was received from an endpoint.",
+                       "properties": {
+                               "message": {
+                                       "required": true,
+                                       "type": "TextMessage"
+                               },
+                               "endpoint": {
+                                       "required": false,
+                                       "type": "Endpoint"
+                               }
+                       }
                }
        }
 }