---
title: "Get available rules by type — banner"
type: reference
method: GET
path: /rest-api/rules/banner/available-rules.do
tag: "Targeting Rules"
---

# Get available rules by type — banner

`GET https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/available-rules.do`

Returns all active targeting rules that belong to the specified rule type. The 'type' query parameter selects the rule category (e.g. CAMPAIGN or INVENTORY). The response JSON contains a 'rules' array with the matching active rule objects including their names and IDs.

## Query params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `type` | string | yes | `CAMPAIGN` | The targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) |

## Responses

- `200` — Success
- `400` — Bad request — missing type parameter
- `401` — Unauthorized
- `403` — Forbidden — insufficient permissions

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/available-rules.do?type=CAMPAIGN' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/get-rules-banner-available-rules