curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/ads/delegations/Kx3v9QpL2mZ7tR1wYb4N
{
"status": "success",
"delegation": {
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
}
Boost on Behalf
Revoke Boost Delegation
Revoke one boost delegation for an owner, payer and platform. New boosts stop, but ads that are already running keep running.
DELETE
/
ads
/
delegations
/
:id
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/ads/delegations/Kx3v9QpL2mZ7tR1wYb4N
{
"status": "success",
"delegation": {
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
}
Revoke one boost delegation: one owner, payer and platform. The owner’s delegations on other platforms are not changed. Send the request with your Primary Profile’s API key and without a
Profile-Key.
Revoking stops new boosts only. Ads already running keep running until their end date, and the payer can still pause them. Revoking an already revoked delegation succeeds and changes nothing.
A delegation also ends on its own:
- When the owner or the payer profile is deleted (
revokedReasonisownerDeletedorpayerDeleted). - When the owner unlinks a network. The owner’s delegations on that network are revoked (
revokedReasonisownerUnlinked). Delegations on other networks are not changed. - When the network refuses the owner’s permission. The delegation stays active, but its
permissionbecomesrefusedand boosts on it are refused. Once the owner relinks, create the delegation again.
Header Parameters
Path Parameters
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/ads/delegations/Kx3v9QpL2mZ7tR1wYb4N
{
"status": "success",
"delegation": {
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
}