Skip to content
Building with Underdog Protocol🐶

icon picker
Code Snippets

You can interact with our API and do this using our docs below

Common Code Snippets


Creating Compressed Project (Collection)

url --request POST \ --url https://dev.underdogprotocol.com/v2/projects \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "transferable": false, "compressed": true, "image": "https://upload.wikimedia.org/wikipedia/en/6/63/Feels_good_man.jpg", "name": "The Good Life", "symbol": "GLIFE", "description": "I minted this NFT with the Underdog API" } '

Mint NFT into Project (Collection)

Value must be 't' for transferable, 'n' for non-transferable, or 'c' for compressed
curl --request POST \ --url https://dev.underdogprotocol.com/v2/projects/c/8/nfts \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "upsert": false, "name": "Good Life ", "description": "the good life", "image": "https://upload.wikimedia.org/wikipedia/en/6/63/Feels_good_man.jpg" } '

Update NFT in Project

curl --request PUT \ --url https://dev.underdogprotocol.com/v2/projects/c/8/nfts/2 \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "image": "https://api.time.com/wp-content/uploads/2016/10/pepe-the-frog-matt-furie-hate-symbol-racism-anti-defamation-league-4chan.jpg" } '
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.