---
title: "Refresh the access token"
method: POST
path: "/api/v1/auth/refresh"
tags: ["Authentication"]
---

# Refresh the access token

`POST /api/v1/auth/refresh`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/auth/refresh`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Reads the httpOnly `refreshToken` cookie, rotates it, and returns a new short-lived `accessToken`. Requires a valid refresh cookie; responds `401` if none is present or it is invalid/revoked.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `accessToken` string, required
  - `expiresIn` integer, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
