---
title: "Refresh Token"
method: POST
path: "/api/v1/oauth/profile/refreshToken"
tags: ["Authentication"]
---

# Refresh Token

`POST /api/v1/oauth/profile/refreshToken`

## Request

- Base URL: `https://api.sahha.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sahha.ai/api/v1/oauth/profile/refreshToken`
- Auth: API key in header `Authorization`

Returns a refreshed profile token to be used in the authorization header as 'profile {token}'.

## Request body

- RefreshProfileTokenRequest
  - `refreshToken` string: Profile refresh token

## Response `200`

Returns a token response

- ProfileTokenResponse
  - `profileToken` string: Profile token used in authorization header as 'profile {token}'
  - `expiresIn` integer: When the token expires, as Unix time in seconds.
  - `tokenType` string: The type of token being returned, will be 'account' or 'profile'
  - `refreshToken` string, nullable: Populated with a token value in response to a refresh token request.

## Other responses

- `401`: Returned if the authorization token is invalid.

---

[API](https://skmtc.dev/sahha/apis/sahha-platform-v1.md) - [All operations](https://skmtc.dev/sahha/apis/sahha-platform-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/sahha/apis/sahha-platform-v1/revisions/c7f918b46707?raw)
