GET
/
2022-06-09
/
collections
/
{collectionId}
/
templates
curl --request GET \
  --url https://staging.crossmint.com/api/2022-06-09/collections/{collectionId}/templates \
  --header 'X-API-KEY: <api-key>'
[
  {
    "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

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 intitial request. Example: your-custom-identifer

Query Parameters

page
number
required

The page number you want to query, starting at 1

perPage
number

How many items you want to be returned in the page.

Response

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