---
title: "Gets a renewed user access token"
method: POST
path: "/users/v2/refresh"
tags: ["Users"]
---

# Gets a renewed user access token

`POST /users/v2/refresh`

Gets a new valid user access token for a given previous access token and a refresh token.

## Request body

- object — An object containing an accessToken and a refreshToken
  - `accessToken` string, required — The access token obtained in a previous login
  - `refreshToken` string, required — The refresh token obtained in a previous login

## Response `200`

Success

The authentication was successful and a valid access token was returned.

- object
  - `accessToken` string
  - `expiresIn` integer — The lifetime in seconds of the access token. For example 86400 means the token will expire in 24 hours from the time the response was generated.
  - `realm` string — Current realm ID
  - `refreshToken` string
  - `tokenType` string — The token type is bearer
  - `userId` string — The HERE Account ID of a user.

## Other responses

- `400` — Bad request The request object is in an incorrect format or has values that are invalid or out of range. If available, further error details are provided in the response body.
- `401` — Unauthorized The request did not provide correct authentication details
- `403` — Forbidden The account does not have the correct privileges

---

[API](https://skmtc.net/here/apis/tracking.md) · [All operations](https://skmtc.net/here/apis/tracking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/here/tracking/revisions/efa162f7023c/schema)
