---
title: "Refresh Token"
method: POST
path: "/api/user/refresh-token"
tags: ["Authentication"]
---

# Refresh Token

`POST /api/user/refresh-token`

Refresh an expired JWT token to obtain a new one.

**SDK Usage:**
```typescript
const refreshResult = await client.refreshUserToken(currentToken);
client.updateApiKey(refreshResult.data.token);
```

## Request body

- object
  - `token` string, required — The current (expired) JWT token

## Response `200`

Token refreshed

- object
  - `code` integer
  - `data` object
    - `token` string — New JWT token

## Other responses

- `401` — Invalid or unrefreshable token

---

[API](https://skmtc.dev/privacypal/apis/privacypal-api.md) · [All operations](https://skmtc.dev/privacypal/apis/privacypal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/privacypal/privacypal-api/revisions/0e1db3b6bc7c/schema)
