---
title: "Refresh Token"
method: PUT
path: "/api/v1/auth/tokens/current"
tags: ["authentication", "Authentication"]
---

# Refresh Token

`PUT /api/v1/auth/tokens/current`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/tokens/current`
- Auth: none declared

Refresh access token using refresh token.

Args:
    request: Refresh token request
    session: Database session

Returns:
    New tokens

Raises:
    UnauthorizedError: If token is invalid or expired

## Request body

- RefreshTokenRequest: Refresh token request model.
  - `refresh_token` string, required

## Response `200`

Successful Response

- RefreshTokenResponse: Refresh token response model.
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
