# Webhook API - Livecast - beta

기능개발시 필요에 따라 리모트몬스터로부터 특정 정보를 받을 필요가 종종 생깁니다. 리모트몬스터는 이를 Webhook 형태로 제공하고 있습니다. 호출 받고자하는 Webhook 주소는 아래를 참고하여 설정합니다.

{% content-ref url="broken-reference" %}
[Broken link](https://docs.remotemonster.com/api/broken-reference)
{% endcontent-ref %}

## &#x20;record done

<mark style="color:green;">`POST`</mark> `https://YOUR_DOMAIN.COM/SLUG/`&#x20;

&#x20;녹화가 완료되면 아래와 같이 JSON 몸체와 함께 POST를 호출 합니다.&#x20;

#### Request Body

| Name      | Type   | Description        |
| --------- | ------ | ------------------ |
| id        | string | 녹화가 진행된 Channel Id |
| url       | string | 녹화된 파일의 URL        |
| duration  | string | 녹화된 시간             |
| filesize  | string | 녹화된 파일의 크기(Byte)   |
| thumbnail | string | 녹화된 파일의 썸네일 URL    |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

자세한 내용은 아래를 확인하세요.

{% content-ref url="../common/record" %}
[record](https://docs.remotemonster.com/common/record)
{% endcontent-ref %}

## &#x20;channel create, close

<mark style="color:blue;">`GET`</mark> `https://YOUR_DOMAIN.COM/SLUG/`&#x20;

&#x20;방송이 종료되면 아래와 같이 해당하는 값을 Query로 호출합니다.&#x20;

#### Query Parameters

| Name   | Type   | Description       |
| ------ | ------ | ----------------- |
| action | string | close \|\| create |
| chid   | string | Channel Id        |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
