# rest command to check all the Synthetic metrics that are gathered.

**URL:** <https://community.dynatrace.com/t/rest-command-to-check-all-the-synthetic-metrics-that-are-gathered/21168>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring, dynatrace-api\
**Created:** [January 11, 2021, 2:11pm UTC](https://community.dynatrace.com/t/rest-command-to-check-all-the-synthetic-metrics-that-are-gathered/21168 "2021-01-11T14:11:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikram\_Mawinka1](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@Vikram\_Mawinka1](https://community.dynatrace.com/u/Vikram_Mawinka1)\
**Post date:** [January 11, 2021, 2:11pm UTC](https://community.dynatrace.com/t/rest-command-to-check-all-the-synthetic-metrics-that-are-gathered/21168/1 "2021-01-11T14:11:08Z")

</div>

There is a ask to create reports from the synthetic URL monitoring done in out env. So I checked DYT docs and tried executing the command

[https://\<URL\>.live.dynatrace.com/.live.dynatrace.com/api/v1/synthetic/monitors](https://ztn06077.live.dynatrace.com/.live.dynatrace.com/api/v1/synthetic/monitors?_ga=2.223333467.158213883.1610357678-1755799985.1610357678) it is returning value 200 but no output. is there any way I can input username and passwd because I suspect there is an auth failure but as the repose is returned I am getting 200.

Please suggest.

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [January 11, 2021, 2:56pm UTC](https://community.dynatrace.com/t/rest-command-to-check-all-the-synthetic-metrics-that-are-gathered/21168/2 "2021-01-11T14:56:00Z")

</div>

First, if no token is being sent to get the info you should be getting a 401.

You need to validate with a token, as you suspect. You can add with **?Api-Token=TOKEN** to the URL and info should show up.

Also, you edited the text of the hotlink but still show the real tenant id, I would remove the link and keep the text.

This will get all the synthetic test that you have created:

| monitors | |
| --- | --- |
| 0 | |
| name | “Name of Synthetic” |
| entityId | “SYNTHETIC\_TEST-ID” |
| type | “BROWSER” |
| enabled | false |

_ **You would not get the metrics, only the data of the setup tests.** _

If you want to know which metrics are being used by the synthetic, you could use the metric browser via UI:

 ![27855-1610376707124.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7d9e6d9ea58073cccf2c5dded30f547dd1bd892c.png)

And you can also do a Metric query via the entity or via the list of synthetic and loop through it.

Cheers.
