/** * @example * { * platform: "facebook" * } */ export interface CreateExternalAccountsRequest { /** The Account (biz_ identifier) to create the external account for. An account-scoped API key may omit this to default to its own account. Account API keys cannot update their own account's branding through Update Account; use a user-authenticated path. */ account_id?: string; /** A private API key for the account on the platform. Required for `klaviyo`, which needs read access to Accounts; not accepted for other platforms. Whop checks the key with the platform before connecting and never returns it. */ api_key?: string; /** The platform to create the external account on. `facebook` requires the account's `banner_image`, `logo`, and `description`, and `tiktok` requires its `logo`; configure them with [Update Account](/api-reference/beta/accounts/update-account). The account is returned before the platform has created it — its `id` is usable right away, and the rest of the profile fills in once provisioning finishes. `klaviyo` connects the account's existing Klaviyo account with the `api_key` you pass. */ platform: CreateExternalAccountsRequest.Platform; } export declare namespace CreateExternalAccountsRequest { /** The platform to create the external account on. `facebook` requires the account's `banner_image`, `logo`, and `description`, and `tiktok` requires its `logo`; configure them with [Update Account](/api-reference/beta/accounts/update-account). The account is returned before the platform has created it — its `id` is usable right away, and the rest of the profile fills in once provisioning finishes. `klaviyo` connects the account's existing Klaviyo account with the `api_key` you pass. */ const Platform: { readonly Facebook: "facebook"; readonly Tiktok: "tiktok"; readonly Klaviyo: "klaviyo"; }; type Platform = (typeof Platform)[keyof typeof Platform]; }