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

# Accounts

> List the Snapchat ad accounts your linked Snapchat account can use, with each account's currency, time zone and status.

Get the Snapchat ad accounts you can boost Snaps from. Use an account's `id` as `accountId` in [Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>Link Snapchat from the Social Accounts page first. The list covers the ad accounts in every Snapchat organization your linked account can see.</li>
  <li>Each account has its `id`, and its `name`, `currency`, `timezone` and `status` when Snapchat reports them.</li>
  <li>Budgets and spend on a boost are in the ad account's `currency`.</li>
  <li>Leave out `limit` to get every account in one response.</li>
</ul>

## Header Parameters

**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`

## Query Parameters

**limit** `number`

The most accounts to return in one page, from 1 to 1,000. Leave it out to get every account.

**next** `string`

When the response has `meta.pagination.hasMore: true`, send its `meta.pagination.next` value here to get the next page. Send the other parameters unchanged: a `next` value from a different request returns `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.