Retrieve NFT template (token-type)

How to retrieve an NFT token type (template) from one of your contracts.

1. Get NFT template (token-type) by id

Request Endpoint: reference

GET /api/minter/contracts/{contractId}/token-types/{tokenTypeId}
ParameterParam TypeDescriptionData TypeMandatory
{contractId}PathThis is the id of the contract.Integerโœ…
{tokenTypeId}PathThis is the id of the token-type.Integerโœ…

Example Request:

GET https://nft-api.venly.io/api/minter/contracts/203/token-types/1

Response Body:

{
    "id": 1,
    "confirmed": true,
    "name": "Chuck The Rooster",
    "description": "Chuck is a Male Tall Chicken Who is the Leader of The Chicken Siblings. He is Cool, Daring and Wacky. He can be Selfish and Stubborn When it Comes To Challenges, But he is An True Softie when it Comes To His Siblings. In Rebel to the Beak, It revealed that He is Allergic to Monstonuts and In The Good, The Bad and The Clucky, It also Revealed that He Used to Be one Of the Scouts from Slurp,s Little Cowboys Scout Camp along With Finley, Ainta and Hugo. He is the youngest of the three.",
    "image": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
    "imageThumbnail": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
    "imagePreview": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
    "externalUrl": "https://en.wikipedia.org/wiki/Space_Chickens_in_Space",
    "fungible": false,
    "burnable": false,
    "currentSupply": 0,
    "animationUrls": [],
    "attributes": [
        {
            "type": "property",
            "name": "Talent",
            "value": "Leadership"
        },
        {
            "type": "property",
            "name": "Allergic",
            "value": "Monstonuts"
        },
        {
            "type": "property",
            "name": "Hobby",
            "value": "Scouts"
        }
    ],
    "transactionHash": "0x36582ee04ef2b4570f381b59971deb2d2e698fb77724deb193333223119403c4"
}

2. Get all NFT templates (token-types)

Request Endpoint: reference

GET /api/minter/contracts/{contractId}/token-types
ParameterParam TypeDescriptionData TypeMandatory
{contractId}PathThis is the id of the contract.Integerโœ…

Example Request:

GET https://nft-api.venly.io/api/minter/contracts/203/token-types

Response Body:

[
    {
        "id": 1,
        "confirmed": true,
        "name": "Chuck The Rooster",
        "description": "Chuck is a Male Tall Chicken Who is the Leader of The Chicken Siblings. He is Cool, Daring and Wacky. He can be Selfish and Stubborn When it Comes To Challenges, But he is An True Softie when it Comes To His Siblings. In Rebel to the Beak, It revealed that He is Allergic to Monstonuts and In The Good, The Bad and The Clucky, It also Revealed that He Used to Be one Of the Scouts from Slurp,s Little Cowboys Scout Camp along With Finley, Ainta and Hugo. He is the youngest of the three.",
        "fungible": false,
        "burnable": false,
        "externalUrl": "https://en.wikipedia.org/wiki/Space_Chickens_in_Space",
        "backgroundColor": "#eeeeee",
        "image": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "imageThumbnail": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "imagePreview": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "currentSupply": 0,
        "animationUrls": [],
        "attributes": [
            {
                "type": "property",
                "name": "Talent",
                "value": "Leadership"
            },
            {
                "type": "property",
                "name": "Allergic",
                "value": "Monstonuts"
            },
            {
                "type": "property",
                "name": "Hobby",
                "value": "Scouts"
            }
        ],
        "transactionHash": "0x36582ee04ef2b4570f381b59971deb2d2e698fb77724deb193333223119403c4"
    },
    {
        "id": 2,
        "confirmed": true,
        "name": "Barry The Henn",
        "description": "Barry is Chucks older borther of The Chicken Siblings. He is Cool, Daring and Wacky. He can be Selfish and Stubborn When it Comes To Challenges, But he is An True Softie when it Comes To His Siblings. In Rebel to the Beak, It revealed that He is Allergic to Monstonuts and In The Good, The Bad and The Clucky, It also Revealed that He Used to Be one Of the Scouts from Slurp,s Little Cowboys Scout Camp along With Finley, Ainta and Hugo. He is the youngest of the three.",
        "fungible": false,
        "burnable": false,
        "externalUrl": "https://en.wikipedia.org/wiki/Space_Chickens_in_Space",
        "backgroundColor": "#eeeeee",
        "image": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "imageThumbnail": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "imagePreview": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
        "currentSupply": 0,
        "animationUrls": [],
        "attributes": [
            {
                "type": "property",
                "name": "Talent",
                "value": "Leadership"
            },
            {
                "type": "property",
                "name": "Allergic",
                "value": "Monstonuts"
            },
            {
                "type": "property",
                "name": "Hobby",
                "value": "Scouts"
            }
        ],
        "transactionHash": "0x098212ee04ef2b4570f381b59971deb2d2e698fb77724deb193333223119403c4"
    }
]