> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 取得推廣委派

> 逐頁列出您帳戶中有效及已撤銷的推廣委派。每個項目代表一組擁有者、付款方與平台。

逐頁列出您帳戶中的推廣委派，包含有效及已撤銷的委派。每個項目代表一組擁有者、付款方與平台。請使用您 Primary Profile（主要個人檔案）的 API Key 傳送請求，且不要附帶 `Profile-Key`。

若要取得下一頁，請將回應中的 `meta.pagination.next` 作為 `next` 傳送。當 `meta.pagination.hasMore` 為 `false` 時，即表示您已取得所有委派。

## 請求頭參數

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`

## 查詢參數

**limit** `number` (default: 100)

要返回的委派數量上限，範圍為 1 到 500。

**next** `string`

上一頁的 `meta.pagination.next`。取得第一頁時請省略。

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
```

```json 200 theme={"system"}
{
  "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 } }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.