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

> आपका linked Snapchat account जिन Snapchat ad accounts का उपयोग कर सकता है उन्हें सूचीबद्ध करें, हर account की currency, time zone और status के साथ।

वे Snapchat ad accounts पाएँ जिनसे आप Snaps boost कर सकते हैं। किसी account का `id` [Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md) में `accountId` के रूप में उपयोग करें।

<ul>
  <li>पहले "Social Accounts" page से Snapchat link करें। सूची में हर उस Snapchat organization के ad accounts शामिल हैं जिसे आपका linked account देख सकता है।</li>
  <li>हर account में उसका `id` होता है, और जब Snapchat बताता है तब उसका `name`, `currency`, `timezone` और `status` भी।</li>
  <li>किसी boost का budget और खर्च ad account की `currency` में होता है।</li>
  <li>सभी accounts एक response में पाने के लिए `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`

एक page में लौटाए जाने वाले अधिकतम accounts, 1 से 1,000 तक। सभी accounts पाने के लिए इसे छोड़ दें।

**next** `string`

जब response में `meta.pagination.hasMore: true` हो, तो अगला page पाने के लिए उसका `meta.pagination.next` मान यहाँ भेजें। बाकी parameters बिना बदलाव के भेजें: किसी दूसरे request का `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.