> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get All Templates

> Get all of the templates for a collection

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




## OpenAPI

````yaml get /2022-06-09/collections/{collectionId}/templates
openapi: 3.0.1
info:
  description: N/A
  version: 1.0.0
  title: NFT Minting
  contact:
    name: Crossmint NFT Minting APIs
    url: https://www.crossmint.com
    email: support@crossmint.com
servers:
  - url: https://staging.crossmint.com/api
    description: Staging environment (testnets)
  - url: https://www.crossmint.com/api
    description: Production environment (mainnets)
security:
  - apiKey: []
paths:
  /2022-06-09/collections/{collectionId}/templates:
    get:
      tags:
        - NFT Templates
      summary: Get All Templates
      description: |
        Get all of the templates for a collection

        **API scope required**: `nfts.read`
      operationId: get-all-templates
      parameters:
        - $ref: '#/components/parameters/collectionId'
        - $ref: '#/components/parameters/page'
        - $ref: '#/components/parameters/perPage'
      responses:
        '200':
          description: success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TemplateResponse'
        '400':
          description: >-
            Invalid arguments, please make sure you're following the api
            specification.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Response'
        '403':
          description: Forbidden error, please ensure the credentials are correct.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Response'
        '404':
          description: Not found error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Response'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/503Response'
components:
  parameters:
    collectionId:
      name: collectionId
      in: path
      description: >
        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-reference/minting/collection/create-collection)
        API will result in collections with UUID formatted `collectionId`. 

        **Example:** `9c82ef99-617f-497d-9abb-fd355291681b`


        The
        [create-collection-idempotent](/api-reference/minting/collection/create-collection-idempotent)
        API allows you to specify an arbitrary identifier during the initial
        request.

        **Example:** `your-custom-identifier`
      required: true
      example: default-solana
      schema:
        type: string
    page:
      name: page
      in: query
      description: The page number you want to query, starting at 1
      required: true
      example: 1
      schema:
        type: number
    perPage:
      name: perPage
      in: query
      description: How many items you want to be returned in the page.
      schema:
        type: number
        example: 20
  schemas:
    TemplateResponse:
      type: object
      properties:
        templateId:
          type: string
          format: uuid
          example: 20ed0963-0185-49af-b4a0-2de3169bb367
        metadata:
          type: object
          properties:
            name:
              type: string
              example: My Token
            image:
              type: string
              example: ipfs://QmaToZn4VEjF7q4CAudPaNka6AD484xuuEZSXmTLJPDLVE
            description:
              type: string
              example: Sample Token Template
            symbol:
              type: string
              example: A shorthand identifier for the token (Solana only)
        onChain:
          oneOf:
            - title: EVM
              type: object
              properties:
                tokenId:
                  type: integer
                  description: TokenId for the token
                  example: 1
            - title: Solana
              type: object
              properties:
                mintHash:
                  type: string
                  description: (SFTs Only) Mint hash for SFT if one has been minted already
        supply:
          type: object
          properties:
            limit:
              type: integer
              example: 1
            minted:
              type: integer
              example: 0
    400Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Invalid arguments or empty parameter <missing parameter>.
    403Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Malformed API key. / API key provided doesn't have required scopes.
    404Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Not found
    503Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: >-
            Please try again in a few minutes. If the issue still persists,
            contact Crossmint support.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Obtained in the Crossmint developer console

````