# Autenticação na API Mailfy

{% hint style="info" %}
**Good to know:** A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!
{% endhint %}

### Gerando uma API key

1. Acesse a plataforma Mailfy em <https://www.mailfy.com/>.
2. Crie uma conta ou faça login, caso já possua uma.
3. Após fazer login, navegue até as configurações da sua conta.
4. Na seção "Integrações", localize a opção para gerar uma nova API key.
5. Clique em "Gerar Nova" para obter uma nova chave.

### Autenticando-se na API

A autenticação na API Mailfy é realizada em cada requisição, exigindo que você inclua a sua API key como parte do cabeçalho da requisição.

#### Header Requerido

* **Nome do Campo**: `api-key`
* **Valor**: Sua chave de API gerada anteriormente.

Exemplo de cabeçalho:

api-key: SUA\_API\_KEY\_AQUI

```
// Set your API key before making the request
```


---

# 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://mailfy.gitbook.io/api-mailfy-integrations/autenticacao-na-api-mailfy.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.
