# Create Collection

This endpoint allows for creating a collection. This API available only for user access-token integration

## Create Collection

<mark style="color:green;">`POST`</mark> `https://graph.whisk.com/v1/collections`

#### Path Parameters

| Name | Type   | Description            |
| ---- | ------ | ---------------------- |
| name | string | Name of the collection |

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

```javascript
{
  "id": "97f77cceca5d11e7ae7e42010a9a0035",
  "name": "My collection"
}
```

{% endtab %}
{% endtabs %}

### Sample Request

```bash
curl "https://graph.whisk.com/v1/collections" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <Access-Token>" \
  -d '{
    "name": "My collection"
  }'
```
