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

# Cli Login

`POST /api/auth/cli-login`

## Request

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

Log in via CLI and return a bearer token for subsequent API calls.

## Request body

- LoginRequest: Request schema for credential validation.
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful Response

- CliAuthResponse: Response schema for CLI auth flows.
  - `token` string, required
  - `user` UserResponse, required: Response schema for user data (excludes password hash).
    - `id` string, required
    - `email` string, required
    - `name` string, nullable
    - `image` string, nullable

## Other responses

- `422`: Validation Error

---

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