/api/v0
API reference
Base path /api/v0. Send Authorization: Bearer nftport_live_… on every write. Reads answer without a key. The console issues one for you.
- GET
Service
/api/v0/
Ledger heartbeat: counts, chains, and version.
Auth: none
- GET
List NFTs
/api/v0/nfts?limit=12
Newest tokens. Filter with chain, contract, owner, or q.
Auth: optional
- GET
Search
/api/v0/search?q=harbor
Match name, description, collection, or trait text.
Auth: optional
- GET
Account NFTs
/api/v0/accounts/{address}
Everything a wallet currently holds on the sandbox ledger.
Auth: optional
- GET
Token
/api/v0/nfts/{contract}/{tokenId}
Metadata, owner, and transfer history for one token.
Auth: optional
- GET
Collection NFTs
/api/v0/nfts/{contract}?chain=ethereum&include=metadata
Every token in a contract, the call shown on the homepage.
Auth: optional
- GET
Contracts
/api/v0/contracts
Collections on Ethereum, Polygon, and Base, with supply.
Auth: optional
- POST
Deploy collection
/api/v0/contracts
Stand up an ERC-721 style collection and get a contract address back.
Auth: required
{ "chain": "base", "name": "Afternoon Edition", "symbol": "AFTN", "description": "A small run, numbered as it mints.", "royalty_bps": 500, "max_supply": 50 } - POST
Easy mint
/api/v0/mints
Mint into Open Mint, or pass contract_address to mint into your collection.
Auth: required
{ "chain": "polygon", "name": "First mark", "description": "Minted from the NFTPort console.", "art_seed": "first-mark", "traits": [ { "trait_type": "Edition", "value": "1" }, { "trait_type": "Surface", "value": "Chalk" } ] } - POST
Easy mint from URL
/api/v0/mints/easy/urls
The homepage call. file_url is stored as the token image. mint_to_address receives it.
Auth: required
{ "chain": "ethereum", "name": "Space Shipping", "description": "Spaceship on Mars", "file_url": "https://ipfs.io/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi", "mint_to_address": "0x7d37df9120a8ca68c7bbdb31845d867758272204" } - POST
Counterfeit check
/api/v0/duplicates/tokens
Find other ledger tokens with the same name or collection.
Auth: required
{ "chain": "ethereum", "contract_address": "0xc3ceab342c392326310f9e6931b87929ba4cf102", "token_id": "1" } - POST
Transfer
/api/v0/mints/transfers
The Unity SDK call. Moves a token and keeps the history.
Auth: required
{ "chain": "ethereum", "contract_address": "0xc3ceab342c392326310f9e6931b87929ba4cf102", "token_id": "1", "transfer_to_address": "0x7d37df9120a8ca68c7bbdb31845d867758272204" } - POST
Upload file
/api/v0/files
Content-address a file. The same bytes always return the same CID.
Auth: required
{ "name": "note.txt", "text": "Held by NFTPort." } - GET
Transaction
/api/v0/transactions/{hash}
Mint, transfer, or contract deploy receipt.
Auth: optional
Errors
Failures return response: "NOK" and error.message. 401 means the key is missing, unknown, or revoked. 404 means that token, contract, file, or transaction is not on this ledger.