POST
/
2022-06-09
/
collections
/
{collectionId}
/
templates
curl --request POST \
  --url https://staging.crossmint.com/api/2022-06-09/collections/{collectionId}/templates \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "metadata": {
    "description": "<string>",
    "image": "<string>",
    "name": "<string>"
  },
  "onChain": {
    "tokenId": "1"
  },
  "reuploadLinkedFiles": true,
  "supply": {
    "limit": 10
  }
}'
{
  "metadata": {
    "description": "Sample Token Template",
    "image": "https://cdn.io/image.png",
    "name": "My Token"
  },
  "onChain": {
    "tokenId": 1
  },
  "supply": {
    "limit": 1,
    "minted": 123
  },
  "templateId": "20ed0963-0185-49af-b4a0-2de3169bb367"
}

Authorizations

X-API-KEY
string
headerrequired

Obtained in the Crossmint developer console

Path Parameters

collectionId
string
required

The ID of the named collection, used to create new tokens

Body

application/json
metadata
object

See https://docs.crossmint.com/docs/metadata for more info

onChain
object

On-chain details

reuploadLinkedFiles
boolean

Any URLs in the metadata object will be resolved and reuploaded to IPFS [Default: true]

supply
object

Supply details

Response

200 - application/json
metadata
object
onChain
object
supply
object
templateId
string