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
Obtener delegaciones de impulso
Lista las delegaciones de impulso activas y revocadas de tu cuenta, una página a la vez. Cada elemento es un propietario, un pagador y una plataforma.
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 } }
}
Lista las delegaciones de impulso de tu cuenta, activas y revocadas, una página a la vez. Cada elemento corresponde a un propietario, un pagador y una plataforma. Envía la solicitud con la API Key de tu Primary Profile (perfil principal) y sin
Profile-Key.
Para obtener la página siguiente, envía el meta.pagination.next de la respuesta como next. Cuando meta.pagination.hasMore es false, ya tienes todas las delegaciones.
Parámetros del encabezado
Parámetros de consulta
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 } }
}