> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formizee.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an API Key

> Make use of the API programatically

### Prerequisites

To get the most out of this guide, you'll need to:

* [Create a Formizee account](https://dashboard.formizee.com)

## 1. Login into the Dashboard

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/1-light.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=ef0e010f1eabf9405f8e6eb721beb8fa" alt="Dashboard Page for Formizee" width="2840" height="1736" data-path="assets/guides/create-an-api-key/1-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/1-dark.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=4e09971aa5fedfca9cb26547f4297b91" alt="Dashboard Page for Formizee" width="2840" height="1736" data-path="assets/guides/create-an-api-key/1-dark.png" />
</Frame>

## 2. Go to Settings

Now that we are inside the dashboard, we will click on the **"Settings"** button on the sidebar.
Then go to **Workspace > API Keys**

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/2-light.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=7521122cb02e06070dfe2aafb2802551" alt="Settings Page" width="2840" height="1736" data-path="assets/guides/create-an-api-key/2-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/2-dark.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=b8a438ead418c2816cd023bebf2e2489" alt="Settings Page" width="2840" height="1736" data-path="assets/guides/create-an-api-key/2-dark.png" />
</Frame>

## 3. Create a API Key

Now press on the **"New Key"** button to open the create dialog, here you can assign a name and a expiration date to the key.

*We recommend to set carefully the **Expiration Date** of the key.*

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/3-light.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=90a117dcda1dbb10b5905dab6fc03f93" alt="Create your key" width="2840" height="1736" data-path="assets/guides/create-an-api-key/3-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/3-dark.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=be7d1cf10cc7a598f87d49dd3d015a31" alt="Create your key" width="2840" height="1736" data-path="assets/guides/create-an-api-key/3-dark.png" />
</Frame>

## 4. Copy your API Key

That's it, you new API Key is created, now it should be copied into your clipboard:

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/4-light.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=c403eccbee613d1f633c56133f7971b5" alt="Copy your key" width="2840" height="1736" data-path="assets/guides/create-an-api-key/4-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/formizee/UMqC5saRDgjM1LWR/assets/guides/create-an-api-key/4-dark.png?fit=max&auto=format&n=UMqC5saRDgjM1LWR&q=85&s=8534ba9251acd50dae12db515ece87f8" alt="Copy your key" width="2840" height="1736" data-path="assets/guides/create-an-api-key/4-dark.png" />
</Frame>

## 5. Test your API key

Open your terminal and paste the next code:

<Tabs>
  <Tab title="cURL">
    ```bash theme={"system"}
    curl -X GET 'https://api.formizee.com/v1/submissions/<your_endpoint_id>' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: bearer <your_api_key>'
    ```
  </Tab>

  <Tab title="wget">
    ```bash theme={"system"}
    wget --method GET \
      --header 'Content-Type: application/json' \
      --header 'Authorization: bearer <your_api_key>' \
    'https://api.formizee.com/v1/submissions/<your_endpoint_id>' 
    ```
  </Tab>
</Tabs>

You should see all the submissions of your form, like this:

```json theme={"system"}
{
  "_metadata": {
    "page": 1,
    "totalPages": 1,
    "itemsPerPage": 100,
    "schema": {
      // This is the schema of the submissions
      "name": "string",
      "email": "string",
      "attachment": "file"
    }
  },
  // And here goes the content
  "submissions": []
}
```

<Warning>The only types shown in the schema are `string` and `file`, do not expect *number* or *boolean* values.</Warning>

## 6. Next steps

Now that you know how to create API Keys, see the **API reference** to unleash all the power!

<Card icon="database" href="/api-references/submissions/list" title="API Reference" />
