---
title: "User Login"
method: POST
path: "/login"
tags: ["Authentication"]
---

# User Login

`POST /login`

Allows a user to log in and receive an authentication token.

## Request body

- RequestUserLogin — Structure containing the necessary fields for user login.
  - `email` string, required — User's email (required and must be a valid email address).
  - `password` string, required — User's password (required, minimum of 6 characters, and must contain at least one of the characters: !@#$%*).

## Response `200`

Login successful, authentication token provided

- ResponseUserResponse
  - `age` integer
  - `email` string
  - `id` string
  - `name` string

## Other responses

- `403` — Error: Invalid login credentials

---

[API](https://skmtc.dev/huncoding/apis/meu-primeiro-crud-em-go-huncoding.md) · [All operations](https://skmtc.dev/huncoding/apis/meu-primeiro-crud-em-go-huncoding/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/huncoding/meu-primeiro-crud-em-go-huncoding/revisions/5947d1adf479/schema)
