---
title: "Cli Signup"
method: POST
path: "/api/auth/cli-signup"
tags: ["auth"]
---

# Cli Signup

`POST /api/auth/cli-signup`

## 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-signup`
- Auth: none declared

Sign up via CLI and return a bearer token for subsequent API calls.

## Request body

- SignupRequest: Request schema for user registration.
  - `email` string, email, required
  - `password` string, required
  - `name` string, nullable
  - `callbackUrl` string, nullable
  - `accountType` string, nullable

## 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)
