---
title: "Realiza a autenticação do usuário"
method: POST
path: "/api/Auth/login"
tags: ["Auth"]
---

# Realiza a autenticação do usuário

`POST /api/Auth/login`

## Request

- Base URL: `https://api.ordemenfermeiros.pt` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ordemenfermeiros.pt/api/Auth/login`
- Auth: none declared

## Request body

- LoginRequest: Model para a requisição de login
  - `username` string, required: Nome de usuário
  - `password` string, required: Senha do usuário

## Response `200`

Login realizado com sucesso

- LoginResponse: Model para a resposta do login
  - `token` string, required: Token JWT gerado para autenticação

## Other responses

- `401`: Credenciais inválidas
- `429`: Too Many Requests

## Changes

- **2026-09-23** `d9d37bbd49fd`: 1 info
  - added the non-success response with the status `429`
- **2026-09-09** `2443a7f86715`: 1 info
  - the endpoint scheme security `JWT` was removed from the API

[Operation history](https://skmtc.dev/ordemenfermeiros/apis/sigenf-api/changes/api/Auth/login/post.md)

---

[API](https://skmtc.dev/ordemenfermeiros/apis/sigenf-api.md) - [All operations](https://skmtc.dev/ordemenfermeiros/apis/sigenf-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ordemenfermeiros/apis/sigenf-api/revisions/d9d37bbd49fd?raw)
