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
Lấy Ủy quyền Boost
Liệt kê các ủy quyền boost đang hoạt động và đã thu hồi trong tài khoản theo từng trang. Mỗi mục là một chủ sở hữu, bên thanh toán và nền tảng.
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 } }
}
Liệt kê các ủy quyền boost trong tài khoản của bạn, cả đang hoạt động lẫn đã thu hồi, theo từng trang. Mỗi mục là một chủ sở hữu, bên thanh toán và nền tảng. Gửi yêu cầu bằng API Key của Primary Profile và không kèm
Profile-Key.
Để lấy trang tiếp theo, hãy gửi meta.pagination.next từ phản hồi dưới dạng next. Khi meta.pagination.hasMore là false, bạn đã có tất cả các ủy quyền.
Tham số Header
Tham số Query
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 } }
}