+<pre class="sourceCode json"><code class="sourceCode json"><span class="fu">{</span>
+ <span class="dt">"jtype"</span><span class="fu">:</span> <span class="st">"afb-reply"</span><span class="fu">,</span>
+ <span class="dt">"request"</span><span class="fu">:</span> <span class="fu">{</span>
+ <span class="dt">"status"</span><span class="fu">:</span> <span class="st">"success"</span><span class="fu">,</span>
+ <span class="dt">"info"</span><span class="fu">:</span> <span class="st">"informationnal text"</span><span class="fu">,</span>
+ <span class="dt">"token"</span><span class="fu">:</span> <span class="st">"e83b36f8-d945-463d-b983-5d8ed73ba52"</span><span class="fu">,</span>
+ <span class="dt">"uuid"</span><span class="fu">:</span> <span class="st">"5fcc3f3d-4b84-4fc7-ba66-2d8bd34ae7d1"</span><span class="fu">,</span>
+ <span class="dt">"reqid"</span><span class="fu">:</span> <span class="st">"application-generated-id-23456"</span>
+ <span class="fu">},</span>
+ <span class="dt">"response"</span><span class="fu">:</span> <span class="er">....any</span> <span class="er">response</span> <span class="er">object....</span>
+<span class="fu">}</span></code></pre>
+<h3 id="field-jtype">Field jtype</h3>
+<p>The field <strong>jtype</strong> must have a value of type string equal to <strong>"afb-reply"</strong>.</p>
+<h3 id="field-request">Field request</h3>
+<p>The field <strong>request</strong> must have a value of type object. This request object has at least one field named <strong>status</strong> and four optional fields named <strong>info</strong>, <strong>token</strong>, <strong>uuid</strong>, <strong>reqid</strong>.</p>
+<h4 id="subfield-request.status">Subfield request.status</h4>
+<p><strong>status</strong> must have a value of type string. This string is equal to <strong>"success"</strong> only in case of success.</p>
+<h4 id="subfield-request.info">Subfield request.info</h4>
+<p><strong>info</strong> is of type string and represent optional information added to the reply.</p>
+<h4 id="subfield-request.token">Subfield request.token</h4>
+<p><strong>token</strong> is of type string. It is sent either at session creation or when the token is refreshed.</p>
+<h4 id="subfield-request.uuid">Subfield request.uuid</h4>
+<p><strong>uuid</strong> is of type string. It is sent at session creation.</p>
+<h4 id="subfield-request.reqid">Subfield request.reqid</h4>
+<p><strong>reqid</strong> is of type string. It is sent in response to HTTP requests that added a parameter of name <strong>reqid</strong> or <strong>x-afb-reqid</strong> at request time. Value returns in the reply has the exact same value as the one received in the request.</p>
+<h3 id="field-response">Field response</h3>
+<p>This field response optionally contains an object returned when request succeeded.</p>
+<h2 id="format-of-events">Format of events</h2>
+<p>Events are javascript object serialized as JSON.</p>
+<p>This object contains at least 2 mandatory fields of name <strong>jtype</strong> and <strong>event</strong> and one optional field of name <strong>data</strong>.</p>
+<h3 id="template-1">Template</h3>
+<p>Here is a template of event:</p>
+<pre class="sourceCode json"><code class="sourceCode json"><span class="fu">{</span>
+ <span class="dt">"jtype"</span><span class="fu">:</span> <span class="st">"afb-event"</span><span class="fu">,</span>
+ <span class="dt">"event"</span><span class="fu">:</span> <span class="st">"sample_api_name/sample_event_name"</span><span class="fu">,</span>
+ <span class="dt">"data"</span><span class="fu">:</span> <span class="er">...any</span> <span class="er">event</span> <span class="er">data...</span>
+<span class="fu">}</span></code></pre>
+<h3 id="field-jtype-1">Field jtype</h3>
+<p>The field <strong>jtype</strong> must have a value of type string equal to <strong>"afb-event"</strong>.</p>
+<h3 id="field-event">Field event</h3>
+<p>The field <strong>event</strong> carries the event's name.</p>
+<p>The name of the event is made of two parts separated by a slash: the name of the name of the API that generated the event and the name of event within the API.</p>
+<h3 id="field-data">Field data</h3>
+<p>This field data if present holds the data carried by the event.</p>