---
title: "POST /api/v3/accounts/{account_id}/oauth-configurations/"
method: POST
path: "/api/v3/accounts/{account_id}/oauth-configurations/"
tags: ["OAuth Configurations"]
---

# POST /api/v3/accounts/{account_id}/oauth-configurations/

`POST /api/v3/accounts/{account_id}/oauth-configurations/`

## Request

- Base URL: `https://cloud.getdbt.com`
- URL: `https://cloud.getdbt.com/api/v3/accounts/{account_id}/oauth-configurations/`
- Auth: HTTP bearer

Create a new OAuthConfiguration

## Path parameters

- `account_id` integer, required

## Request body

- OAuthConfigurationRequest
  - `account_id` integer, required
  - `type` string, required
  - `name` string
  - `extra_data` EntraExtraDataRequest
    - `application_id_uri` string, required
  - `client_id` string
  - `client_secret` string
  - `authorize_url` string
  - `token_url` string
  - `redirect_uri` string

## Response `200`

- OAuthConfigurationEnveloped
  - `data` OAuthConfigurationResponse, required
    - `id` integer, required
    - `account_id` integer
    - `type` string
    - `name` string
    - `extra_data` EntraExtraData
      - `application_id_uri` string, required
    - `client_id` string
    - `authorize_url` string
    - `token_url` string
    - `redirect_uri` string
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `status` ResponseStatus, required
    - `code` integer: HTTP status code
    - `is_success` boolean, required: Whether the request was successful or not
    - `user_message` string, required: End-user friendly success or error message
    - `developer_message` string, required: Developer friendly success or error message

## Changes

- **2026-10-06** (v3) `7d5c1b4c8d8a`: 1 breaking
  - for the `path` request parameter `account_id`, the format changed from no format to `int64`
- **2026-04-22** (v3) `ed46da9332ad`: 3 breaking
  - the `account_id` request property format changed from no format to `int64` (media type: application/json)
  - the `account_id` request property format changed from no format to `int64` (media type: application/x-www-form-urlencoded)
  - the `account_id` request property format changed from no format to `int64` (media type: multipart/form-data)

[Operation history](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/changes/api/v3/accounts/:account_id/oauth-configurations/post.md)

---

[API](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2.md) - [All operations](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/revisions/2448b375ac2f?raw)
