# Autenticação

### **OAuth 2.0**

Nossas APIs utilizam o padrão de autorização *OAuth*, que é especificado na [RFC 6749](https://oauth.net/2/).

### **HTTPS**

Utilizamos uma conexão HTTPS (*Hyper Text Transfer Protocol Secure*) em todas as nossas APIS.

### **Requisição do Acess Token**

Para gerar um token de acesso é necessário informar na requisição os parâmetros **client\_id, client\_secret** e **grant\_type.**

<table><thead><tr><th width="141">Parâmetro</th><th width="607">Valor</th></tr></thead><tbody><tr><td>client_id</td><td>Disponível no Portal de administração->Configurações campo <a href="/pages/KSkJim2UE7bh9SE9n61S#credenciais-de-acesso">Client ID</a></td></tr><tr><td>secret_id</td><td>Disponível no Portal de administração->Configurações campo <a href="/pages/KSkJim2UE7bh9SE9n61S#credenciais-de-acesso">Client Secret</a></td></tr><tr><td>grant_type</td><td>client_credentials</td></tr></tbody></table>

***

{% openapi src="<https://whatsapphomologacao.consistem.com.br/swagger_output.json>" path="/oauth/token" method="post" %}
<https://whatsapphomologacao.consistem.com.br/swagger_output.json>
{% endopenapi %}


---

# 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://ajuda.consistem.com.br/consistem-whatsapp-api/readme/apis/autenticacao.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.
