---
title: "Connect a Social Account"
method: POST
path: "/social_accounts/connect"
tags: ["Social Accounts"]
---

# Connect a Social Account

`POST /social_accounts/connect`

Starts an OAuth connection flow and returns an authorize_url where the user can connect a social account.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `account_id` string — The Account (biz_ identifier) to connect the social account for. An account-scoped API key may omit this to default to its own account.
  - `platform` 'meta_business' | 'tiktok', required — The platform to connect the social account on. Supported options are `meta_business` and `tiktok`.
  - `redirect_url` string — The Whop URL to redirect the user to after they finish connecting.
  - `scopes` string[] — Capabilities to grant for the connected social account. Use `advertise` when connecting a Meta Business or TikTok account for ads.

## Response `200`

authorize url returned

- object
  - `authorize_url` string, required — The OAuth authorization URL to redirect the user to.

## Other responses

- `400` — Invalid Parameters
- `401` — Unauthorized

---

[API](https://skmtc.net/whop/apis/whop-api.md) · [All operations](https://skmtc.net/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whop/whop-api/versions/db0883548bc5/schema)
