---
title: "ExchangeToken"
method: POST
path: "/gitpod.v1.IdentityService/ExchangeToken"
tags: ["gitpod.v1.IdentityService"]
---

# ExchangeToken

`POST /gitpod.v1.IdentityService/ExchangeToken`

Exchanges an exchange token for a new access token.

 Use this method to:
 - Convert exchange tokens to access tokens
 - Obtain new access credentials
 - Complete token exchange flows

 ### Examples

 - Exchange token:

   Trades an exchange token for an access token.

   ```yaml
   exchangeToken: "exchange-token-value"
   ```

## Request body

- GitpodV1ExchangeTokenRequest
  - `exchangeToken` string — exchange_token is the token to exchange

## Response `200`

Success

- GitpodV1ExchangeTokenResponse
  - `accessToken` string — access_token is the new access token

## Other responses

- `default` — Error

---

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