# Check an ad account before creating ads

Checks an ad account before creating ads. Works with Meta Ads.

```http
GET https://api.pozy.ai/v1/ads/accounts/health
```

- Area: Ads / Ad Accounts
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `accountId` (string, required)
- `adAccountId` (string, required)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/ads/accounts/health?accountId=696e0b682d0a31188e7a2ba9&adAccountId=666219aad7bab67ace411e4f" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/ads/accounts/health?accountId=696e0b682d0a31188e7a2ba9&adAccountId=666219aad7bab67ace411e4f", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/ads/accounts/health",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "adAccountId": "666219aad7bab67ace411e4f",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `adAccountId`, string
- `status`, string: One of `ok`, `attention`, `blocked`
- `checkedAt`, string (date-time)
- `checks`, array of object
  - `id`, string, required: One of `account_status`, `payment`, `spend_cap`, `page`, `instagram`, `lead_terms`, `pixel`, `whatsapp`
  - `status`, string, required: One of `ok`, `warning`, `error`, `missing`, `unknown`
  - `title`, string, required
  - `message`, string, required
  - `fix`, object
    - `label`, string
    - `url`, string

```json
{
  "adAccountId": "666219aad7bab67ace411e4f",
  "status": "ok",
  "checkedAt": "2026-10-02T09:00:00.000Z",
  "checks": [
    {
      "id": "account_status",
      "status": "ok",
      "title": "Launch day",
      "message": "Hello from Pozy",
      "fix": {
        "label": "string",
        "url": "https://pozy.ai/media/example-1.jpg"
      }
    }
  ]
}
```
