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

# Login

`POST /api/auth/login`

## Request

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

Authenticate with email and password.

## Request body

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

## Response `200`

Successful Response

- LoginResponse
  - `user` UserResponse, required
    - `id` string, required
    - `email` string, required
    - `name` string, required
    - `role` string, required
    - `organization` OrganizationResponse, required
      - `id` string, required
      - `name` string, required
      - `slug` string, required
      - `plan` string, required
    - `created_at` string, required
  - `tokens` TokenResponse, required
    - `access_token` string, required
    - `refresh_token` string, required
    - `token_type` string
    - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gateco/apis/gateco-api.md) · [All operations](https://skmtc.dev/gateco/apis/gateco-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gateco/apis/gateco-api/revisions/5debaf204950?raw)
