Underdog Protocol
  • API Documentation
  • Quickstart
  • Guides
    • Postman
    • Endpoints
    • Authentication
    • Pagination
    • Errors
    • Webhooks
    • Architecture
  • Resources
    • Projects
      • Transferable Projects
      • Non-Transferable Projects
      • NFTs
        • List all NFTs
        • Search NFTs
        • Create an NFT
        • Retrieve an NFT
        • Update an NFT
        • Generate Claim Link
        • Revoke an NFT
        • Burn an NFT
      • Methods
        • List all Projects
        • Create a Project
        • Retrieve a Project
        • Update a Project
        • Retrieve Project Stats
    • NFTs
      • Retrieve an NFT
      • Generate Claim Transaction
    • Orgs
      • List all Orgs
    • Transactions
      • List all Transactions
      • Retrieve a Transaction
    • Webhooks
      • List all Webhooks
      • Create a Webhook
      • Delete a Webhook
    • V1
      • Collections
        • List all Collections
        • Create a Collection
        • Retrieve a Collection
      • NFTs
        • List all NFTs
        • Create an NFT
        • Retrieve an NFT
        • Update an NFT
      • Managed NFTs
        • Claim
        • Revoke
  • Examples
    • Zapier Integrations
      • Zapier + Viral Loops
      • Zapier + Github + OpenAI
      • Zapier + Github
      • Zapier + Mailchimp
      • Zapier + Shopify
      • Zapier + Calendly
      • Zapier + Hubspot
      • Zapier + Typeform
    • Underdog with Airtable
      • Create a Project
      • Create NFT on Form Submission
      • Send a Claim Link
      • Updating NFTs
    • Web3 Blog
    • Mint NFTs on iPhone
  • Use Cases
    • Solana Mobile
    • Parcl
Powered by GitBook
On this page
  1. Examples
  2. Underdog with Airtable

Send a Claim Link

PreviousCreate NFT on Form SubmissionNextUpdating NFTs

Last updated 2 years ago

With our first automation creating an NFT in our Collection set up, we can now create a second automation to send the claim link.

Creating an NFT with the Underdog API runs asynchronously as a Transaction. Once that Transaction completes, we can get the claim link for the NFT and send the email.

Prerequisites

There is no need for a webhook. You will only need to know your PROJECTId to generate the nft claim link. This is because of the way we have created our NFT architecture.

Here's an example script that you can run

const response = await fetch (
'https://dev.underdogprotocol.com/v2/projects/n/1/nfts/1/claim', { 
headers: {'Authorization': 'Bearer b4e9ee1d2420d0.ec947c3bfd2049059d3962e74be1959c'}
})