---
title: "Store Snowflake Oauth Config"
method: POST
path: "/api/snowflake/oauth/config"
---

# Store Snowflake Oauth Config

`POST /api/snowflake/oauth/config`

Store Snowflake OAuth client configuration (client_id, client_secret, account) for the user's team.
This sets up the team to be able to complete the OAuth flow with Snowflake.

## Request body

- SnowflakeOAuthConfigRequest — Request body for storing Snowflake OAuth configuration.
  - `client_id` string, required — Snowflake OAuth client ID
  - `client_secret` string, required — Snowflake OAuth client secret
  - `account` string, required — Snowflake account identifier (e.g., xy12345.us-east-1)
  - `role` string, nullable — Snowflake role to use for queries (e.g., ACCOUNTADMIN)

## Response `200`

Successful Response

- SnowflakeOAuthConfigResponse — Response for Snowflake OAuth configuration.
  - `success` boolean, required
  - `snowflake_oauth_id` string, 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)
