---
updatedAt: 2025-06-09T22:25:01.000Z
agentTools:
  projectIndex: https://docs.enerflo.io/llms.txt
---

# Authentication

Learn how to authenticate your requests to the Enerflo REST API.

When making requests to the Enerflo API, you will need to pass proper authentication parameters to identify yourself as an authorized user.

This is done by passing your `api-key` in one of two ways:

**As an HTTP header (`api-key`)**

```Text curl
--header 'api-key: yourapikeygoeshere.1234567890' \
```

**As a parameter in the URL query string (`api-key`)**

```Text curl
--location --globoff 'https://enerflo.io/api/endpoint?api-key=yourapikeygoeshere.1234567890' \
```

**Recommended Best Practice:** We strongly recommend using the HTTP header authentication method when making requests to the Enerflo API.

This ensures your `api-key` is transmitted securely, and avoids exposing sensitive credentials in the URL query string.

This practice enhances the overall security of your API interactions.