---
title: "Refreshes an expired or expiring session token."
method: POST
path: "/user/refresh"
tags: ["account"]
---

# Refreshes an expired or expiring session token.

`POST /user/refresh`

This endpoint allows clients to extend their session by providing both the current
session token and refresh token. Upon successful refresh, a new session token is issued
and the old session is revoked.

## Request body

- RefreshSessionRequest
  - `refresh_token` string, required
  - `session_token` string, required

## Response `200`

Session refreshed successfully

- RefreshSessionResponse
  - `expires_at` string, required
  - `refresh_token` string, required
  - `refresh_token_expires_at` string, required
  - `session_token` string, required

---

[API](https://skmtc.dev/structifyai/apis/structify.md) · [All operations](https://skmtc.dev/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/structifyai/structify/revisions/1364930b6980/schema)
