# How to Retrieve Mobile App Crash Stack Traces via API in Dynatrace?

**URL:** <https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974>\
**Category:** Dynatrace API\
**Tags:** mobile-monitoring, dynatrace-api\
**Created:** [September 18, 2026, 10:02am UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974 "2026-09-18T10:02:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar\_supe](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@tushar\_supe](https://community.dynatrace.com/u/tushar_supe)\
**Post date:** [September 18, 2026, 10:02am UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974/1 "2026-09-18T10:02:29Z")

</div>

We are using Dynatrace Classic Mobile Crash Analysis and can retrieve crash metadata using USQL APIs. How can we retrieve the **full app crash stack trace** programmatically?

Is there a supported API for stack traces, or are stack traces only available through the Crash Analysis UI/internal endpoints such as ‘/rest/dtaql/executequery’?

We also need to export all crash records for a specific time range without the 1000-record UI limitation.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 18, 2026, 11:55am UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974/2 "2026-09-18T11:55:35Z")

</div>

If you are on SaaS win New RUM experience enabled, you can query it using DQL:

```markup
fetch user.events
| filter characteristics.classifier == "error"
| filter characteristics.has_crash == true

```

For Classic RUM (or if you are in Managed, which has only Classic RUM), there is no API. The session data can be accessed only by USQL API, there is no API access to the raw data which is used to display the screens in UI

---

<div class="post-metadata">

**Author:** ![tushar\_supe](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@tushar\_supe](https://community.dynatrace.com/u/tushar_supe)\
**Post date:** [September 22, 2026, 2:52pm UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974/3 "2026-09-22T14:52:27Z")

</div>

**How can I retrieve mobile application crash logs from Dynatrace using the Grail API?**

- Can mobile crash events and stack traces be accessed through the Grail API?
- What are the prerequisites for accessing the Grail API?
- How do I generate the required API token?
- Which token scopes/permissions are required to query mobile crash data?
- Are there any specific IAM policies, roles, or access permissions that need to be configured?
- Could you provide the relevant documentation and example API requests for retrieving crash events and stack traces?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 22, 2026, 7:26pm UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974/4 "2026-09-22T19:26:27Z")

</div>

[@tushar\_supe](https://community.dynatrace.com/user/108572)&nbsp;I’d recommend using dtctl (&nbsp;[GitHub - Dynatrace/dtctl: CLI for managing Dynatrace platform resources - built for humans and AI agents · GitHub](https://github.com/dynatrace-oss/dtctl)&nbsp;) if you want it programmatically:

```markup
dtctl auth login --context playground --environment https://playground.apps.dynatrace.com
dtctl query "fetch user.events | filter characteristics.classifier == \"error\"| filter characteristics.has_crash == true" -o yaml

```

You can also use MCP server of course, especially in an AI workfow. Also see official skills&nbsp;[GitHub - Dynatrace/dynatrace-for-ai: Skills, prompts, and instructions for building AI agents on top of Dynatrace production context · GitHub](https://github.com/Dynatrace/dynatrace-for-ai)&nbsp;if you want to go with this path. Those skills already include mobile frontend analysis skills.

And last but not least, if you really need API access directly,

- [Access platform APIs from outside | Dynatrace Developer](https://developer.dynatrace.com/develop/guides/access-platform-apis-from-outside)&nbsp;- for accessing and tokens required, you can authenticate using the oauth service with your user or you can generate a platform token at [https://myaccount.dynatrace.com](https://myaccount.dynatrace.com)&nbsp;.
- [Grail service | Dynatrace Developer](https://developer.dynatrace.com/develop/platform-services/services/grail-service/#grail-query-api)
- You can access the swagger ui for your environment at&nbsp;[https://\<env\>.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Grail±+DQL+Query#/Query%20Execution/query%3Aexecute](https://community.dynatrace.com/)&nbsp;just replace \<env\> with your environment name.

IAM permissions required are storage:buckets:read and storage:user.events:read, see&nbsp;[https://docs.dynatrace.com/docs/shortlink/iam-policystatements](https://docs.dynatrace.com/docs/shortlink/iam-policystatements#storage-user-events-read)  
For permission setup, I recommend reaching out to your Dynatrace admin.

---

<div class="post-metadata">

**Author:** ![Christoph\_Neum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christoph_neum/32/21662_2.png) [@Christoph\_Neum](https://community.dynatrace.com/u/Christoph_Neum)\
**Post date:** [September 24, 2026, 5:19pm UTC](https://community.dynatrace.com/t/how-to-retrieve-mobile-app-crash-stack-traces-via-api-in-dynatrace/56974/5 "2026-09-24T17:19:54Z")

</div>

In dtctl, you can actually explore and call ANY Dynatrace API via **dtctl get apis** , **dtctl describe api** , **dtctl exec api**.

See&nbsp;[dtctl/docs/resources/api-discovery.md at main · Dynatrace/dtctl · GitHub](https://github.com/dynatrace-oss/dtctl/blob/main/docs/resources/api-discovery.md)
