# 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](/getting-started/access-management-rbac.md).

## Authentication

{% openapi src="/files/JQsHheKpvizTVZ7mUhiL" 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="/files/JQsHheKpvizTVZ7mUhiL" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.firefly.ai/general-information/api/auth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
