> For the complete documentation index, see [llms.txt](https://sigafdocumenta.saude.mg.gov.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sigafdocumenta.saude.mg.gov.br/sistemas-municipais/autenticacao/login-e-senha-da-autenticacao.md).

# Login e Senha da Autenticação

Para definir o *login* e senha utilizados para autenticação do Webservice Municipal, siga o passo a passo:

* Abra o link de acesso ao [SIGAF](https://sigaf.saude.mg.gov.br) (<https://sigaf.saude.mg.gov.br>) e realize *login*.
* Vá no menu Monitoramento > Webservice Municipal > Usuário Webservice.

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-39ba2b94efb1d85727206db20f78a12c9bde518d%2Fchrome-capture-2023-4-10.gif?alt=media" alt=""><figcaption></figcaption></figure>

* Se não houver cadastro de usuário Webservice, o sistema irá exibir a seguinte mensagem:

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-d2138bcddee110d252cbcb8f7a1da3e8fd704a2b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

* Para prosseguir com o cadastro clique em "Sim", então o sistema exibirá os campos a serem preenchidos.

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-103b33ee283d811e257e412497e6278a729343c9%2Fimage%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### Dados Cadastrais da Empresa

* Os campos referentes aos Dados Cadastrais da Empresa devem ser preenchidos com os dados da empresa responsável pelo desenvolvimento/manutenção do Webservice Municipal.

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-f2042371175c443370ea22b40ba38af0e83d5327%2Fimage%20(2)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### *Login*

* Os dados para autenticação do serviço serão:
  * **Usuário**: campo de preenchimento automático pelo sistema com o Código IBGE do município ao qual o estabelecimento de saúde está vinculado.
  * **Senha**: preencha o campo com uma senha que cumpra as regras estabelecidas.

<img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-16420e7a89cb15d2ee3fbcb3b49a9486ffe0a291%2Ffile.excalidraw.svg?alt=media" alt="" class="gitbook-drawing">

{% hint style="info" %}
Não se esqueça de encaminhar os dados de *login* e senha para a empresa que irá realizar a integração com o SIGAF via webservice após finalizar o cadastro!
{% endhint %}

### Salvar o cadastro

* Preenchidos os campos clique em "Salvar", o sistema exibirá a seguinte mensagem:

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-312532734805dd45d965feec0fdfaf9b4755e7a9%2Fimage%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

* Se estiver certo sobre os dados clique em "Sim" e o sistema exibirá a seguinte mensagem:

<figure><img src="https://4126248404-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRBT78pXbIEWhFn6enG7%2Fuploads%2Fgit-blob-abe42b597a726e190b564453e355a941b307d35f%2Fimage%20(4).png?alt=media" alt=""><figcaption></figcaption></figure>

* Cadastro realizado!

{% hint style="warning" %}
Não se esqueça de encaminhar os dados de *login* e senha para a empresa que irá realizar a integração com o SIGAF via webservice.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://sigafdocumenta.saude.mg.gov.br/sistemas-municipais/autenticacao/login-e-senha-da-autenticacao.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
