Token

Esta rota é utilizada para a geração de um token de autenticação JWT para usuários. É necessário enviar uma requisição POST com os campos obrigatórios email e password no corpo da requisição, em formato JSON. Se as credenciais fornecidas forem válidas, um token de autenticação é gerado e retornado na resposta. Este token deve ser utilizado no cabeçalho auth-bearer das requisições subsequentes para acessar áreas protegidas da API.

Create Access Token and Refresh Token for Clinic Users

post
/auth/token
Autorizações
api-keystringObrigatório

Api-Key Authentication

Corpo
emailstringObrigatório

The email address of the clinic user.

passwordstringObrigatório

The password of the clinic user.

newPasswordstringOpcional

The new password if the current one is expired.

isNewDevicebooleanOpcional

Flag indicating if the login is from a new device.

tenantIdstringOpcional

The ID of the tenant (optional, if applicable).

nowMillisnumberOpcional

The current time in milliseconds (used for clock synchronization).

tzstringOpcional

The timezone of the user.

Respostas
chevron-right
200

Token created successfully.

application/json
messagestringOpcionalExample: User authenticated
post
/auth/token

Atualizado

Isto foi útil?