# Retrieving Collection Fields in API v2

**URL:** <https://discourse.getcockpit.com/t/retrieving-collection-fields-in-api-v2/2901>\
**Category:** Cockpit v2\
**Created:** [December 1, 2023, 6:34pm UTC](https://discourse.getcockpit.com/t/retrieving-collection-fields-in-api-v2/2901 "2023-12-01T18:34:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikearaya](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/mikearaya/32/1099_2.png) [@Mikearaya](https://discourse.getcockpit.com/u/Mikearaya)\
**Post date:** [December 1, 2023, 6:34pm UTC](https://discourse.getcockpit.com/t/retrieving-collection-fields-in-api-v2/2901/1 "2023-12-01T18:34:26Z")

</div>

Is there a method or endpoint in v2 that allows me to obtain collection fields from the API? I relied on this to create a dynamic filter in one of my old projects and I was wondering how I can achieve the same using V2.  
Thanks
