> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Collection (Idempotent)

> Create a new collection with specified ID, which you can mint NFTs from

Replace:

* `<QUICKNODE_URL>`: Set to your own quicknode RPC URL
* `<collectionSlug>`: the slug for your collection, which will serve as its ID

```curl theme={null}
curl -i '<QUICKNODE_URL>' -X POST -H 'content-type: application/json' --data-binary '{
    "jsonrpc": "2.0",
    "method": "cm_createNamedCollection",
    "params": [
        "solana",
        "<collectionSlug>",
        {
            "name": "Party Favors",
            "description":"NFTs I'm giving out as party favors",
            "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/5/50/Congrats_bqt.jpg"
        }
    ]
}'
```

## Parameters

| Index | Name           | Type   | Description                                                                           |
| :---- | :------------- | :----- | :------------------------------------------------------------------------------------ |
| 0     | chain          | string | chain - currently only "solana" and "polygon" are supported through this RPC method   |
| 1     | collectionSlug | string | the slug which serves as the ID for your named collection                             |
| 2     | metadata       | object | An object containing required fields "name", "description", and optionally "imageUrl" |

## Returns

```json theme={null}
{
    "id": "<collectionId>",
    "metadata": {
        "name": "my collection name",
        "description": "my collection description",
        "imageUrl": "https://www.crossmint.com/api/2022-06-09/media/defaultCollectionImage"
    },
    "onChain": {
        "chain": "solana",
        "type": "metaplex-certified-collection"
    }
}
```
