---
search:
  tags:
    - Auth
    - POST
seo:
  description: >-
    Exchanges the one-time code from the OAuth success redirect… Reference for
    the POST /api/auth/oauth/exchange endpoint in the TALA API Documentation
    API.
sidebar:
  label: >-
    Exchanges the one-time code from the OAuth success redirect (?code=...) for
    a session. The code is single-use and expires in ~60s. Returns the same
    shape as login. Replaces returning tokens directly in the OAuth redirect
    URL.
  badge: POST
title: >-
  Exchanges the one-time code from the OAuth success redirect (?code=...) for a
  session. The code is single-use and expires in ~60s. Returns the same shape as
  login. Replaces returning tokens directly in the OAuth redirect URL.
type: openapi-operation
---
`POST /api/auth/oauth/exchange`
