# Authentication

This API supports three primary authentication methods: **API Key**, **Environment-based** authentication and, optionally, **Fingerprint**-**based** session handling.

### API Keys

Obtained from the dashboard, It requires a unique `apiKeyUUID` and `apiKey`. These credentials must be included in every request, and the `apiKey` should be stored securely, as it is shown only once.

### Environments

Obtained from the dashboard, It requires a unique `environmentUUID` and `envSecret`. These credentials must be included only when creating a session (only if fingerprint was used), and the `envSecret` should be stored securely, as it is shown only once.

### Fingerprints

An optional feature that generates a unique secret for each client user device. This allows session data to be encrypted using both the `envSecret` and the `fingerprintSecret`, enhancing security by ensuring that session data can only be decrypted with both secrets.


---

# 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://dev-docs.tasknet.co/getting-started/authentication.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.
