# How does management API "get clients" use filtering?... can I filter by client\_metadata?

**URL:** <https://community.auth0.com/t/how-does-management-api-get-clients-use-filtering-can-i-filter-by-client-metadata/57025>\
**Category:** Get Help\
**Tags:** clients\
**Created:** [January 29, 2021, 5:30pm UTC](https://community.auth0.com/t/how-does-management-api-get-clients-use-filtering-can-i-filter-by-client-metadata/57025 "2021-01-29T17:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rust.brad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rust.brad/32/27262_2.png) [@rust.brad](https://community.auth0.com/u/rust.brad)\
**Post date:** [January 29, 2021, 5:30pm UTC](https://community.auth0.com/t/how-does-management-api-get-clients-use-filtering-can-i-filter-by-client-metadata/57025/1 "2021-01-29T17:30:34Z")

</div>

Using the Management API, how can I use the “Get clients” endpoint (/api/v2/clients) to find a client/application by some client\_metadata attribute key or value?

It is unclear to me how to use the “mathing provided filters” part of this endpoint… especially with client\_metadata being an object/map.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 29, 2021, 6:23pm UTC](https://community.auth0.com/t/how-does-management-api-get-clients-use-filtering-can-i-filter-by-client-metadata/57025/3 "2021-01-29T18:23:19Z")

</div>

Hi @rust.brad,

Thanks for joining the Community!

The “matching provided filters” for the [`/api/v2/get_clients`](https://auth0.com/docs/api/management/v2#!/Clients/get_clients) endpoint refers to the parameters listed in the docs.

Unfortunately, you cannot filter results by any field and you can’t filter by client metadata. You’d have to request all of the clients and then filter the results yourself.

**You can filter by:**

`is_global`: Whether or not to return just the [global client settings](https://auth0.com/docs/get-started/dashboard/tenant-settings#global-client-information) for your tenant

`is_first_party`: Whether or not to return [first-party applications](https://auth0.com/docs/applications/first-party-and-third-party-applications#first-party-applications)

`app_type`: Filter by app type ( `spa` , `native` , `non_interactive` , or `regular_web` )

**Other parameters**

You can also paginate clients as well with `page` and `per_page`.

The rest of the parameters do not affect the number of results you’ll receive, but rather transforms the data you receive for each client.

`fields`: You can either include or exclude fields with this parameter  
`include_fields`: This indicates whether your list of fields should be included or excluded

`include_totals`: If this is `true`, then instead of an array, you’ll receive an object with the totals as one of the properties.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 13, 2021, 6:23pm UTC](https://community.auth0.com/t/how-does-management-api-get-clients-use-filtering-can-i-filter-by-client-metadata/57025/4 "2021-02-13T18:23:23Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
