---
title: "Cli Refresh"
method: POST
path: "/api/auth/cli-refresh"
tags: ["auth"]
---

# Cli Refresh

`POST /api/auth/cli-refresh`

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

Refresh a CLI token. Accepts a valid (non-expired) CLI JWT in the
Authorization header, verifies the user still exists, and returns a
fresh 30-day token.

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

---

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