---
title: "Create Template"
method: POST
path: "/2022-06-09/collections/{collectionId}/templates"
tags: ["NFT Templates"]
---

# Create Template

`POST /2022-06-09/collections/{collectionId}/templates`

Create a token template, that NFTs or SFTs may be minted from

**API scope required**: `nfts.create`

## Path parameters

- `collectionId` string, required

## Request body

- CreateTemplateBody
  - `metadata` object — See https://docs.crossmint.com/docs/metadata for more info
    - `name` string — Template name
    - `image` string
    - `description` string
    - `symbol` string — A shorthand identifier for the token (e.g., "MTK"). This is only applicable for SFT Templates on Solana.
  - `onChain` object — Onchain details
    - `tokenId` string — The token ID. Only relevant for SFT (ERC-1155) collections on an EVM chain. Leave empty for NFT/ERC-721 or Solana collections.
  - `supply` object — Supply details
    - `limit` integer — Supply limit, Set to 1 for ERC721.
  - `reuploadLinkedFiles` boolean — Any URLs in the metadata object will be resolved and reuploaded to IPFS [Default: true]

## Response `200`

Success

- TemplateResponse
  - `templateId` string, uuid
  - `metadata` object
    - `name` string
    - `image` string
    - `description` string
    - `symbol` string
  - `onChain` union
    - object
      - `tokenId` integer — TokenId for the token
    - object
      - `mintHash` string — (SFTs Only) Mint hash for SFT if one has been minted already
  - `supply` object
    - `limit` integer
    - `minted` integer

## Other responses

- `400` — Invalid arguments, please make sure you're following the api specification.
- `404` — Not found error.
- `409` — Conflict
- `424` — Failed Dependency
- `503` — Service unavailable

---

[API](https://skmtc.net/crossmint/apis/onramp.md) · [All operations](https://skmtc.net/crossmint/apis/onramp/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crossmint/onramp/revisions/e2143d192130/schema)
