> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.partnerpage.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.partnerpage.io/_mcp/server.

# Get all filters for external directory

GET https://v1.api.partnerpage.io/api/directory/private/v1alpha/external/directories/{directoryId}/filters/

Retrieve a list of filters for an external directory

Reference: https://docs.partnerpage.io/api-reference/directory/filters/get-all-filters-for-external-directory

## Authentication

- `Authorization` header (required) (prefixed with ` Token   `) — Your API key, sent as `Authorization: Token <your API key>`

## Request

### Path parameters

- `directoryId` (string, required) — ID of the external directory

## Response

### 200

List of filters in the external directory

- `list of ExternalDirectoryFilterSerializerReader`

## Errors

### 404 Not Found Error

Directory not found

- `any`

## Types

### ExternalDirectoryFilterSerializerReader

- `id` (string, required)
- `name` (string, required)
- `order` (integer, required)
- `type` (string, required)
- `filterOptions` (string, required)
- `multipleSelectFromDashboard` (boolean, required)
- `isDirectoryManaged` (boolean, required)
- `required` (boolean, required)
- `userAssignable` (boolean, required)
- `overrides` (FilterOverrides, required, nullable) — Visibility rule of the filter, or null when it has none.
- `assignmentDescription` (string, optional, nullable)
- `multipleLimit` (integer, optional, nullable)

### FilterOverrides

A filter's visibility rule, in the same shape as a form field's overrides: when the conditions are met the filter takes the hidden value, otherwise the opposite one.

- `attributes` (list of FilterOverrideAttribute, required)
- `conditions` (list of FilterOverrideCondition, required)
- `conditionCombinator` (enum, optional, default: and) — * `and` - and * `or` - or
  - Allowed values: `and`, `or`

### FilterOverrideAttribute

- `attribute` (string, required)
- `value` (boolean, required)

### FilterOverrideCondition

- `key` (string, required) — Id of the filter the condition reads.
- `operator` (enum, required) — * `equals` - equals * `not_equals` - not_equals
  - Allowed values: `equals`, `not_equals`
- `value` (string, required) — Id of an option of that filter.

## Examples

**Response**

```json
[
  {
    "id": "string",
    "name": "string",
    "order": 1,
    "type": "string",
    "filterOptions": "string",
    "multipleSelectFromDashboard": true,
    "isDirectoryManaged": true,
    "required": true,
    "userAssignable": true,
    "overrides": {
      "attributes": [
        {
          "attribute": "string",
          "value": true
        }
      ],
      "conditions": [
        {
          "key": "string",
          "operator": "equals",
          "value": "string"
        }
      ],
      "conditionCombinator": "and"
    },
    "assignmentDescription": "string",
    "multipleLimit": 1
  }
]
```

**SDK Code**

```python
import requests

url = "https://v1.api.partnerpage.io/api/directory/private/v1alpha/external/directories/directoryId/filters/"

headers = {"Authorization": "Token  <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://v1.api.partnerpage.io/api/directory/private/v1alpha/external/directories/directoryId/filters/';
const options = {method: 'GET', headers: {Authorization: 'Token  <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```