---
updatedAt: 2025-07-15T16:26:42.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# REST API Integration

# Rest API Integration Architecture

The easiest way to access Kaleyra video calls is through the REST API. The following diagram represents a basic integration flow and the section following the diagram elaborates on the flow:

<Image align="center" width="740px" src="https://files.readme.io/7b98431-image.png" />

## 1. Create Room

A back-end service calls the API, ***POST /v2/rooms*** (or *POST /room/create* if using V1 APIs), including the user IDs of the required participants in the request payload.

To view the API reference, see [Create Room](https://developers.kaleyra.io/reference/video-v2-room-post).

Here is an example for your reference:

```json REST V2
{
  "participants": [
    {
      "user_id": "user_xxx",
      "is_admin": true
    },
    {
      "user_id": "user_yyy",
      "tools": {
        "chat": true
      }
    }
  ],
  "description": "A textual description of the room created"
}
```
```json REST V1
{
  "participants": [
    {
      "user_id": "user_xxx",
      "is_admin": true
    },
    {
      "user_id": "user_yyy",
      "tools": {
        "chat": true
      }
    }
  ],
  "description": "A textual description of the room created"
}
```

The response contains the links to access the room that has just been created. Each participant is assigned a different link, contained in the `url` parameter.

```json REST V2
{
  "id": "room_xyz",
  ...
  "participants": [
    {
      "user_id": "usr_xxx",
      "url": "https://sandbox.bandyer.com/eu/rest-call-handler/aaaaaaaaaa",
      "is_admin": true,
      "tools": {
        ...
        }
      }
    },
    {
      "user_id": "usr_yyy",
      "url": "https://sandbox.bandyer.com/eu/rest-call-handler/bbbbbbbbbb",
      "is_admin": false,
      "tools": {
        "chat": true,
   			...
        }
      }
    }
  ]
}
```
```json REST V1
{
    "room": {
        "room_id": "room_xyz",
        ...,
        "user_urls": [
            {
                "user": "usr_xxx",
                "url": "https://sandbox.bandyer.com/connect/direct-rest-call-handler/aaaaaaaaaa",
                "tools": {
                    ...
                    },
                "is_admin": true
            },
            {
                "user": "usr_yyy",
                "url": "https://sandbox.bandyer.com/connect/direct-rest-call-handler/bbbbbbbbbb",
                "tools": {
                    ...
                    },
                "is_admin": false
            }
        ]
    }
}

```

## 2. Send Room Links

The links can be shared with participants in many ways, for example via [email](https://developers.kaleyra.io/docs/email_overview), [SMS](https://developers.kaleyra.io/docs/sms-api), or [WhatsApp](https://developers.kaleyra.io/docs/whatsapp-api).

## 3. Join Room

By clicking the link users can join the room from their own browsers.