# GET data\_model ID (API)

**URL:** <https://community.holistics.io/t/get-data-model-id-api/1767>\
**Category:** Ask the Community\
**Tags:** api\
**Created:** [December 20, 2023, 10:56am UTC](https://community.holistics.io/t/get-data-model-id-api/1767 "2023-12-20T10:56:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grant\_Orchard](https://community.holistics.io/user_avatar/community.holistics.io/grant_orchard/32/1246_2.png) [@Grant\_Orchard](https://community.holistics.io/u/Grant_Orchard)\
**Post date:** [December 20, 2023, 10:56am UTC](https://community.holistics.io/t/get-data-model-id-api/1767/1 "2023-12-20T10:56:17Z")

</div>

Hi Team - I need extract some metadata and really struggling with the Holisitics documentation. I am using Postman to test the api’s but when I trying to access data model id i hit a wall.

My end goal is have a list of all my dashboards and the source table\_name/s (from modelling AML file, bi\_tables etc). I have gone into datasets api, query report api, data sources api, widgets api (your documentation shows model id here but not when i pull the data) all those IDs do not show the model id number I need to pull the metadata via api. Is there a **SIMPLE** way to pull data model ID:

`https://secure.holistics.io/api/v2/data_models/{id}`

Any assistance would really help!

---

<div class="post-metadata">

**Author:** ![daph.td](https://community.holistics.io/user_avatar/community.holistics.io/daph.td/32/811_2.png) [@daph.td](https://community.holistics.io/u/daph.td)\
**Post date:** [December 21, 2023, 5:41am UTC](https://community.holistics.io/t/get-data-model-id-api/1767/2 "2023-12-21T05:41:05Z")

</div>

Hi Grant, @Grant_Orchard

Thank you for sharing your issue with us!

To make sure I understand your context and assist you with the best possible solution, could you please elaborate on why you would want to retrieve “a list of all dashboards and the source table\_name/s (from modeling AML file, bi\_tables, etc)”?

Looking forward to helping you with this!  
Daphne

---

<div class="post-metadata">

**Author:** ![Grant\_Orchard](https://community.holistics.io/user_avatar/community.holistics.io/grant_orchard/32/1246_2.png) [@Grant\_Orchard](https://community.holistics.io/u/Grant_Orchard)\
**Post date:** [December 21, 2023, 8:55am UTC](https://community.holistics.io/t/get-data-model-id-api/1767/3 "2023-12-21T08:55:10Z")

</div>

We looking to see the dashboard name, the table name that feeds all the widgets datasets . We’ve just migrated our data stack so its for documentation to capture all exposures correctly in our dbt expsoure.yml list (lineage dag flow etc)

---

<div class="post-metadata">

**Author:** ![HuyVu](https://community.holistics.io/user_avatar/community.holistics.io/huyvu/32/373_2.png) [@HuyVu](https://community.holistics.io/u/HuyVu)\
**Post date:** [December 25, 2023, 10:58am UTC](https://community.holistics.io/t/get-data-model-id-api/1767/4 "2023-12-25T10:58:46Z")

</div>

Hi Grant @Grant_Orchard,

I understood your use case and the friction you’ve faced when trying to get the model metadata out of Holistics.

Unfortunately, Holistics 4.0 API couldn’t support your current use case at the moment. The `data_models/{id}` endpoint that you mentioned can only work for Holistics 3.0. We’re sorry for not making this clear on the documentation.

We have a workaround to provide you with the dependency chain from a report to a model, but only if you **don’t** use “Query Model” in your setup.

> **[Query Model | Holistics Docs](https://docs.holistics.io/as-code/aml/query-model)**
>
> A grasp of these concepts will help you understand this documentation better:

Let me know if you want to continue on this request.
