Zernio
Zernio
API Reference

Accounts

List accountsGETList partner businesses of the PageGETList trending commercial musicGETSearch TikTok location tagsGETCheck account healthGETList posts published on the platformGETCheck accounts healthGETGet Bluesky account settingsGETGet follower statsGETCheck whether an Instagram user follows the accountGETGet Slack account settingsGETGet TikTok creator infoGETUpdate accountPUTUpdate Bluesky account settingsPATCHUpdate Slack account settingsPATCHDisconnect accountDELETEShare the Page with a partner businessPOSTMove account to another profilePATCHRevoke a partner business from the PageDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Accounts

Share the Page with a partner business

Grants a partner business portfolio tasks on the Facebook Page behind this account. With ADVERTISE, the partner can run ads for the Page from ad accounts in its own portfolio, which is how an integrator advertises for an end user without touching the end user's ad accounts.

Meta only lets a user token share a Page that a business portfolio owns. A Page outside any portfolio must first be claimed into one at business.facebook.com; this endpoint answers 422 until that is done. Meta refuses a second grant to a portfolio that already has access instead of replacing its tasks, so that case answers 200 with alreadyShared: true and the tasks the partner currently holds. To change a partner's tasks, revoke and grant again.

After the grant, the partner assigns its own people to the Page with POST /v1/ads/page-users; Meta does not assign partner admins automatically. The Instagram professional account linked to the Page is returned in page so the partner can reference it; Meta exposes no API to share Instagram accounts, that is done in Business Settings.


POST
/v1/accounts/{accountId}/business-partners

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

accountId*string

Zernio SocialAccount id of the Facebook or Instagram account.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accounts.grantBusinessPartner({  path: {    accountId: 'account_abc123',  },  body: {    businessId: 'business_abc123',  },});console.log(data);
{  "page": {    "id": "string",    "name": "string",    "business": {      "id": "string",      "name": "string"    },    "instagramBusinessAccount": {      "id": "string",      "username": "string"    }  },  "partner": {    "businessId": "string",    "permittedTasks": [      "string"    ]  },  "alreadyShared": true}
Was this page helpful?

Disconnect account

Disconnects and removes a connected account. Repeating the call for an account already disconnected returns 404, the account stays in its 1h grace window and the disconnect is not re-run.

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.

businessId*string

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

permittedTasks?array<>

Tasks granted on the Page, Meta's permitted_tasks vocabulary. Defaults to ADVERTISE and ANALYZE. The bare names are what Business Settings shows; the PROFILE_PLUS_ names are the New Pages Experience tasks and the only way to grant FACEBOOK_ACCESS or REVENUE. Granting MANAGE also yields MANAGE_LEADS.