Create a collection that you can mint NFTs/SFTs from
API scope required: collections.create
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/collections/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"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"
},
"fungibility": "non-fungible",
"transferable": true,
"supplyLimit": 123,
"payments": {
"price": "<string>",
"recipientAddress": "<string>",
"currency": "<string>"
},
"subscription": {
"enabled": false
},
"reuploadLinkedFiles": true
}'
{
"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",
"subscription": {
"enabled": true
}
}
Obtained in the Crossmint developer console
Success.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/collections/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"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"
},
"fungibility": "non-fungible",
"transferable": true,
"supplyLimit": 123,
"payments": {
"price": "<string>",
"recipientAddress": "<string>",
"currency": "<string>"
},
"subscription": {
"enabled": false
},
"reuploadLinkedFiles": true
}'
{
"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",
"subscription": {
"enabled": true
}
}