> For the complete documentation index, see [llms.txt](https://docs.vaultid.com.br/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vaultid.com.br/workspace/emissao-online/api/autenticacao-login.md).

# Autenticação / Login

<mark style="color:green;">`POST`</mark> `https://emissao-online.endpoint/api/login`

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | String | application/json |
| Accept       | String | application/json |

#### Request Body

| Name                                       | Type   | Description                                |
| ------------------------------------------ | ------ | ------------------------------------------ |
| voucher<mark style="color:red;">\*</mark>  | String | Voucher do usuário                         |
| username<mark style="color:red;">\*</mark> | String | Identificação do usuário                   |
| otp<mark style="color:red;">\*</mark>      | String | Número OTP.                                |
| arsubdomain                                | String | Subdominio da AR                           |
| token                                      | Object | Quando informado, ignora o username e otp. |
| token.sessionId                            | String | IV da criptografia                         |
| token.sessionData                          | String | Token criptografado                        |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    isPj: (boolean),
    isBird: (boolean [acima v1.5.3]),
    municipios: [{ idmunicipio: '5200050', uf: 'GO', nome: 'Abadia de Goiás' }],
    nomeProduto: (string)
    sessionId: (iv),
    sessionData: (dado_criptografado)
}
```

{% endtab %}
{% endtabs %}
