---
title: "Refresh API token"
method: POST
path: "/resources/auth/v2/api-token/token/refresh"
tags: ["API token"]
---

# Refresh API token

`POST /resources/auth/v2/api-token/token/refresh`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/auth/v2/api-token/token/refresh`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/auth/v2/api-token/token/refresh/post.ts> (a function with typed inputs; its response is checked against the schema)

This route refreshes a JWT using the refresh token value. If the refresh token is valid, the route returns a new JWT and refresh token. Send the **`frontegg-vendor-host`** as a header to declare which vendor. This is your domain name in the Frontegg Portal ➜ Workspace Settings ➜ Domains ➜ Domain Name.

## Request body

- RefreshApiTokenDto
  - `refreshToken` string, required

## Response `200`

- ApiTokenAuthV2Response
  - `access_token` string, required
  - `refresh_token` string, required
  - `expires_in` number, required
  - `expires` string, required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
