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

# How to generate an API key

## **Step 1**: Go to the [API key page](https://app.ormilabs.com/dashboard/api) to generate an API key

![0xGraph API Keys](https://mintcdn.com/ormilabs/QF_fmnEzWAEcNv02/images/0xgraph-api-key.png?fit=max\&auto=format\&n=QF_fmnEzWAEcNv02\&q=85\&s=ac4ade1e29e7be09629130b131f3dd1b)

API Keys

## **Step 2**: Click on 'Create API Key' to generate an API key.

![0xGraph API Keys](https://mintcdn.com/ormilabs/QF_fmnEzWAEcNv02/images/0xgraph-generated-api-key.png?fit=max\&auto=format\&n=QF_fmnEzWAEcNv02\&q=85\&s=27378c8be18ab8c673ad359d766c74b9)

API Keys

After generating an API key, you can then copy and paste it into your commands as needed.

> [!NOTE]
>
> Warning: Always handle your API keys securely. Do not expose them in client-side code or share them publicly. Store them in a secure location, such as
> environment variables, and rotate them regularly to minimize security risks. If compromised, regenerate your API key immediately. For public repositories,
> store API keys in a .env file and add .env to .gitignore to prevent accidental exposure in your codebase.

## Next steps

Start here

New to subgraphs? Learn the basics of indexing and querying before you deploy your first one.

[Open](https://ormilabs.com/docs/docs/subgraphs/overview#new-to-subgraphs%3F)

Quickstart

Deploy and query your first subgraph with Ormi in minutes.

[Open](https://ormilabs.com/docs/docs/subgraphs/quickstart)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.