> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# Conference

## Methods

### add

Creates a new [Endpoint](/api-reference/voxengine/endpoint) instance and adds it to the specified conference. ***IMPORTANT!*** You can only use this function for a conference with the “video conference” option checked in the routing rule.
Otherwise, you receive the `ConferenceEvents.ConferenceError` event with code **102**. The maximum number of endpoints is **100**.

```ts
add(parameters: EndpointParameters): Endpoint
```

**Parameters**

### addEventListener

Adds a handler for the specified [ConferenceEvents](/api-reference/voxengine/conference-events) event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.

```ts
addEventListener(event: ConferenceEvents | T, callback: (event: _ConferenceEvents[T]) => any): void
```

**Parameters**

### get

Gets the endpoint by the id.

```ts
get(id: string): Endpoint
```

**Parameters**

### getList

Gets the endpoint list for current conference.

```ts
getList(): Endpoint[]
```

### id

Returns the conference's id.

```ts
id(): string
```

### removeEventListener

Removes a handler for the specified [ConferenceEvents](/api-reference/voxengine/conference-events) event.

```ts
removeEventListener(event: ConferenceEvents | T, callback?: (event: _ConferenceEvents[T]) => any): void
```

**Parameters**

### sendMediaTo

Starts sending media (voice and video) from the conference to the media unit.

```ts
sendMediaTo(mediaUnit: VoxMediaUnit, parameters?: SendMediaParameters): void
```

**Parameters**

### stop

Stops the conference. Triggers the `ConferenceEvents.Stopped` event.

```ts
stop(): void
```

### stopMediaTo

Stops sending media (voice and video) from the conference to the media unit.

```ts
stopMediaTo(mediaUnit: VoxMediaUnit): void
```

**Parameters**