---
title: "Get ad accounts"
method: GET
path: "/messenger/1/ad-accounts"
tags: ["channels", "messenger", "marketing-ad-accounts-messenger"]
---

# Get ad accounts

`GET /messenger/1/ad-accounts`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/messenger/1/ad-accounts`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Returns all Facebook ad accounts associated with the authenticated marketing account.

## Response `200`

List of ad accounts.

- Cc99cb7b0e48638be90df2dee94fb1aaadb95bcd09a6944a79bd00ca6a59df77GetAdAccountsResponse
  - `adAccounts` Cc99cb7b0e48638be90df2dee94fb1aaadb95bcd09a6944a79bd00ca6a59df77AdAccountResponse[]: List of ad accounts.
    - `id` string: Ad account ID.
    - `status` 'ACTIVE' | 'DISABLED' | 'UNSETTLED' | 'PENDING_RISK_REVIEW' | 'PENDING_SETTLEMENT' | 'IN_GRACE_PERIOD' | 'PENDING_CLOSURE' | 'CLOSED' | 'ANY_ACTIVE' | 'ANY_CLOSED' | 'UNKNOWN': Ad account status.
    - `currency` string: Currency used by the ad account.
    - `totalSpent` integer: Total amount spent.

## Other responses

- `400`: Bad Request.
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
