> For the complete documentation index, see [llms.txt](https://docs.patascore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patascore.com/financial-education/subscribe-customer-to-a-module/subscribe-to-websocket.md).

# Subscribe to Websocket

## Get Cakes

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/ws`

This endpoint allows you to get free cakes.

#### Query Parameters

| Name       | Type   | Description              |
| ---------- | ------ | ------------------------ |
| identifier | string | Customer Identifier UUID |

#### Headers

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

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}
