# I am trying to list all the spaces, dashboards and watchers present on the entire elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/i-am-trying-to-list-all-the-spaces-dashboards-and-watchers-present-on-the-entire-elasticsearch-cluster/371052>\
**Category:** Kibana\
**Created:** [November 26, 2024, 12:45am UTC](https://discuss.elastic.co/t/i-am-trying-to-list-all-the-spaces-dashboards-and-watchers-present-on-the-entire-elasticsearch-cluster/371052 "2024-11-26T00:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnson\_will](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnson_will/32/123002_2.png) [@Johnson\_will](https://discuss.elastic.co/u/Johnson_will)\
**Post date:** [November 26, 2024, 12:45am UTC](https://discuss.elastic.co/t/i-am-trying-to-list-all-the-spaces-dashboards-and-watchers-present-on-the-entire-elasticsearch-cluster/371052/1 "2024-11-26T00:45:15Z")

</div>

I am using the below apis to get them

**GET /api/spaces/space**

> **[Get all spaces | Kibana API (v8)](https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-get-spaces-space)**
>
> The Kibana REST APIs enable you to manage resources such as connectors, data views, and saved objects.
> The API calls are stateless.
> Each request that you mak...

**POST /api/saved\_objects/\_bulk\_get**

> **[Get saved objects | Kibana API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-bulkgetsavedobjects)**
>
> The Kibana REST APIs enable you to manage resources such as connectors, data views, and saved objects.
> The API calls are stateless.
> Each request that you mak...

All the above are giving 400, are they deprecated in v8.13.4 ?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [November 26, 2024, 1:10am UTC](https://discuss.elastic.co/t/i-am-trying-to-list-all-the-spaces-dashboards-and-watchers-present-on-the-entire-elasticsearch-cluster/371052/2 "2024-11-26T01:10:53Z")

</div>

The APIs you've linked to are Kibana APIs, so I've moved this to the Kibana forum.

Can you provide a minimal example (e.g. using `curl`) of what you're trying to do?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 26, 2024, 3:28am UTC](https://discuss.elastic.co/t/i-am-trying-to-list-all-the-spaces-dashboards-and-watchers-present-on-the-entire-elasticsearch-cluster/371052/3 "2024-11-26T03:28:20Z")

</div>

Where are you running those requests?

Those are Kibana APIs, so you need to make the request to Kibana, not Elasticsearch.

If you are running them on Kibana Dev Tools you need to prefix the endpoints with `kbn:`

For example:

```auto
GET kbn:/api/spaces/space

```
