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

# Refresh Token

`POST /api/auth/refresh`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/auth/refresh`
- Auth: none declared

Get new access token using refresh token.

## Request body

- RefreshTokenRequest: Schema for refresh token request.
  - `refresh_token` string, required

## Response `200`

Successful Response

- TokenResponse: Schema for token response.
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `user` UserResponse, required: Schema for user response (excludes password).
    - `id` string, uuid, required
    - `email` string, required
    - `is_admin` boolean, required
    - `admin_role` string, nullable
    - `must_change_password` boolean, required
    - `email_verified` boolean, required
    - `tier` string
    - `chat_logging_enabled` boolean
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
