Fetch Templates

Link The Forge App to your NFT Management Platform to access your templates.

Fetch All Templates

URL

To fetch all the templates on your NFT Management Platform, use /smartAssetTemplate.

GET - https://{url}/smartAssetTemplate

Return Payload

[
    {
        "attributes": [
            {
                "field": "%serialnumber%",
                "label": "Serial number",
                "freeEntry": false,
                "required": true,
                "type": "text",
                "options": []
            },
            {
                "field": "%casenumber%",
                "label": "Case number",
                "freeEntry": false,
                "required": true,
                "type": "text",
                "options": []
            },
            {
                "field": "%diameter%",
                "label": "Diameter",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "42mm",
                        "value": "42mm"
                    },
                    {
                        "label": "44mm",
                        "value": "44mm"
                    }
                ]
            },
            {
                "field": "%caseMaterial%",
                "label": "Case material",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "Or rose 18k",
                        "value": "Or rose 18k"
                    },
                    {
                        "label": "Or jaune 18k",
                        "value": "Or jaune 18k"
                    }
                ]
            },
            {
                "field": "%aiguilleMaterial%",
                "label": "Needle material",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "Or rose 24k",
                        "value": "Or rose 24k"
                    },
                    {
                        "label": "Or jaune 24k",
                        "value": "Or jaune 24k"
                    }
                ]
            }
        ],
        "_id": "63a5cfee94ea7835457d5800",
        "deleted": false,
        "blockchainProperties": {
            "isTransferable": true,
            "showTransferableOption": true
        },
        "metadata": {
            "name": "Product name",
            "icon": "https://www.arianee.com/content/ap/com/products/watches/importer/watch.png.transform.appdpmain.png"
        },
        "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"language\": \"fr-FR\",\n  \"name\": \"ROYAL OAK GRANDE COMPLICATION SQUELETTE\",\n  \"category\": \"accessory\",\n  \"subCategory\": \"watch\",\n  \"serialnumber\": [\n    {\n      \"type\": \"serialnumber\",\n      \"value\": \"%serialnumber%\"\n    },\n    {\n      \"type\": \"casenumber\",\n      \"value\": \"%casenumber%\"\n    }\n  ],\n  \"model\": \"Royal Oak\",\n  \"description\": \"\\nCombinant les 3 catรฉgories de complications horlogรจres (mesure des temps courts, mรฉcanismes de sonnerie et indications astronomiques), ce modรจle entraรฎnรฉ par le calibre %calibre% a รฉtรฉ entiรจrement fabriquรฉ ร  la main par un seul et mรชme maรฎtre-horloger de lโ€™atelier Grandes Complications Audemars Piguet.\\n\\nBoรฎte de %diameter% en %caseMaterial% avec lunette acier, glace et fond saphir, couronne vissรฉe\\n\\nCadran saphir, compteurs fumรฉs, aiguilles Royal Oak en %aiguilleMaterial% avec dรฉpรดt luminescent, aiguilles compteurs/seconde/rattrapante blanches, rรฉhaut noir avec minuterie blanche, mouvement couleur ardoise.\",\n  \"externalContents\": [\n    {\n      \"type\": \"website\",\n      \"title\": \"Audemars Piguet Website\",\n      \"url\": \"https://www.audemarspiguet.com/com/fr/home.html\"\n    }\n  ],\n  \"medias\": [\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"brandItemBackgroundPicture\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeaturedcase.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeatureddial.png\"\n    }\n  ]\n}",
        "__v": 0,
        "id": "63a5cfee94ea7835457d5800"
    }
]

Fetch a Template

URL

To fetch a specific template, use /smartAssetTemplate/:id.

GET - https://{url}/smartAssetTemplate/{id}

Return Payload

{
  "attributes": [
    {
      "field": "%serialnumber%",
      "label": "Serial number",
      "freeEntry": false,
      "required": true,
      "type": "text",
      "options": []
    }
  ],
  "_id": "string",
  "deleted": true,
  "blockchainProperties": {
    "isTransferable": true,
    "showTransferableOption": true
  },
  "metadata": {
    "name": "Product name",
    "icon": "https://www.arianee.com/content/dam/ap/com/products/watches/importer/watch.png.appdpmain.png"
  },
  "content": "string",
  "__v": 0,
  "id": "string"
}