---
title: "POST /oauth2/exchange"
method: POST
path: "/oauth2/exchange"
---

# POST /oauth2/exchange

`POST /oauth2/exchange`

Exchange AAD tokens for an ACR refresh Token

## Response `200`

The request has succeeded.

- AcrRefreshToken — The ACR refresh token response containing the refresh token for authentication.
  - `refresh_token` string — The refresh token to be used for generating access tokens

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2018-08-10-preview) `be283057eb09` — 2 info
  - api tag `AcrToken` removed
  - api tag `RefreshToken` removed
- **2026-07-13** (2018-08-10-preview) `9203740b38dd` — 1 info
  - api operation id `GetAcrRefreshTokenFromExchange` removed and replaced with `Authentication_ExchangeAadAccessTokenForAcrRefreshToken`
- **2026-07-13** (2018-08-10-preview) `7108fa6b173b` — 1 breaking
  - api path removed without deprecation
- **2026-07-13** (2018-08-10-preview) `89022cd898bc` — 1 info
  - endpoint added
- **2025-09-10** (2018-08-10-preview) `64c2cd483faa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/containerregistry-registry/changes/oauth2/exchange/post.md)

---

[API](https://skmtc.dev/azure/apis/containerregistry-registry.md) · [All operations](https://skmtc.dev/azure/apis/containerregistry-registry/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/containerregistry-registry/revisions/be283057eb09/schema)
