API - How to get the cards in a dashboard?

I see how to get cards and how to get dashboards in the API documentation.
I also see how to add/update cards in dashboards, but I do not see how to find which cards belong to dashboards.

Should GET /api/dashboard return the list of cards in the dashbaord?

1 Like

Hi @z3h
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.
Just for reference:
https://github.com/metabase/metabase/blob/master/docs/api-documentation.md
https://www.metabase.com/learn/developing-applications/advanced-metabase/metabase-api.html

2 Likes

The suggestion of looking at the Network tab was surprisingly helpful.
Thanks, I managed to hack my way into tweaking my way in Metabase using the API

@z3h Same issue i have last few days. Thanks i have completed my all work as well as you shared.:slightly_smiling_face::heart_eyes: