<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mesibo Backend APIs (Server-side APIs) on mesibo documentation</title><link>https://docs.mesibo.com/api/backend-api/</link><description>Recent content in Mesibo Backend APIs (Server-side APIs) on mesibo documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.mesibo.com/api/backend-api/index.xml" rel="self" type="application/rss+xml"/><item><title>Mesibo Backend APIs - User Management</title><link>https://docs.mesibo.com/api/backend-api/user-management/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/user-management/</guid><description>&lt;p&gt;Before your users can use mesibo services, mesibo need to know about your users so that mesibo can enable real-time messaging, calls, and conference between them.&lt;/p&gt;
&lt;p&gt;mesibo identifies each user by a unique random string, called &lt;code&gt;address&lt;/code&gt;. The &lt;code&gt;address&lt;/code&gt; can be anything, for example, phone number, email address, your enterprise user ID, etc. You need to create a mesibo user for each of your app users.&lt;/p&gt;
&lt;p&gt;mesibo will generate an authentication token when you create a user. This user token is also called the access token. You need to send this token to your apps so that your app can initialize mesibo &lt;a href="https://docs.mesibo.com/api/initialization/"&gt;Mesibo Real-time APIs&lt;/a&gt; using this token. Refer to the &lt;a href="https://docs.mesibo.com/tutorials/get-started/"&gt;Get Started tutorial&lt;/a&gt; to learn more about it.&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Group Management</title><link>https://docs.mesibo.com/api/backend-api/group-management/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/group-management/</guid><description>&lt;p&gt;mesibo allows you to create groups having a set of users as group members. Once you create a group, you can send messages to the group, and all the group members will receive the messages.&lt;/p&gt;
&lt;p&gt;Unless you have a specific need for creating groups using backend API, we recommend using &lt;a href="https://docs.mesibo.com/api/group-management/"&gt;real-time Group Management APIs&lt;/a&gt; to create groups and add members. It is real-time, powerful, and works across both cloud and on-premise deployment without any changes.&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Messaging</title><link>https://docs.mesibo.com/api/backend-api/messaging/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/messaging/</guid><description>&lt;p&gt;While your users can send messages to each other or groups using Mesibo real-time APIs, your backend can also send messages to one of your users or groups using backend API.&lt;/p&gt;
&lt;p&gt;To send a message, you need to send a message JSON request to the backend API, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;op&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;token&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ptlk9hdel1gqxf3p0s15f5f5gtusldej18tl794suzit&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;from&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;me&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;to&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;you,she,he&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;gid&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;111&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;expiry&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;flags&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;forced&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;This is my message&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th style="text-align: left"&gt;Parameter&lt;/th&gt;
 &lt;th style="text-align: left"&gt;Description&lt;/th&gt;
 &lt;th style="text-align: right"&gt;Default&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;op&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;MUST have the value - &amp;ldquo;message&amp;rdquo; (see example above)&lt;/td&gt;
 &lt;td style="text-align: right"&gt;Mandatory&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;token&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Application Token obtained from the mesibo console&lt;/td&gt;
 &lt;td style="text-align: right"&gt;Mandatory&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.from&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;From address [MUST be a valid user]&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.to&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;To addresses, comma separated&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.gid&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Group ID&lt;/td&gt;
 &lt;td style="text-align: right"&gt;0&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.type&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Message Type&lt;/td&gt;
 &lt;td style="text-align: right"&gt;0&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.expiry&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Expiry in seconds&lt;/td&gt;
 &lt;td style="text-align: right"&gt;1 year&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.when&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Schedule after &lt;code&gt;when&lt;/code&gt; seconds&lt;/td&gt;
 &lt;td style="text-align: right"&gt;0 (now)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.message&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Message&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.url&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;File URL&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td style="text-align: left"&gt;&lt;strong&gt;message.title&lt;/strong&gt;&lt;/td&gt;
 &lt;td style="text-align: left"&gt;Title, when sending a file URL&lt;/td&gt;
 &lt;td style="text-align: right"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;If the request is successful, the response will be like,&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Push Notifications</title><link>https://docs.mesibo.com/api/backend-api/push-notifications/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/push-notifications/</guid><description>&lt;p&gt;This section describes how to configure push notification credentials using backend APIs. For in-depth details on how to use mesibo push notifications and configuration using the console, refer to the mesibo &lt;a href="https://docs.mesibo.com/api/push-notifications/"&gt;push notification documents&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are using the mesibo on-premise server, it is highly recommended to use backend APIs to configure push notifications instead of the mesibo console. This ensures complete privacy of your push notification credentials. If you configure push notifications using both the backend API and the console, the on-premise server will give preference to the credentials configured via the backend APIs, which are saved in your database.&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Scripting and Chatbot Configuration</title><link>https://docs.mesibo.com/api/backend-api/scripting-and-chatbot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/scripting-and-chatbot/</guid><description>&lt;p&gt;This section describes how to upload and manage scripts for the mesibo scripting and chatbot feature using the Backend APIs. For in-depth details on how to use mesibo scripting and chatbot features, refer to the mesibo &lt;a href="https://docs.mesibo.com/chatbot"&gt;Scripting and Chatbot Documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are using the mesibo on-premise server, you must use the Backend APIs to upload and manage scripts. This also ensures complete privacy of your scripts.&lt;/p&gt;
&lt;p&gt;If you are using the mesibo cloud service, you can use either the Console or the Backend APIs.&lt;/p&gt;</description></item><item><title/><link>https://docs.mesibo.com/api/backend-api/user-access-control-uac/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/user-access-control-uac/</guid><description>&lt;h1 id="mesibo-backend-apis---user-access-control-uac"&gt;Mesibo Backend APIs - User Access Control (UAC)&lt;a class="td-heading-self-link" href="#mesibo-backend-apis---user-access-control-uac" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;UAC allows you to assign different feature sets to different classes of users instead of managing each user and each feature individually. UAC provides granular controls across messaging, calls, presence, group calls, location, files, and more, enabling you to configure and assign precise capabilities to different user segments in your app.
User segments vary by application type, for example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Social Apps: Free users vs. paid subscribers&lt;/li&gt;
&lt;li&gt;Telemedicine: Doctors, patients, administrative staff&lt;/li&gt;
&lt;li&gt;Enterprise: HR, managers, employees, contractors&lt;/li&gt;
&lt;li&gt;Education: Teachers, students, administrators&lt;/li&gt;
&lt;li&gt;Marketplaces: Buyers, sellers, verified merchants&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each segment can be assigned different UAC configurations with specific feature sets tailored to their needs and subscription level. When you need to change feature sets or enhance your app with new capabilities, simply modify the UAC configuration once and it automatically applies to all assigned users, eliminating the need to update each user individually. Similarly, you can instantly change a user&amp;rsquo;s feature set by switching their assigned UAC. For example, when a free user becomes a paid subscriber, assigning them a different UAC immediately grants them the enhanced feature set without any manual configuration.&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Hosting Backend APIs</title><link>https://docs.mesibo.com/api/backend-api/on-premise/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/on-premise/</guid><description>&lt;p&gt;If you are using &lt;a href="https://docs.mesibo.com/on-premise"&gt;mesibo on-premise&lt;/a&gt;, mesibo (and mesibo console) will NOT have any access to your on-premise setup or database. Hence, there are only limited operations (&lt;code&gt;useradd&lt;/code&gt;, &lt;code&gt;userset&lt;/code&gt;, and &lt;code&gt;usertoken&lt;/code&gt;) you can perform with mesibo hosted &lt;a href="https://docs.mesibo.com/api/backend-api/"&gt;backend API&lt;/a&gt; when using on-premise. For all other operations like group management or sending messages, you will need to use real-time APIs, for example, &lt;a href="https://docs.mesibo.com/api/group-management/"&gt;real-time group APIs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alternatively (though OPTIONAL), you can host entire backend APIs to your own server. This will enable you to access entire backend APIs while using mesibo on-premise. Even if you are not using backend APIs for group management or sending messages, it is highly recommended that you enable and use backend APIs bundled with mesibo docker image as it will update your database instantly and also give you access to additionals ops like &lt;code&gt;usersget&lt;/code&gt;, &lt;code&gt;groupsget&lt;/code&gt;, etc.&lt;/p&gt;</description></item><item><title>mesibo Backend API Playground</title><link>https://docs.mesibo.com/api/backend-api/playground/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/playground/</guid><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
 &lt;head&gt;
 &lt;meta charset="utf-8"&gt;
 &lt;meta name="viewport" content="width=device-width"&gt;
 &lt;title&gt;mesibo Backend API Playground&lt;/title&gt;
 &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"&gt;
 &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css" /&gt;
 &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/&gt;
 &lt;link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"&gt;
 &lt;style&gt;
 sup { vertical-align: top; position: relative; top: -0.5em; }

 input::-webkit-inner-spin-button {
		-webkit-appearance: none;
		margin: 0;
	 }

	 /* Firefox */
	 input[type=number] {
		-moz-appearance: textfield;
	 }

	 .btn.btn-dark:disabled{
		background-color: #A9A9A9;
		border: none;
		outline:none;
	 }

	 textarea {
		 padding: 10px;
		 background-color: transparent;
		 font-family: monospace;
		}

		.navbar-nav li a {
		 line-height: 70px;
		}

		.navbar-nav li img {
		 vertical-align: bottom;
		}

		.btn:focus,.btn:active {
		 outline: none !important;
		 box-shadow: none;
		 -webkit-box-shadow: none
		}
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body ng-cloak="apis" ng-app="MesiboPlayground" id="mesiboapiplay" ng-controller="AppController"&gt;
 &lt;nav class="navbar navbar-light" style="background-color: #00868b;"&gt;
 &lt;a href="https://mesibo.com/"&gt;&lt;img class="logo" src="https://mesibo.com/images/mesibo-logo-white.png" alt="Mesibo" title="Mesibo" style="width: 160px;"&gt;&lt;/a&gt; 
 
 &lt;div class="ml-auto"&gt; 
 	 &lt;span style="color: white;" ng-show="app_name &amp;&amp; app_aid"&gt;{{app_name}}({{app_aid}})&lt;/span&gt;
	 	 &lt;button type="button" ng-show="token" class="btn btn-danger" onclick="window.location.reload(true);" style="align-self:right;"&gt;Logout&lt;/button&gt; 
 &lt;/div&gt;
 
 &lt;/nav&gt;
 &lt;br ng-if="!token"&gt;
 &lt;div class="mx-5"&gt; 
 &lt;div ng-show="!token"&gt;
 	&lt;h3 style="color: #00868b"&gt; mesibo Backend API Playground &lt;/h3&gt;
 	&lt;p&gt;This is an interactive playground for trying out REST based &lt;a rel="noopener noreferrer" target="_blank" href="https://docs.mesibo.com/api/backend-api"&gt;mesibo Backend APIs&lt;/a&gt;. You can administer your account, manage apps, manage users and groups etc using backend APIs. Refer to &lt;a href="https://docs.mesibo.com/api/backend-api/"&gt; Backend API Documentation &lt;/a&gt; to know more.&lt;/p&gt;</description></item><item><title>Mesibo Backend APIs - Group Management</title><link>https://docs.mesibo.com/api/backend-api/group-flag-notinuse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/backend-api/group-flag-notinuse/</guid><description>&lt;p&gt;mesibo allows you to create groups having a set of users as group members. Once you create a group, you can send messages to the group, and all the group members will receive the messages.&lt;/p&gt;
&lt;p&gt;Unless you have a specific need for creating groups using backend API, we recommend using &lt;a href="https://docs.mesibo.com/api/real-time-api/groups/"&gt;real-time Group Management APIs&lt;/a&gt; to create groups and adding members. It is real-time, powerful, and works across both cloud and on-premise deployment without any changes.&lt;/p&gt;</description></item></channel></rss>