{"id":4708,"date":"2021-12-03T19:45:38","date_gmt":"2021-12-03T11:45:38","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4708"},"modified":"2025-04-04T19:28:20","modified_gmt":"2025-04-04T11:28:20","slug":"create-meeting-room-using-rest-api","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video\/low-code-video-embed\/create-meeting-room-using-rest-api\/","title":{"rendered":"Create Meeting Room Using Rest API"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>Video Embed URL has embedded Room-ID for Virtual Sessions. Your Application&#8217;s business logic and workflow might need many rooms to meet your requirement. Know how you create more rooms of different kind and how to embed them into your EMBED URL to get connected to different Virtual Rooms.<\/p><\/blockquote>\n\n\n\n<p>A Video conferencing session takes place in the Meeting Room hosted on the Platform server. A <strong>Room<\/strong> is a virtual meeting space within the platform to host real-time communication sessions. It facilitates communication among participants through Audio, Video &amp; Chat.<\/p>\n\n\n\n<p>The communication between your Application Server and the platform server is carried out via Rest API, which is also known as Video API. Access Credentials <strong>APP_ID<\/strong> and <strong>APP_KEY<\/strong>, which you get at the time of creating a Project, must be passed as Authorization Header for accessing the Video APIs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1024\" height=\"319\" src=\"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/Low-Code-Diagram-Image.jpg\" alt=\"\" class=\"wp-image-7261\" srcset=\"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/Low-Code-Diagram-Image.jpg 1024w, https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/Low-Code-Diagram-Image-300x93.jpg 300w, https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/Low-Code-Diagram-Image-768x239.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can create a Meeting Room request by calling Video\/Rest API through Meeting Room URL (see Example 1). To establish the room connection, IFRAME Embed URL requires a Meeting Room ID. Once the connection gets established, the IFRAME Embed starts playing Participant\u2019s Videos on your platform.<\/p>\n\n\n\n<p><strong>Example 1<\/strong>: <strong>Meeting URL Explanation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1015\" height=\"370\" src=\"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/embed-iframe-explanation-1.png\" alt=\"\" class=\"wp-image-7264\" srcset=\"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/embed-iframe-explanation-1.png 1015w, https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/embed-iframe-explanation-1-300x109.png 300w, https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-content\/uploads\/2025\/04\/embed-iframe-explanation-1-768x280.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<a name=\"get-room-id\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>1. Create a Room to get Room ID<\/h3>\n\n\n\n<p>To create a Meeting Room URL, you first need to create a Room and fetch the Room ID. You can <a href=\"\/developer\/video-api\/server-api\/rooms-route\/#create-room\">create a Room using a Video API<\/a> and the platform server responds with the JSON Payload containing the unique \u201croom-id\u201d. There are three different types of Meeting Rooms that can be created: Permanent, Scheduled, and Ad-hoc.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>1.1 Permanent Room<\/h4>\n\n\n\n<p>It is a meeting room that always remains available for use once created. You can start it anytime and schedule it for further use in the future. Use the following Settings in JSON Payload for API Call to create Permanent Room:<\/p>\n\n\n\n<p><code>{\"settings\": {\"scheduled\": false, \"adhoc\": false}}<\/code><\/p>\n\n\n\n<p><strong>Example 2<\/strong>:<strong> API Call to create Permanent Room<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">POST https:\/\/api.smartflomeet.ttns.in\/video\/v1\/rooms\nContent-Type: application\/json\nAuthorization: Basic XXXXXXXX\n \n{\n  \"name\": \"My Permanent Room\",\n  \"owner_ref\": \"XOXO\",\n  \"settings\": {\n    \"description\": \"My Permanent Room\",\n    \"mode\": \"group\",\n    \"scheduled\": false,\n    \"adhoc\": false,\n    \"duration\": 30,\n    \"moderators\": \"1\",\n    \"participants\": \"3\",\n    \"quality\": \"SD\",\n    \"canvas\": false,\n    \"screen_share\": false,\n    \"abwd\": true,\n    \"max_active_talkers\": 4\n  } \n}<\/pre>\n\n\n\n<p>Platform server responds with JSON containing a unique <code>room-id<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"result\": 0,\n  \"room\": {\n    \"name\": \"My Permanent Room\",\n    \"owner_ref\": \"XOXO\",\n    \"settings\": {\n      \"scheduled\": false,\n      \"adhoc\": false\n    },\n    \"created\": \"2021-05-25T00:20:30.851Z\",\n    \"room_id\": \"xxxxxxxxxxxxxx\"\n  }\n}<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>1.2 Scheduled Room<\/h4>\n\n\n\n<p>This Room is only available for a particular duration\/period that needs to be specified with a scheduled time and duration. Use the following Settings in JSON Payload for API Call to create Scheduled Room:<\/p>\n\n\n\n<p><code>{\"settings\": {\"scheduled\": true, \"scheduled time\": \"YYYY-MM-DD HH:II:SS\", \"duration\": 30}}<\/code><\/p>\n\n\n\n<p>The <code>scheduled time<\/code> here is in GMT.<\/p>\n\n\n\n<p><strong>Example 3<\/strong>:<strong> API Call to create Scheduled Room<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">POST http:\/\/api.smartflomeet.ttns.in\/video\/v1\/rooms\nContent-Type: application\/json\nAuthorization: Basic XXXXXXXX\n \n{\n  \"name\": \"My Scheduled Room\",\n  \"owner_ref\": \"XOXO\",\n  \"settings\": {\n    \"description\": \"My Scheduled Room\",\n    \"mode\": \"group\",\n    \"scheduled\": true,\n    \"adhoc\": false,\n    \"scheduled_time\": \"2021-05-31 05:30:00\",\n    \"duration\": 30,\n    \"moderators\": \"1\",\n    \"participants\": \"3\",\n    \"quality\": \"SD\",\n    \"abwd\": true\n  }\n}<\/pre>\n\n\n\n<p>Platform server responds with JSON containing a unique <code>room-id<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"result\": 0,\n  \"room\": {\n    \"name\": \"My Scheduled Room\",\n    \"owner_ref\": \"XOXO\",\n    \"settings\": {\n      \"scheduled\": true,\n      \"scheduled_time\": \"2021-05-31 05:30:00\",\n      \"duration\": 30,\n      \"adhoc\": false\n    },\n    \"created\": \"2021-05-25T00:20:30.851Z\",\n    \"room_id\": \"xxxxxxxxxxxxxx\"\n  }\n}<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>1.3 Adhoc Room<\/h4>\n\n\n\n<p>It can be created instantly and is only available for a single call. Use the following Settings in JSON Payload for API Call to create Scheduled Room:<\/p>\n\n\n\n<p><code>{\"settings\": {\"scheduled\": false, \"adhoc\": true}}<\/code><\/p>\n\n\n\n<p><strong>Example 4<\/strong>:<strong> API Call to create Adhoc Room<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">POST http:\/\/api.smartflomeet.ttns.in\/video\/v1\/rooms\nContent-Type: application\/json\nAuthorization: Basic XXXXXXXX\n \n{\n  \"name\": \"My Adhoc Room\",\n  \"owner_ref\": \"XOXO\",\n  \"settings\": {\n    \"description\": \"My Adhoc Room\",\n    \"mode\": \"group\",\n    \"scheduled\": false,\n    \"adhoc\": true,\n    \"duration\": 30,\n    \"moderators\": \"1\",\n    \"participants\": \"3\",\n    \"quality\": \"SD\",\n    \"canvas\": false,\n    \"screen_share\": false,\n    \"abwd\": true,\n    \"max_active_talkers\": 4\n  }\n}<\/pre>\n\n\n\n<p>Platform server responds with JSON containing a unique <code>room-id<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"result\": 0,\n  \"room\": {\n    \"name\": \"My Adhoc Room\",\n    \"owner_ref\": \"XOXO\",\n    \"settings\": {\n      \"scheduled\": false,\n      \"adhoc\": true\n    },\n    \"created\": \"2021-05-25T00:20:30.851Z\",\n    \"room_id\": \"xxxxxxxxxxxxxx\"\n  }\n}<\/pre>\n\n\n\n<p>To learn more about Video APIs, refer to the following sources:<\/p>\n\n\n\n<ul><li><a href=\"\/developer\/video\/server-api\/\">Basic Understanding &amp; API Authentication<\/a><\/li><li><a href=\"\/developer\/video-api\/server-api\/rooms-route\/\">Create &amp; Manage Meeting Rooms<\/a><\/li><\/ul>\n\n\n\n<a name=\"create-meeting-url\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>2. Create Meeting URL<\/h3>\n\n\n\n<p>The video meeting taking place in a meeting room can be accessed easily through the Meeting URL. This Meeting URL is used as a source URL in the IFRAME Embed Code.<\/p>\n\n\n\n<p>The Meeting URL (see Example 5) comprises two key components: Room ID and Domain.<\/p>\n\n\n\n<p><strong>Example 5<\/strong>:<strong> Meeting URLs<\/strong><\/p>\n\n\n\n<pre id=\"block-a9009c33-1ada-4fdf-afb9-c2f0e8748520\" class=\"wp-block-preformatted\">https:\/\/your-subdomain.host-domain\/#ROOM_ID#<\/pre>\n\n\n\n<p>Platform requires unique Room IDs for both Participants and Moderators. They can join the Video Meeting with their respective unique Meeting URLs.<\/p>\n\n\n\n<ul><li><strong>Participant Meeting URL<\/strong><ul><li>For Embed Lite &#8211; 4 Participant UI Layout<ul><li><code>https\/\/your-subdomain.yourvideo.app\/#ROOM_ID#<\/code><\/li><\/ul><\/li><li>For Embed Premium &#8211; 12 Participant UI Layout<ul><li><code>https\/\/your-subdomain.yourvideo.live\/#ROOM_ID#<\/code><\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<ul id=\"block-b2b5a51b-f729-4a64-aecd-6135fd4055d1\"><li><strong>Moderator Meeting URL<\/strong><ul><li>For Embed Lite &#8211; 4 Participant UI Layout<ul><li><code>https\/\/your-subdomain.yourvideo.app\/host\/#HASH<\/code>*<code>#<\/code><\/li><\/ul><\/li><li>For Embed Premium &#8211; 12 Participant UI Layout<ul><li><code>https\/\/your-subdomain.yourvideo.live\/host\/#<code>HASH<\/code><\/code>*<code>#<\/code><\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Here <code>#HASH<\/code>*<code>#<\/code> is a base64 encoded string with <code>ROOM ID<\/code> and <code>APP ID<\/code> (APP ID is generated when you create a Project. Use \u201c-\u201d (Dash) as a separator, e.g. <code>base64 encode (\"ROOM_ID\"-\"APP_ID\")<\/code>.<\/p>\n\n\n\n<p>A Moderator has the following special privileges in a Video Room:<\/p>\n\n\n\n<ul><li>Lock Room<\/li><li>Record<\/li><li>Live Streaming<\/li><li>Mute Room<\/li><li>Hard Mute Participants<\/li><li>Disconnect Participant<\/li><li>Control Participants Entry<\/li><li>Close Conference<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Video Embed URL has embedded Room-ID for Virtual Sessions. Your Application&#8217;s business logic and workflow might need many rooms to meet your requirement. Know how you create more rooms of different kind and how to embed them into your EMBED URL to get connected to different Virtual Rooms. A Video conferencing session takes place in the Meeting Room hosted on the Platform server. A Room is a virtual meeting space&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2363,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"Video Embed URL has embedded Room-ID for Virtual Sessions. Your Application&#8217;s business logic and workflow might need many rooms to meet your requirement. Know how you create more rooms of different kind and how to embed them into your EMBED URL to get connected to different Virtual Rooms. A Video conferencing session takes place in&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4708"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4708"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4708\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/2363"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}