> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-obter-o-token-de-autenticacao-do-usuario.md).

# Como obter o token de autenticação do usuário

## Visão geral

Para segurança de acesso, ao atribuir um usuário que será utilizado para realização das operações na integração, deve-se gerar um token que representa o usuário autenticado no sistema. O token pode ser gerado através do serviço web abaixo:

* **Serviço Web**: *https\://\<servidor do* Zeev doc&#x73;*>/services/silentLogin.svc*
* **Método**: GetUserToken (string userName, string password, string domain), retorno string.

## Passo a passo para obter o token de autenticação do usuário

1 - Detalhes da chamada:\
Endpoint: `[url do ambiente]/services/silentlogin.svc/ssl`\
Método: `POST`\
Cabeçalho (Header): `Content-Type: application/soap+xml`<br>

### 2 - Corpo da requisição:

xml\
CopiarEditar\
<http://tempuri.org/ISilentLogin/GetUserToken>\
urn:uuid:6fc43728-8f86-4c73-9032-a2864614b66c\
<http://www.w3.org/2005/08/addressing/anonymous>\
\
\[url do ambiente]/services/silentlogin.svc/ssl\
\[seu userName]\
\[seu password]\
econtent<br>

### 3 - Atenção aos pontos:

* A URL do endpoint deve conter o /ssl ao final.
* O cabeçalho Content-Type precisa ser exatamente: application/soap+xml.
* O valor da tag varia de acordo com o ambiente. Quando o login não é feito por domínio personalizado, o valor padrão é econtent.

{% hint style="warning" %}
Certifique-se de que o usuário que está sendo utilizado para essa chamada tenha o Acesso por Integração - SilentLogin habilitado. Isso pode ser verificado nas configurações do usuário, na guia Acesso.
{% 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://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-obter-o-token-de-autenticacao-do-usuario.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.
