Autenticação

Autentica um usuário da API padrão

post/autenticar

Request body

usuariostring required
senhastring password required

Example request

{
  "usuario": "admin@saasto.com.br",
  "senha": "123456"
}

Response

Usuário autenticado

statusinteger
errorsstring[]

Example response

{
  "status": 200,
  "response": {
    "id": 1,
    "nome": "Administrador",
    "email": "admin@saasto.com.br",
    "tipo": 1,
    "id_operadora": 1,
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
  },
  "errors": []
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.