v1
latestOpenAPI 3.0.12026-07-2699111970.1 KBNFT Collections
Create Collection with ID
Create a collection that you can mint NFTs/SFTs from. This API is idempotent, if you call it multiple times with the same ID, only one will be created.
API scope required: collections.create
put/2022-06-09/collections/{collectionId}
Path parameters
collectionIdstring required
This is the identifier for the collection related to the request. Every project has default collections: default-solana and default-polygon.
The create-collection API will result in collections with UUID formatted collectionId. Example: 9c82ef99-617f-497d-9abb-fd355291681b
The create-collection-idempotent API allows you to specify an arbitrary identifier during the initial request. Example: your-custom-identifier
Request body
Example request
{
"chain": "polygon",
"metadata": {
"name": "Sample NFT Collection",
"imageUrl": "https://www.crossmint.com/assets/crossmint/logo.png",
"description": "This is a sample NFT collection",
"symbol": "TOKEN"
}
}Response
Success.
Example response
{
"id": "5263650e-6d43-4ed3-9e31-0cf593d076a4",
"metadata": {
"name": "Sample NFT Collection",
"description": "This is a sample NFT collection",
"imageUrl": "https://www.crossmint.com/assets/crossmint/logo.png",
"symbol": "TOKEN"
},
"fungibility": "non-fungible",
"onChain": {
"chain": "polygon",
"type": "erc-721"
},
"actionId": "5263650e-6d43-4ed3-9e31-0cf593d076a4"
}