---
title: Array Value Filters
---
# Array Value Filters

Some of our APIs allow filtering resources by which subset of values is found in a particular array- / list-form property.
At the time of writing:

- Filtering on channels and tags in message and attempt listing endpoints
- Endpoint configuration: Filtering by channels

To check whether any particular endpoint supports this, see if the property mentions 'array value filter' syntax (and links to this page).
This is the filter syntax accepted for these properties:

- `not("value")` - the filter property does not contain the given value (including the case of no values)
- `any("value1", "value2")` - the filter property contains any of the given values (equivalent to previously-available multi-valued filters)
- `all("value1", "value2")` - the filter property contains all of the given values

These can be nested, though only two levels deep for now.
For example, to create an endpoint that receives only messages sent whose `channels` contains `channelA` *but not* `channelB`:

<CodeTabs items={["JavaScript","Python","Rust"]}>
<TabItem value="JavaScript">

```js
await svix.endpoint.create(myAppId, {
    url: 'https//webhook.example/',
    channelsQuery: 'all("channelA", not("channelB"))',
});
```

</TabItem>
<TabItem value="Python">

```python
await svix.endpoint.create(
    my_app_id,
    EndpointIn(
        url='https://example.com/webhook/',
        channels_query='all("channelA", not("channelB"))',
    ),
)
```

</TabItem>
<TabItem value="Rust">

```rust
svix.endpoint()
    .create(
        my_app_id,
        EndpointIn {
            url: "https//webhook.example/".to_owned(),
            channelsQuery: Some(r#"all("channelA", not("channelB"))"#.to_owned()),
            ..Default::default(),
        },
    )
    .await?;
```

</TabItem>
</CodeTabs>
