---
title: "POST /v2/{+name}:refreshAccessToken"
method: POST
path: "/v2/{+name}:refreshAccessToken"
tags: ["projects"]
---

# POST /v2/{+name}:refreshAccessToken

`POST /v2/{+name}:refreshAccessToken`

RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).

## Path parameters

- `name` string, required

## Request body

- RefreshAccessTokenRequest — RefreshAccessTokenRequest includes the refresh token.
  - `executionConfig` ExecutionConfig
    - `headers` string — headers to be used for the request. For example: headers:'{"x-integration-connectors-managed-connection-id":"conn-id","x-integration-connectors-runtime-config":"runtime-cfg"}'
  - `oauth2Config` OAuth2Config
    - `clientId` string — Client ID for the OAuth2 flow.
    - `authUri` string — Authorization Server URL/Token Endpoint for Authorization Code Flow
    - `clientSecret` string — Client secret for the OAuth2 flow.
  - `refreshToken` string — Optional. Refresh Token String. If the Refresh Token is not provided, the runtime will read the data from the secret manager.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/connectors.md) · [All operations](https://skmtc.dev/google/apis/connectors/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/connectors/revisions/1153921b6f7b/schema)
