# Error while using curl

**URL:** <https://community.dynatrace.com/t/error-while-using-curl/45866>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [June 1, 2024, 3:36am UTC](https://community.dynatrace.com/t/error-while-using-curl/45866 "2024-06-01T03:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [June 1, 2024, 3:36am UTC](https://community.dynatrace.com/t/error-while-using-curl/45866/1 "2024-06-01T03:36:33Z")

</div>

I have two question

1.&nbsp; where i&nbsp; can run dsql&nbsp; .&nbsp; i dont see any navigation in dynatrace .any separate tool to be installed

2.&nbsp; i using a simple&nbsp; query to list of dashboards&nbsp; using curl but for any query , i always get "the document has moved "

am i missing something

curl -X “GET” ^  
More? “[https://xxx.com/e/77c3a9e6-260f-4181-bf1b-a75a9f6856f9/api/config/v1/dashboards](https://xxx.com/e/77c3a9e6-260f-4181-bf1b-a75a9f6856f9/api/config/v1/dashboards)” ^  
More? -H “accept: application/json; charset=utf-8” ^  
More? -H “Authorization: Api-Token dt0c01.xxxx”  
\<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”\>  
\<html\>\<head\>  
\<title\> **302 Found** \</title\>  
\</head\>\<body\>  
\<h1\>Found\</h1\>  
\<p\> **The document has moved** \<a href=“[https://xxx/dynatrace-io.fcc?TYPE=33554433&REALMOID=06-0005035f-6349-154a-9d9e-00017f000000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$Oo4VyBlALS%2FPxN23f1shBpV1ZJVMDc%2BQt7LMzCCSNOfNjrVL9I3AsSyM2I84X%2FVn&TARGET=$SM$https%3A%2F%2Fdxcdynatrace-io.sso.glb.platform.dxc.com%2Fe%2F77c3a9e6-260f-4181-bf1b-a75a9f6856f9%2Fapi%2Fconfig%2Fv1%2Fdashboards](https://xxx/dynatrace-io.fcc?TYPE=33554433&REALMOID=06-0005035f-6349-154a-9d9e-00017f000000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$Oo4VyBlALS%2fPxN23f1shBpV1ZJVMDc%2bQt7LMzCCSNOfNjrVL9I3AsSyM2I84X%2fVn&TARGET=$SM$https%3a%2f%2fdxcdynatrace-io%2esso%2eglb%2eplatform%2edxc%2ecom%2fe%2f77c3a9e6-260f-4181-bf1b-a75a9f6856f9%2fapi%2fconfig%2fv1%2fdashboards)”\>here\</a\>.\</p\>  
\</body\>\</html\>

---

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [June 3, 2024, 6:12am UTC](https://community.dynatrace.com/t/error-while-using-curl/45866/2 "2024-06-03T06:12:31Z")

</div>

Hi&nbsp;[@Vijayt](https://community.dynatrace.com/user/75656)&nbsp;,  
Not sure if you are aware but APIs of Dynatrace keep changing regularly. To stay up to date please follow the Swagger page provided by Dynatrace from where you can run the APIs without actually having to run the curl from any other host.  
Also, Here you can find the updated API request.

https://{environmentid}.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Configuration%20API#/Dashboards/getDashboardStubsList

Regards,  
Maheedhar.
