---
title: "Adds an OAuth token to an account."
method: POST
path: "/v2/accounts/{accountId}/oauth-tokens"
tags: ["ApiAccount"]
---

# Adds an OAuth token to an account.

`POST /v2/accounts/{accountId}/oauth-tokens`

## Request

- Base URL: `https://api.dotdigital.com`
- URL: `https://api.dotdigital.com/v2/accounts/{accountId}/oauth-tokens`
- Auth: none declared
- TypeScript: <https://skmtc.dev/dotdigital/apis/apiconnector-com/docs/v2/accounts/:accountId/oauth-tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `accountId` integer, required

## Request body

- ApiOAuthToken
  - `redirectUri` string, required
  - `clientId` string, nullable
  - `secretKey` string, nullable

## Response `200`

- ApiOAuthToken
  - `redirectUri` string, required
  - `clientId` string, nullable
  - `secretKey` string, nullable

---

[API](https://skmtc.dev/dotdigital/apis/apiconnector-com.md) - [All operations](https://skmtc.dev/dotdigital/apis/apiconnector-com/llms.txt) - [OpenAPI document](https://skmtc.dev/dotdigital/apis/apiconnector-com/revisions/391b93e8d24a?raw)
