Connect an External Account
Changed onStarts 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
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.
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.
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
The OAuth authorization URL to redirect the user to.
Example response
{
"authorize_url": "https://appcenter.intuit.com/connect/oauth2"
}Changes
- info
added the new
stripeenum value to the request propertyplatform
- info
- breaking
removed the enum value
snapchatof the request propertyplatform - warning
removed the request property
scopes
- breaking