---
title: "Snowflake Oauth Callback"
method: POST
path: "/api/snowflake/oauth/callback"
---

# Snowflake Oauth Callback

`POST /api/snowflake/oauth/callback`

Exchange an OAuth authorization code for access and refresh tokens from Snowflake.
Uses the team's stored client_id, client_secret, and account to perform the exchange.

## Request body

- SnowflakeOAuthCallbackRequest — Request body for exchanging OAuth code for tokens.
  - `code` string, required — OAuth authorization code from Snowflake
  - `redirect_uri` string, required — The redirect URI used in the authorization request

## Response `200`

Successful Response

- SnowflakeOAuthCallbackResponse — Response for Snowflake OAuth callback.
  - `success` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
