# List of end points

## Create event

<mark style="color:green;">`POST`</mark> `http://admin.corsotorino.com/api/v1/coffee_machines/:coffee_machine_token/events`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name                  | Type   | Description                 |
| --------------------- | ------ | --------------------------- |
| coffe\_machine\_token | string | token of the coffee machine |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name        | Type   | Description                          |
| ----------- | ------ | ------------------------------------ |
| event\_type | string | The type of event you want to create |

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

```
{
    "message": "event created"
}
```

{% endtab %}
{% endtabs %}
