This endpoint first looks for available NFT(s) that have been minted to send first. If there are none the endpoint will mint the NFT(s) from an NFT Template and send an email to the recipient.

The recipient can redeem the NFT on the Momint Marketplace by following the instructions in the email.

Note that if you have hit the maximum NFTs to be minted for the template this endpoint will fail.

REQUEST


TYPE: POST

ENDPOINT: https://api.momint.so/templates/{{templateId}}/send/next-available

TEST LINK: https://api.momint.so/api-docs/#/Templates/Send

BODY


{
	"email": "[email protected]"
	"editions": 2
}

SUCCESS RESPONSES


200 Response

This happens when there is an available NFT to send and immediately sends an email and returns the following

{
  "templateId": "nt_637b3df57caac546397991ad",
  "sent": 1,
  "minting": 0,
  "email": "[email protected]",
  "remaining": 99
}