<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2176/25/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Events+REST+API">Asterisk 12 Events REST API</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~dlee">David M. Lee</a>
</h4>
<br/>
<div class="notificationGreySide">
<div>
<ul>
<li><a href='#Asterisk12EventsRESTAPI-Events'>Events</a></li>
<ul>
<li><a href='#Asterisk12EventsRESTAPI-GET%2Fevents'>GET /events</a></li>
<ul>
<li><a href='#Asterisk12EventsRESTAPI-Queryparameters'>Query parameters</a></li>
<li><a href='#Asterisk12EventsRESTAPI-Headerparameters'>Header parameters</a></li>
</ul>
</ul>
</ul></div>
<h1><a name="Asterisk12EventsRESTAPI-Events"></a>Events</h1>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Method </th>
<th class='confluenceTh'> Path </th>
<th class='confluenceTh'> Return Model </th>
<th class='confluenceTh'> Summary </th>
</tr>
<tr>
<td class='confluenceTd'> GET </td>
<td class='confluenceTd'> <a href="#Asterisk12EventsRESTAPI-eventWebsocket">/events</a> </td>
<td class='confluenceTd'> Event </td>
<td class='confluenceTd'> WebSocket connection for events </td>
</tr>
</tbody></table>
</div>
<p><a name="Asterisk12EventsRESTAPI-eventWebsocket"></a></p>
<h2><a name="Asterisk12EventsRESTAPI-GET%2Fevents"></a>GET /events</h2>
<p>WebSocket connection for events</p>
<h3><a name="Asterisk12EventsRESTAPI-Queryparameters"></a>Query parameters</h3>
<ul>
        <li>app: string- Comma seperated list of applications to subscribe to.</li>
</ul>
<h3><a name="Asterisk12EventsRESTAPI-Headerparameters"></a>Header parameters</h3>
<ul>
        <li>Upgrade: string- RFC6455 header for upgrading a connection to a websocket.</li>
</ul>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Events+REST+API">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Events+REST+API?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>