> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Boost Your Team's Posts

> Boost a post one of your User Profiles published, from another profile's ad account, in the poster's name

Your agents, advisors or creators each post from their own User Profile. With boosting on behalf, your company's ad account pays to boost one of their posts, and the ad shows their account as the author, marked as a paid partnership with yours.

> [!NOTE]
>
> Boosting on behalf is turned on per account. Contact us to enable it.

A delegation is your account's own record in Ayrshare, created with your Primary Profile's API key. It is separate from the network's permission, which Ayrshare asks the owner's account for when you boost.

## Supported networks

| Network | Boost on behalf |
| - | - |
| Instagram | Yes, as an Instagram partnership ad |
| Facebook | Yes, as a Facebook partnership ad |
| LinkedIn, Pinterest, Reddit, Snapchat, TikTok | Not yet |

## Who can boost whose posts

* The **payer** is the profile whose ad account pays. It is your Primary Profile unless you name another User Profile.
* The **owner** is the User Profile that published the post. Your Primary Profile cannot be an owner.
* Both must be in the same account, and you must first create a [boost delegation](https://www.ayrshare.com/docs/apis/ads/delegations/create-delegations.md) for the pair on that network.
* Both the payer and the owner link the network with the partnership ads permission. A profile that linked without that permission relinks once to grant it.

### Instagram

* Both profiles link Instagram through Facebook. Ayrshare asks Instagram for the owner's permission for each post when you boost it.
* The owner's Instagram must be a professional account that can post branded content. In the Instagram app, check **Settings → Business tools and controls → Monetization status**: if branded content is not available, the owner's posts cannot be boosted on their behalf.

### Facebook

* Both profiles link a Facebook Page.
* The owner's post must tag (@mention) the payer's Page. Meta does not run an untagged post as a partnership ad, and the boost answers `101`.
* The first time you boost one of the owner's posts, Ayrshare sends a partnership request from the payer's Page to the owner's Page and accepts it for the owner's Page. Later boosts for the same two Pages reuse it.
* This permission covers the two Pages, not one post. It stays in place after you revoke the delegation, so ads already running keep running. The owner can remove it in Meta at any time.
* If either Page declines or removes the permission, boosts answer `420`. To ask again, create the delegation again, then boost.

## Step 1: Create a delegation

Send this with your Primary Profile's API key, without a `Profile-Key`:

```json theme={"system"}
{
  "owners": [{ "refId": "140b8709bd6ade099b242d895e268fb886130c53" }],
  "platforms": ["instagram"]
}
```

You get one delegation for each owner and platform, each with its own `id`. Use `"owners": "all"` to cover every User Profile you have today. See [Create Boost Delegations](https://www.ayrshare.com/docs/apis/ads/delegations/create-delegations.md).

## Step 2: Boost the post

Send the boost as the payer, with your API key and the payer's `Profile-Key`. For your Primary Profile, send the API key and leave out the `Profile-Key`. Add `postOwnerRefId` with the owner's `refId`, name the post by its Ayrshare `postId`, and send an `idempotencyKey`:

```json theme={"system"}
{
  "postId": "RhrbDtYh7hdSMc67zC8H",
  "accountId": "1234567890",
  "goal": "engagement",
  "adName": "Spring listing",
  "bidAmount": 2,
  "budget": 20,
  "postOwnerRefId": "140b8709bd6ade099b242d895e268fb886130c53",
  "idempotencyKey": "spring-listing-boost-1"
}
```

The other fields are the same as [Instagram Boost Post](https://www.ayrshare.com/docs/apis/ads/instagram/boost-post.md) or [Facebook Boost Post](https://www.ayrshare.com/docs/apis/ads/facebook/boost-post.md). The answer includes `postOwnerRefId`.

> [!NOTE]
>
> `postId` and an idempotency key are required with `postOwnerRefId`. The `postId` must be a post the owner published through Ayrshare; a `socialPostId` on its own is not accepted.

Some failures are saved against their `idempotencyKey`, so sending the same key again returns the same error. After you fix the cause, boost again with a new `idempotencyKey`, unless a `369` `message` says not to retry.

If a boost request times out, or answers `409` because the boost is still in progress or its result is unclear, the ad may already exist. Do not send a new `idempotencyKey`. Check [ad history](https://www.ayrshare.com/docs/apis/ads/instagram/get-ad-history.md), or send the same `idempotencyKey` again later.

## What each side sees

* **The payer** manages the ad like any other: pause it, change it, and see it in [ad history](https://www.ayrshare.com/docs/apis/ads/instagram/get-ad-history.md) and [boosted ads](https://www.ayrshare.com/docs/apis/ads/instagram/get-boosted-ads.md). Each entry for an on-behalf ad includes `postOwnerRefId`, the owner's `refId`.
* **The owner** pays nothing. The ad runs on the payer's ad account, which pays the network for it, as for any boost by the payer.

## Errors you may see

| Code | Meaning | What to do |
| - | - | - |
| `101` | `postOwnerRefId` is not a string, `postId` or the idempotency key is missing, the network does not support boosting on behalf, or, on Facebook, the owner's post does not tag your Page | Check the request. On Facebook, boost a post of the owner's that tags your Page |
| `317` | A delegation request was sent with a `Profile-Key` | Send it with your Primary Profile's API key only |
| `400` | No active delegation lets this payer boost this owner's posts on this network | Create the delegation |
| `420` | A permission or link is missing. `details` names the owner's profile when the problem is on the owner's side; otherwise it is on your own link | If `details` names the owner: on Instagram, check that the owner's account can post branded content (see above). Then the owner fixes what `details` names, such as relinking, and you create the delegation again: until then, boosts of the owner's posts keep answering `420`. The one exception is a `details` saying the owner's link cannot see the post, where relinking is enough. Otherwise: relink your own Instagram through Facebook, or your own Facebook Page, with the partnership ads permission. Then boost again |
| `156` | The network is not linked. `details` names the owner's profile when the owner has not linked it; otherwise your own profile has not | If `details` names the owner: the owner links the network. Otherwise: link it to your profile |
| `369` | The boost could not be completed. `message` and `details` give the reason | If `message` says not to retry, the ad was created but not saved: do not boost again, and contact support with the ad id in `details`. Otherwise, fix what they name (for example, add a payment method to the payer's ad account), then boost again |

## Ending a delegation

[Revoke a delegation](https://www.ayrshare.com/docs/apis/ads/delegations/delete-delegation.md) by the `id` that creating or [listing delegations](https://www.ayrshare.com/docs/apis/ads/delegations/get-delegations.md) returns, to stop new boosts of that owner's posts on that network. The owner's delegations on other networks are not changed. A delegation also ends on its own when the owner or payer profile is deleted, or when the owner unlinks the network. On Instagram, that is the Instagram account linked with the partnership ads permission; unlinking any other Instagram link the owner has does not end it.

When a delegation ends, ads already running keep running until their end date, and the payer can still pause them. On Facebook, the Page partnership permission also stays until the owner removes it in Meta. The one exception is deleting the payer's profile: Ayrshare tries to pause all of its ads, including those boosted on behalf of an owner. A pause can fail on the network's side while the deletion goes ahead, so pause the ads or check that they are paused in Meta before you delete the payer's profile.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.