---
title: "Refresh Cli Token"
method: POST
path: "/v1/auth/cli/refresh"
tags: ["CLI Authentication"]
---

# Refresh Cli Token

`POST /v1/auth/cli/refresh`

Refresh an expired session JWT using a refresh token.

Note: Refresh tokens are single-use. The response contains a new refresh_token
that must replace the old one for future refresh operations.

## Request body

- CLIRefreshRequest — Request body for CLI token refresh.
  - `refresh_token` string, required — Refresh token from previous authentication

## Response `200`

Successful Response

- CLIRefreshResponse — Response for CLI token refresh.
  - `expires_in` integer, required — Token expiration in seconds
  - `refresh_token` string, required — New refresh token (replaces the old one)
  - `session_jwt` string, required — New session JWT (WorkOS access token)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/versions/f24a474dc415/schema)
