# Your Polygon contracts

### Set your API key

In your workspace, click on **Collections.** Then, click on the Real Items API fork that you had created.

<figure><img src="https://1758113423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyeqcffMTFbEF6WShgCpU%2Fuploads%2FpDKqlrFr8qoggItBYT59%2Fimage.png?alt=media&#x26;token=3111cc27-0961-42d0-9075-9995ec81373b" alt=""><figcaption></figcaption></figure>

The collection configuration page will appear. To set your API key, click on the **Variables** tab. Under the **CURRENT VALUE** column, replace `YOUR_API_KEY` with your API key.&#x20;

**Make sure to click Save afterwards.**

<figure><img src="https://1758113423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyeqcffMTFbEF6WShgCpU%2Fuploads%2FY8m6hqtRRP8Xtm2d5tby%2Fimage.png?alt=media&#x26;token=42a1e2df-5c6c-4f2f-9079-9b8bf69fc449" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You can also set your API key under the **INITIAL VALUE** column. Note that doing so will possibly expose your API key if you share the collection with your team.
{% endhint %}

### Get your testnet contract ID

Your account is associated with two smart contracts:

* A Real Items ERC721 smart contract deployed on Polygon (mainnet contract)
* A Real Items ERC721 smart contract deployed on Polygon Mumbai (testnet contract)

For this guide, we will be minting an Item using your testnet contract. Navigate to the **listContracts** query in your workspace.

<figure><img src="https://1758113423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyeqcffMTFbEF6WShgCpU%2Fuploads%2FyyizFLa9SoCGnClLY2Ao%2Fimage.png?alt=media&#x26;token=82e2b312-f70a-4d58-bbe8-87515897e682" alt=""><figcaption></figcaption></figure>

Click the **Send** button to run the request.

<figure><img src="https://1758113423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyeqcffMTFbEF6WShgCpU%2Fuploads%2FmeDLazSF1kdqlVIPAz9X%2Fimage.png?alt=media&#x26;token=72796170-6911-4e03-be07-3c5bed7e2b7e" alt=""><figcaption></figcaption></figure>

In the response, you will find your testnet and mainnet contract details.

<figure><img src="https://1758113423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyeqcffMTFbEF6WShgCpU%2Fuploads%2Fe7DYOG1Dmyf94BgPF8BN%2Fimage.png?alt=media&#x26;token=248656e3-3147-4430-8bba-bfa8fcebcead" alt=""><figcaption></figcaption></figure>

Copy your **testnet** contract ID. In this example, the testnet contract ID is: `0939ee83-3164-4ee8-8516-359cba136a77`. You will mint an Item using your testnet contract.

{% hint style="warning" %}
Make sure to use your own contract ID.
{% endhint %}
