# How to get IonResource id 1240402

**URL:** <https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818>\
**Category:** Cesium ion\
**Created:** [August 2, 2023, 2:36pm UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818 "2023-08-02T14:36:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanghai1988](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/wanghai1988/32/15220_2.png) [@wanghai1988](https://community.cesium.com/u/wanghai1988)\
**Post date:** [August 2, 2023, 2:36pm UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/1 "2023-08-02T14:36:29Z")

</div>

I am a newbie, I am learning to use Cesium through [https://sandcastle.cesium.com/](https://sandcastle.cesium.com/), but when I run this line of code `const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(1240402); `returns 401, I know my token cannot To access this resource, I would like to know how can I have permission to access this resource, or can it be downloaded locally?

---

<div class="post-metadata">

**Author:** ![Ankit\_Trehan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_trehan/32/14038_2.png) [@Ankit\_Trehan](https://community.cesium.com/u/Ankit_Trehan)\
**Post date:** [August 7, 2023, 8:24pm UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/2 "2023-08-07T20:24:27Z")

</div>

Hi @wanghai1988,

Could you please describe your use case and what you are trying to achieve with this particular asset? But to also better understand what errors you may be seeing would be able to share a sandcastle link?

You won’t be able to download the asset locally but if you are trying to create a sandcastle with this tileset you shouldn’t need a token. See a sample sandcastle with this asset: [Cesium Sandcastle](https://sandcastle.cesium.com/#c=bY/BTsMwEER/xcopSMhpS2+kEahcKiFxoOLki2tvYYXtjbxOovbrcZIiENQXa3bm7diGAifRIwwQxUYEGMQWGDsv36ZZqQoz6S2FpDFAVMXNvQpm4hI6YEgZ1IPG9I3O193TfrblMZLfUXjkLHa2XK7Wi/ViNa4RQoW5XLKBALKN6DFhDyy1teWlYIxeYmciv6cfo7gtak4nB824bTwP6FuKSXTRlVJWCXzrdAKuDp35zK8xzHO1EHX1G60t9gLt5sqXhXGaOTvHzrlXPIMqmrrK+X+oI20xvL/0EJ0+jbGPZfM8D6WUdZXldTIRuYOOfzZ/AQ)

Thanks,  
Ankit

---

<div class="post-metadata">

**Author:** ![yuan1405](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@yuan1405](https://community.cesium.com/u/yuan1405)\
**Post date:** [September 18, 2023, 8:51am UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/3 "2023-09-18T08:51:45Z")

</div>

@Ankit_Trehan The same Problem. How can i download the asset which one ID is 1240402?

---

<div class="post-metadata">

**Author:** ![Ankit\_Trehan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_trehan/32/14038_2.png) [@Ankit\_Trehan](https://community.cesium.com/u/Ankit_Trehan)\
**Post date:** [September 18, 2023, 12:08pm UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/4 "2023-09-18T12:08:35Z")

</div>

Hi,

Do you want to download the asset locally or view it on sandcastle? Like I said in my previous message you won’t be able to download the asset locally through sandcastle. Please describe what your desired outcome is in more detail with trying to download the asset locally so that we can assist you better.

Thanks,  
Ankit

---

<div class="post-metadata">

**Author:** ![yuan1405](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@yuan1405](https://community.cesium.com/u/yuan1405)\
**Post date:** [September 19, 2023, 1:33am UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/5 "2023-09-19T01:33:50Z")

</div>

@Ankit_Trehan OK, i want to download the asset locally, maybe you can email to me the asset directly also.  
And, can you tell me, which type is this asset? I can not detail the asset in CesiumIon.

---

<div class="post-metadata">

**Author:** ![Ankit\_Trehan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_trehan/32/14038_2.png) [@Ankit\_Trehan](https://community.cesium.com/u/Ankit_Trehan)\
**Post date:** [September 19, 2023, 11:59am UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/6 "2023-09-19T11:59:54Z")

</div>

Hi,

Can you please describe why you want to download the asset locally or your use case for it? It will help us to provide better support to you.

This is a BIM/CAD model that is now converted to 3D Tiles. The reason it doesn’t show up on your account is that it isn’t a shared asset depot asset.

Thanks,  
Ankit

---

<div class="post-metadata">

**Author:** ![yuan1405](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@yuan1405](https://community.cesium.com/u/yuan1405)\
**Post date:** [September 25, 2023, 8:02am UTC](https://community.cesium.com/t/how-to-get-ionresource-id-1240402/25818/7 "2023-09-25T08:02:48Z")

</div>

@Ankit_Trehan I just want to see data structure of this type. It’s just a personal thought. Maybe i’m digging into model, and i can’t describe my reason in detail.  
And, my BIM data have not a better data processing scheme, It’s complex, multi-level.
