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

# Autenticação

{% hint style="info" %}
**Autenticação:** Utilize as credenciais fornecidas (clientId e clientSecret) para gerar um token de autenticação.
{% endhint %}

<mark style="color:green;">`POST`</mark> `https://global.stric.com.br/`authenticate

#### Request Body

| Name                                           | Type   | Description |
| ---------------------------------------------- | ------ | ----------- |
| clientId<mark style="color:red;">\*</mark>     | String |             |
| clientSecret<mark style="color:red;">\*</mark> | String |             |

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

```javascript
{
    "access_token": "eyJhbGci",
    "expires_in": "30m",
    "token_type": "Bearer"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    "statusCode": 400,
    "message": "credenciais incorrect or non-existent!",
    "friend": "credenciais incorrect or non-existent!"
}
```

{% endtab %}
{% endtabs %}
