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

# Authentication

> How to authenticate your requests to the CrypTech API

# Authentication

All programmatic requests to the CrypTech API require an API key passed via the `X-API-Key` HTTP header.

```http theme={null}
X-API-Key: YOUR_API_KEY
```

Requests submitted without a valid key, or with an expired or unauthorized key, return an HTTP `401 Unauthorized` status code.

***

## Obtaining an API Key

CrypTech operates an institutional and developer onboarding program. To obtain an API key for your project, trading bot, or application:

> [card] [Request Developer Credentials](mailto:contactus@cryptechtoday.com?subject=CrypTech%20API%20Key%20Request)
>
> Email **[contactus@cryptechtoday.com](mailto:contactus@cryptechtoday.com)** with your project details, planned request volume, and primary chain requirements.

When requesting a key, please specify:

1. **Organization or Project Name**
2. **Intended Use Case** (e.g. Wallet security integration, Telegram scam alert bot, Algorithmic DEX trading desk, Academic research)
3. **Estimated Request Volume** (Requests per day / month)
4. **Primary Blockchains** (Ethereum, BSC, Solana, Polygon, Arbitrum, Base)

***

## Using Your Key

Include the header in every HTTP request:

```bash cURL theme={null}
curl -X POST "https://api.cryptechtoday.com/api/v1/analyze" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address": "0x514910771AF9Ca656af840dff83E8264EcF986CA"}'
```

```python Python theme={null}
import requests

headers = {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}
response = requests.post(
    "https://api.cryptechtoday.com/api/v1/analyze",
    headers=headers,
    json={"address": "0x514910771AF9Ca656af840dff83E8264EcF986CA"}
)
```

```typescript Node.js theme={null}
import axios from 'axios';

const client = axios.create({
  baseURL: 'https://api.cryptechtoday.com',
  headers: {
    'X-API-Key': process.env.CRYPTECH_API_KEY,
    'Content-Type': 'application/json'
  }
});

const response = await client.post('/api/v1/analyze', {
  address: '0x514910771AF9Ca656af840dff83E8264EcF986CA'
});
```

***

## Security Best Practices

> [!WARNING]
>
> **Never expose your API key in client-side code!**
>
> Do not include your API key in mobile apps, React/Vue frontends, or public GitHub repositories. Anyone with access to your client bundle can extract your key and consume your quota.

* **Use an Environment Variable**: Store your key in an environment variable such as `CRYPTECH_API_KEY`.
* **Route via a Backend Proxy (BFF)**: If building a web application, call the CrypTech API from your server-side API routes (e.g. Next.js Route Handlers, Node.js Express, Python FastAPI) and forward sanitized results to the browser.
* **Key Rotation**: If you suspect your key has been compromised, email [contactus@cryptechtoday.com](mailto:contactus@cryptechtoday.com?subject=Urgent%3A%20Rotate%20API%20Key) immediately to request key revocation and issuance of a new credential.


## Related topics

- [Introduction](https://docs.cryptechtoday.com/index.md)
- [Quickstart](https://docs.cryptechtoday.com/quickstart.md)


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