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
Boost-Delegierungen abrufen
Listen Sie aktive und widerrufene Boost-Delegierungen in Ihrem Konto seitenweise auf. Jeder Eintrag steht für einen Eigentümer, Zahler und eine Plattform.
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 } }
}
Listen Sie die aktiven und widerrufenen Boost-Delegierungen in Ihrem Konto seitenweise auf. Jeder Eintrag steht für einen Eigentümer, einen Zahler und eine Plattform. Senden Sie die Anfrage mit dem API Key Ihres Primary Profile und ohne
Profile-Key.
Um die nächste Seite abzurufen, senden Sie den meta.pagination.next aus der Antwort als next. Wenn meta.pagination.hasMore false ist, haben Sie alle Delegierungen erhalten.
Header-Parameter
Query-Parameter
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 } }
}