Skip to content

Realiza autenticação através de usuários cadastrados na plataforma com suporte a 2FA

POST
/api/v2/auth/login

Authorizations

Request Body

object
email
string
nullable
password
string
nullable
token2FA
string
nullable
obrigar2FA
boolean

Responses

200

Success

object
sucesso
boolean
erros
Array<string>
nullable
data
object
accessToken
string
nullable
refreshToken
string format: uuid
expiresIn
number format: double
refreshTokenExpiresIn
number format: double
accessTokenExpiresIn
number format: double
isPasswordStillDefault
boolean
aguardandoToken
boolean
mensagemToken
string
nullable
userData
object
usuarioId
string
nullable
email
string
nullable
telefone
string
nullable
telefoneDDI
string
nullable
clienteId
string format: uuid
nullable
unidadeId
string format: uuid
nullable
pontoAtendimentoId
string format: uuid
nullable
usuarioPontoAtendimentoId
string format: uuid
nullable
usuarioUnidadeId
string format: uuid
nullable
authTokenAuthorization
string format: uuid
perfil
string
nullable
foto
string
nullable
nomeUsuario
string
nullable
tipo2FA
string
Allowed values: Desativado SMS Email
pessoaId
string format: uuid
nullable
claims
Array<object>
nullable
object
value
string
nullable
type
string
nullable
unidades
Array<object>
nullable
object
usuarioUnidadeId
string format: uuid
nullable
usuarioId
string format: uuid
unidadeId
string format: uuid
nome
string
nullable
email
string
nullable
unidadePadrao
object
usuarioUnidadeId
string format: uuid
nullable
usuarioId
string format: uuid
unidadeId
string format: uuid
nome
string
nullable
email
string
nullable
permissoes
Array<object>
nullable
object
label
string
nullable
value
string
nullable

400

Bad Request

object
mensagens
Array<string>
nullable