---
title: "Login"
method: POST
path: "/api/auth/login"
tags: ["auth", "auth"]
---

# Login

`POST /api/auth/login`

Autentica un usuario y crea una sesión

## Request body

- LoginRequest
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful Response

- BackendApiSchemasAuthLoginResponse
  - `success` boolean, required
  - `message` string, required
  - `session_id` string, nullable
  - `user` object, nullable
  - `expires_in` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
