---
title: "Refreshes the access token using the refresh token."
method: POST
path: "/refreshAccessToken"
---

# Refreshes the access token using the refresh token.

`POST /refreshAccessToken`

This function uses the refresh token to obtain a new access token. It is an asynchronous operation that returns a promise, which resolves when the access token has been successfully refreshed. This function is essential for maintaining continuous authentication in long-running applications.

## Request body

- object
  - `body` object — Body of the refreshAccessToken sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'oauth2' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/google-sheets

## Response `200`

Access token successfully refreshed

- object
  - `message` string

## Other responses

- `400` — Bad request - Invalid refresh token or client error
- `401` — Unauthorized - Refresh token expired or invalid
- `500` — Internal server error

## Changes

- **2025-05-29** `470b95f73df9` — 1 info
  - added the non-success response with the status `401`
- **2025-05-28** `77260ff78232` — 1 info
  - removed the non-success response with the status `401`

[Change history](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/changes/refreshAccessToken/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/google-sheets-sdk-api/revisions/85db428f2808/schema)
