Create a room

Using this method you will be able to create a conversation

Create a room

POST https://api.imber.live/room/

This endpoint allows you to create a room.

Headers

NameTypeDescription

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

NameTypeDescription

workSpace

string

ID of workspace

contact

string

ID of user that started this conversation

status

number

Status of conversation (Described in table below)

type

number

Conversation type (Described in table below)

{
    "success": true,
    "data": {
        "unread": {
            "contact": 0,
            "member": 0
        },
        "assigned": [],
        "isLocked": false,
        "mentions": [],
        "_id": "600f19bc1d1a6c65a3915e4b",
        "workSpace": "5f00a44d8e844b5a746f90b3",
        "user": "600f19aeaef265f3e3e6f53a",
        "status": 0,
        "type": 1,
        "organization": "5f00a44d8e844b5a746f90b1",
        "createdAt": "2021-01-25T19:19:24.968Z",
        "updatedAt": "2021-01-25T19:19:24.968Z",
        "__v": 0
    }
}

Status

Number

Description

0

Incoming

1

Accepted

2

Resolved

3

Suspended

4

Transfered

Type

Number

Description

0

Start from user

1

Start from user with trigger

2

Start from operator

3

Bot included

Last updated