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

# Snowflake Oauth Callback

`POST /api/snowflake/oauth/callback`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/snowflake/oauth/callback`
- Auth: none declared

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.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
