> ## 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.

# Акаунти

> Список рекламних акаунтів Snapchat, які може використовувати ваш підключений акаунт Snapchat, із валютою, часовим поясом і статусом кожного.

Отримайте рекламні акаунти Snapchat, з яких ви можете просувати Snaps. Використовуйте `id` акаунта як `accountId` у [Просування допису](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>Спочатку підключіть Snapchat на сторінці «Social Accounts». Список охоплює рекламні акаунти в усіх організаціях Snapchat, які бачить ваш підключений акаунт.</li>
  <li>Кожен акаунт має свій `id`, а також `name`, `currency`, `timezone` і `status`, якщо Snapchat їх повідомляє.</li>
  <li>Бюджети та витрати просування вказуються у `currency` рекламного акаунта.</li>
  <li>Не вказуйте `limit`, щоб отримати всі акаунти в одній відповіді.</li>
</ul>

## Параметри заголовка

**Authorization** `string` *required*

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

Format: `Authorization: Bearer API_KEY`
**Profile-Key** `string`

[Profile Key](https://www.ayrshare.com/docs/apis/overview.md#profile-key-format) of a User Profile.

Format: `Profile-Key: PROFILE_KEY`

## Параметри запиту

**limit** `number`

Максимальна кількість акаунтів на сторінці, від 1 до 1 000. Не вказуйте, щоб отримати всі акаунти.

**next** `string`

Коли відповідь містить `meta.pagination.hasMore: true`, надішліть сюди її значення `meta.pagination.next`, щоб отримати наступну сторінку. Інші параметри надсилайте без змін: значення `next` з іншого запиту повертає `code: 101`.

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "adAccounts": [
    {
      "id": "5a0d0000-0000-4000-8000-000000000003",
      "name": "Acme Ads",
      "currency": "USD",
      "timezone": "America/Los_Angeles",
      "status": "ACTIVE"
    }
  ],
  "meta": { "pagination": { "hasMore": false } }
}
```

```json 400: Ad accounts error theme={"system"}
{
  "action": "get ad accounts",
  "status": "error",
  "code": 366,
  "message": "Error getting ad accounts. Please verify you have an active Snapchat ad account and have granted permission to access it. Try unlinking and relinking the platform, then try again. Contact us if the issue persists."
}
```


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