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

# Store Snowflake Oauth Config

`POST /api/snowflake/oauth/config`

## 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/config`
- Auth: none declared

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.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)
