curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}
Boost on Behalf
Get Boost Delegations
List the active and revoked boost delegations in your account, one page at a time. Each item is one owner, payer and platform.
GET
/
ads
/
delegations
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}
List the boost delegations in your account, active and revoked, one page at a time. Each item is one owner, payer and platform. Send the request with your Primary Profile’s API key and without a
Profile-Key.
To get the next page, send the response’s meta.pagination.next as next. When meta.pagination.hasMore is false, you have every delegation.
Header Parameters
Query Parameters
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}