---
title: "Refresh Access Token"
method: POST
path: "/auth/token/refresh"
tags: ["Auth"]
---

# Refresh Access Token

`POST /auth/token/refresh`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/auth/token/refresh`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/auth/token/refresh/post.ts> (a function with typed inputs; its response is checked against the schema)

Refresh an expired access token using a valid refresh token.

When your access token expires, use this endpoint to obtain a new access token
and refresh token pair without re-authenticating.

Args:
    body: Request containing the refresh token

Returns:
    TokensDto: New access token and refresh token pair

## Request body

- TokenRequestDto
  - `token` string, required

## Response `200`

Token refreshed successfully

- TokensDto
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `expires_in` integer, nullable

## Other responses

- `400`: Bad request
- `401`: Not authenticated
- `408`: Request timeout
- `422`: Invalid input data
- `500`: Internal server error

---

[API](https://skmtc.dev/nasuni/apis/portal-api.md) - [All operations](https://skmtc.dev/nasuni/apis/portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nasuni/apis/portal-api/revisions/2a505bec6d14?raw)
