# API V1

{% hint style="danger" %}
This is the old Api for PlayoutBee up to version 0.9.5 please check API v2 if want to see the latest&#x20;

{% endhint %}

## Play

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/play`

This endpoint will send the Play Command

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

```
```

{% endtab %}
{% endtabs %}

## Pause

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/pause`

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

```
```

{% endtab %}
{% endtabs %}

## Stop

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/stop`

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

```
```

{% endtab %}
{% endtabs %}

## Select Clip

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/select/{ID}`

Select's the&#x20;

#### Path Parameters

| Name | Type    | Description                      |
| ---- | ------- | -------------------------------- |
| ID   | integer | 0 Based id of the Clip to select |

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

```
```

{% endtab %}
{% endtabs %}

## Set Loop

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/loop/{state}`

#### Path Parameters

| Name  | Type   | Description      |
| ----- | ------ | ---------------- |
| state | string | either on or off |

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

```
```

{% endtab %}
{% endtabs %}

## Next

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/api/next`

goes to the next Clip

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

```
```

{% endtab %}
{% endtabs %}

## Get Clips

<mark style="color:blue;">`GET`</mark> `http://playoutbee:3000/api/clips`

returns a list of all Clips

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

```
[{"name":"Name of file","uri":"location of the file","length":"00:00:09:06},
{"name":"Name of file","uri":"location of the file","length":"00:00:09:06}]
```

{% endtab %}
{% endtabs %}

## Get Player

<mark style="color:blue;">`GET`</mark> `http://playoutbee:3000/api/player`

Get's the Player Object

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

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

```
{"clipID":0,
"status":"stopped",
"loop":false,
"timecode":"00:00:00:00",
"remainingtimecode":9.24,
"preview":false,
"clips":[List of Clips]}
```

{% endtab %}
{% endtabs %}

## Get Current Clip

<mark style="color:blue;">`GET`</mark> `http://playoutbee:3000/api/currentClip`

Gets the current Player Object

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

```
{"name":"Nameofclip.mp4","uri":"location of Clip","length":"00:00:09:06"}
```

{% endtab %}
{% endtabs %}

## upload Video

<mark style="color:green;">`POST`</mark> `http://playoutbee:3000/upload`

uploads a Video and adds it to the playlist

#### Request Body

| Name | Type   | Description        |
| ---- | ------ | ------------------ |
| file | object | the file to Upload |

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

```
```

{% endtab %}
{% endtabs %}
