# API call for obtaining the names from IDs

**URL:** <https://community.dynatrace.com/t/api-call-for-obtaining-the-names-from-ids/43809>\
**Category:** Open Q&A\
**Tags:** licensing\
**Created:** [January 24, 2024, 3:56pm UTC](https://community.dynatrace.com/t/api-call-for-obtaining-the-names-from-ids/43809 "2024-01-24T15:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weijing](https://avatars.discourse-cdn.com/v4/letter/w/13edae/32.png) [@weijing](https://community.dynatrace.com/u/weijing)\
**Post date:** [January 24, 2024, 3:56pm UTC](https://community.dynatrace.com/t/api-call-for-obtaining-the-names-from-ids/43809/1 "2024-01-24T15:56:15Z")

</div>

The documentation on “Export licensing data” references “testID,” “osiID,” and “agentId.” I’m inquiring whether there are API calls in Dynatrace that can be utilized to retrieve the actual names corresponding to these IDs？

> **[Export license data](https://docs.dynatrace.com/managed/managed-cluster/operation/export-license-data)**
>
> Learn how to export license data from the Cluster Management Console.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 24, 2024, 5:23pm UTC](https://community.dynatrace.com/t/api-call-for-obtaining-the-names-from-ids/43809/2 "2024-01-24T17:23:38Z")

</div>

Hi,

I am not sure if I was able to understand you but I would try it with [Monitored entities API](https://docs.dynatrace.com/docs/shortlink/api-entities-v2-get-entity).

Best regards

---

<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:** [January 24, 2024, 6:58pm UTC](https://community.dynatrace.com/t/api-call-for-obtaining-the-names-from-ids/43809/3 "2024-01-24T18:58:31Z")

</div>

The osiID refers actually to the host ID, but has a different format. It’s possible to convert it if you need it. If you convert this large integer number to hex you will get the ID after HOST- so you can pair it with the host entities within an environment. AgentID refers to the agent ID (code modules).
