OverviewProductsPlatformsAPI ReferenceResources
Accounts

Revoke a partner business from the Page

DELETEhttps://zernio.com/api/v1/accounts/{accountId}/business-partners

Removes every task the partner business portfolio held on the Page.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

accountIdstringRequired

Zernio SocialAccount id of the Facebook or Instagram account.

Query parameters

businessIdstringRequired

Meta business portfolio id of the partner (numeric string).

Responses

Success· the request worked

Errors· the request failed

Move account to another profile

Moves a connected account to a different profile owned by the same user. The target profile must belong to the same user as the account. For API keys restricted to specific profiles, BOTH the source account's current profile AND the target profile must be in the key's allowed set. Calls with a target profile outside the key's scope return 403.

Get OAuth connect URL

Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. **X on prepaid-balance billing:** connecting is free, but every X post is paid from the balance ($0.015, or $0.20 with a link). At a $0 balance, POST /v1/posts to X returns 402 `insufficient_balance` (or waits for funds when scheduled), so fund the balance before the first post. ### Modes - Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. - Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete. ### Several accounts per platform A profile can hold several accounts of the same platform. Connecting a different account adds it as a new account, and reconnecting the SAME account keeps it and all of its history. Ads connections stay one per profile. On a legacy plan limited to N profiles, a new account is refused with 403 `platform_account_limit` once N accounts of its platform are connected. ### TikTok Every connection now goes through the TikTok for Business app. An authorization that leaves out a permission the connected account needs changes nothing at all and comes back as `missing_tiktok_permissions`. Connect again and accept every permission on TikTok's screen.

DELETE/v1/accounts/{accountId}/business-partners
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accounts.revokeBusinessPartner({  path: {    accountId: 'account_abc123',  },  query: {    businessId: 'business_abc123',  },});console.log(data);
{  "pageId": "string",  "businessId": "string",  "revoked": true}
OpenAPI specification
Was this page helpful?