# Link

## create

<mark style="color:green;">`POST`</mark> `https://api.makeshorter.com/v1/link/create`

This endpoint allows you to create new short link.

#### Request Body

| Name      | Type   | Description                                                                                             |
| --------- | ------ | ------------------------------------------------------------------------------------------------------- |
| longUrl   | string | long url to redirect                                                                                    |
| title     | string | link title to identify. no need to be unique.                                                           |
| domain    | string | if you have custom domains, you can set what domain will be given.                                      |
| linkGroup | string | if you have link groups, you can set name of link group and new link will be member of this link group. |
| password  | string | enable password protection if your license package contains.                                            |

{% tabs %}
{% tab title="200 Link successfuly is created" %}

```
{    
    "isSuccess": true,    
    "message": "Success Message",    
    "data": "https://mnts.ws/123456"
}
```

{% endtab %}

{% tab title="400 Request gets error." %}

```
{    
    "isSuccess": false,    
    "message": "Error Message",    
    "data": null
}
```

{% endtab %}
{% endtabs %}
