# Create NFT on Form Submission

<figure><img src="/files/2GVcauwQjL8XdSYzhUxt" alt=""><figcaption></figcaption></figure>

In this section, we'll walk through how to create an NFT with the Underdog API when someone submits the Airtable Form.&#x20;

### Prerequisites

* [ ] Project ID
* [ ] Underdog API Key

### Create an Airtable Form

<figure><img src="/files/6xLgf2Ue4Wz7ebAvW9fH" alt=""><figcaption></figcaption></figure>

We'll be using an Airtable form to collect emails to send claim links for our Managed NFT. We've set up an example Airtable Base and Airtable Form to use as a template. You’ll need to copy and set up the automation below or request access to copy the automation from here.

### Create an NFT on Form Submission

<figure><img src="/files/LoIXWGd3NuFQKCo5uU61" alt=""><figcaption></figcaption></figure>

Get the trigger to When a form is submitted which will kick off the automation when someone submits their email address.&#x20;

In this automation, we'll have two steps:

* A script to POST to the Underdog API and create a Managed NFT.&#x20;
* Update the created record from form submission with the NFT's mint address.&#x20;

Here is an example script you can copy-paste into your Airtable Automation. You'll need to replace the parameters PROJECTid, NFT\_NAME, and NFT\_IMAGE\_URL with your own data and add your Underdog API Key

```
const response = await fetch(

'https://dev.underdogprotocol.com/v2/projects/n/1/nfts' , 
{


method: "POST",
body: JSON.stringify ({
name: "The 1990s", 
image: "https://www.gamespot.com/a/uploads/scale_super/1562/15626911/3501525-remembering1999-movies-tv-promo.jpg",
}), 

headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer b4e9ee1d2420d0.ec947c3bfd2049059d3962e74be1959c'

}

});

const responsejson = await response.json();
output.set("mintAddress", responsejson.mintAddress) 


```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.underdogprotocol.com/examples/underdog-with-airtable/create-nft-on-form-submission.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
