# Authentication

The Firefly API supports multiple authentication methods, including JWT and Basic Authentication. To use the API, you'll need to create an API key pair (Access Key and Secret Key) for authentication.

## Creating an API Key Pair

To create a new API key pair for authentication:

1. In the Firefly web console, navigate to **Settings > Users**
2. Click **Create Key Pair**
3. Copy both the Access Key and Secret Key (they will only be shown once)
4. Store your keys securely in a password manager or secrets vault

For detailed instructions on creating and managing API keys, see the [Access Management & RBAC documentation](https://docs.firefly.ai/getting-started/access-management-rbac).

## Authentication

{% openapi src="<https://292727710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkD89Ravlokn4JL0Be27O%2Fuploads%2Fgit-blob-28180d4e0bac3294365c50f25580bda040d58aec%2Fopenapi.yaml?alt=media>" path="/login" method="post" %}
[openapi.yaml](https://292727710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkD89Ravlokn4JL0Be27O%2Fuploads%2Fgit-blob-28180d4e0bac3294365c50f25580bda040d58aec%2Fopenapi.yaml?alt=media)
{% endopenapi %}

## Health Check

{% openapi src="<https://292727710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkD89Ravlokn4JL0Be27O%2Fuploads%2Fgit-blob-28180d4e0bac3294365c50f25580bda040d58aec%2Fopenapi.yaml?alt=media>" path="/health" method="get" %}
[openapi.yaml](https://292727710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkD89Ravlokn4JL0Be27O%2Fuploads%2Fgit-blob-28180d4e0bac3294365c50f25580bda040d58aec%2Fopenapi.yaml?alt=media)
{% endopenapi %}
