> For the complete documentation index, see [llms.txt](https://smallen.gitbook.io/smallen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smallen.gitbook.io/smallen/master.md).

# Shorten URL

## Shorten URL

<mark style="color:green;">`POST`</mark> `https://smallen.xyz/api/shorten`

Generate shortened id for your URL

#### Request Body

| Name        | Type   | Description         |
| ----------- | ------ | ------------------- |
| originalUrl | string | URL to be shortened |

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

```
{
    "message": "URL Shortened",
    "id": "oA4G1"
}
```

{% endtab %}
{% endtabs %}
