External Accounts

Connect an External Account

Changed on

Starts an OAuth connection flow and returns an authorize_url to send the user to, where they connect an external account. Personal profile connections must be completed in a browser signed in as the Whop user who started the flow.

post/external_accounts/connect

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string

The Account (biz_ identifier) to connect the external account for. An account-scoped API key may omit this to default to its own account. Omit for user profile connections.

platform, 'tiktok' | 'linkedin' | 'youtube' | 'x' | 'quickbooks' | 'stripe' required

The platform to connect the external account on. Use tiktok to connect the authenticated user’s TikTok profile, linkedin for their LinkedIn profile, youtube for their YouTube channel, or x for their X profile. Use quickbooks to connect the account’s QuickBooks Online company: pass account_id, and the user picks the company in QuickBooks. Use stripe to let Whop read the past payments of the account’s Stripe account: pass account_id, and the user installs Whop’s app in Stripe. It requires the payout:account:update scope instead of social_account:create.

redirect_url, string required

Where to send the user once they finish connecting their accounts. Must be an https URL on whop.com; any other host is rejected. On success, the user is redirected with an external_account_connected query param naming the platform; if the connection fails, with an external_account_error query param instead. The same values also arrive as social_account_connected / social_account_error.

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "platform": "quickbooks",
  "redirect_url": "https://whop.com/dashboard/biz_xxxxxxxxxxxxxx/settings"
}

Response

authorize url returned

object required
authorize_url, string required

The OAuth authorization URL to redirect the user to.

Example response

{
  "authorize_url": "https://appcenter.intuit.com/connect/oauth2"
}

Changes