POST
/
v1-alpha1
/
collections
curl --request POST \
  --url https://staging.crossmint.com/api/v1-alpha1/collections \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "args": {
    "candyMachineId": "<string>"
  },
  "chain": "solana",
  "contractType": "candy-machine",
  "metadata": {
    "description": "<string>",
    "imageUrl": "<string>",
    "social": {
      "discord": "<string>",
      "twitter": "<string>"
    },
    "title": "<string>"
  }
}'

This is an alpha API and subject to change.

Authorizations

X-API-KEY
string
headerrequired

Body

application/json
args
object
required
  • Candy Machine

  • EVM

chain
enum<string>
default: solanarequired

Crypto chain your NFT is on

Available options:
solana,
ethereum,
polygon,
bsc
contractType
enum<string>
default: erc-721required

The type of your contract.

Available options:
candy-machine,
erc-721,
erc-1155,
thirdweb-drop
metadata
object
required