OverviewProductsPlatformsAPI ReferenceResources

Connect a Whop account

POSThttps://zernio.com/api/v1/connect/whop-ads/credentials

Connect a Whop account with an Account API key from the Whop dashboard (Developer > API keys). The key only has to be able to read its own account: Zernio calls GET /accounts/me once to learn the account id (biz_...) and name, then stores the key.

What the connection unlocks today is the Whop Pixel through the tracking-tags API: the account id is the pixel, so GET /v1/accounts/{accountId}/tracking-tags lists it and POST .../tracking-tags/{biz_...}/install puts it on a Shopify store or WordPress site. Whop campaigns are not managed through Zernio. One Whop account per profile.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

apiKeystringRequired

Account API key from the Whop dashboard.

profileIdstringRequired

Your Zernio profile ID

Optional parameters2 fields
statestring

Optional state passthrough for the connect flow.

redirect_urlstring (uri)

Optional URL to redirect to after successful connection, echoed back as redirectUrl.

Responses

Success· the request worked

Errors· the request failed

POST/v1/connect/whop-ads/credentials
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.connectWhopAdsCredentials({  body: {    apiKey: 'tok_abc123',    profileId: 'profile_abc123',  },});console.log(data);
{  "accountId": "6507a1b2c3d4e5f6a7b8c9d0",  "whopAccountId": "biz_Ab3dEf9hJk2mN",  "accountName": "Shine Time Auto Detailing"}
OpenAPI specification
Was this page helpful?