How to create a video chat room with one API call using Daily.co
Tags: api, tutorial, video
Published: 2020-10-19 23:41:16

---
title: How to create a video chat room with one API call using Daily.co
published: true
date: 2020-10-16 03:32:50 UTC
tags: API,Tutorial,Video,tutorial
canonical_url: https://maxkatz.org/2020/10/15/how-to-create-a-video-chat-room-with-one-api-call-using-daily-co/
---

[Daily.co](http://daily.co) is a service that allows developers to add video chat to an application or a web site quickly. There are many uses cases for Daily service. For example, you are building a customer service application and would like to add a built-in video feature. Another use case is for [telemedicine](https://en.wikipedia.org/wiki/Telehealth) type applications such as when a patient and doctor would like to do a video session (Dialy is HIPPA compliant).

There are two main ways to create a video chat room with Daily:

1. Create a video chat room with [Daily API](https://docs.daily.co/docs)
2. Create a video chat room from a dashboard

Once you created a video chat room, you can click on its link to open it in a web browser. You can also embed it in an application or a web site. There are also many options to customize the room such as setting the maximum number of participants, if the text chat is enabled and others.

In this blog post you will learn how to create a room with an API call and also via a Daily dashboard.

## Create a video chat room with Daily API

To create a new video room with a custom name (my-video-room) make a call to [/rooms](https://docs.daily.co/reference#create-room) endpoint:

```
curl --request POST \ --url https://api.daily.co/v1/rooms \ --header 'authorization: Bearer api-key' \ --header 'content-type: application/json' \ --data '{"name":"my-super-room"}'
```

If you don’t specify a room name, a random room name will be generated.

The response looks like this:

```
{ "id":"f223c53e-ee55-4cea-a6ed-d9d21cb608fd" "name":"my-super-room" "api_created":true "privacy":"public" "url":"https://maxkatz.daily.co/my-super-room" "created_at":"2020-10-15T20:02:47.511Z" "config":{}}
```

You can take the URL and open it in a web browser and the meeting will start. You can invite other people to join you.

[![](https://katzmax.files.wordpress.com/2020/10/dailyco-video-room.png)](https://katzmax.files.wordpress.com/2020/10/dailyco-video-room.png)<figcaption>Daily video chat room</figcaption>

Next I’m going to show you to create a video room using the Daily dashboard.

## Create a video chat room from a dashboard

Using the Daily dashboard is perhaps even simpler.

From Daily dashboard main page click _Rooms_ and then _Create room_ button.

[![](https://katzmax.files.wordpress.com/2020/10/dailyco-dashboard.png?w=1024)](https://katzmax.files.wordpress.com/2020/10/dailyco-dashboard.png)

In the next step you can enter a room name and other settings, click _Create room_ to see the following confirmation popup:

[![](https://katzmax.files.wordpress.com/2020/10/dailyco-dashboard-2.png?w=1024)](https://katzmax.files.wordpress.com/2020/10/dailyco-dashboard-2.png)

After you click _Create room_, you will see the newly created room listed:

[![](https://katzmax.files.wordpress.com/2020/10/dailyco-roomlist.png?w=1024)](https://katzmax.files.wordpress.com/2020/10/dailyco-roomlist.png)

You can click on the room name to see its details and settings. You can also click the 3-dot menu and copy the room link. Paste the link into a browser address bar and that’s it!

Daily provides powerful, yet simple and elegant API to create video chat rooms that you can embed into other applications. Definitely give it a try. In a future blog post I will show how to integrate Daily with [Parabola](http://parabola.io) via a webhook.