# Why is JSON API --access-token-file no longer needed

**URL:** <https://forum.canton.network/t/why-is-json-api-access-token-file-no-longer-needed/3234>\
**Category:** App Development\
**Tags:** json-api\
**Created:** [September 30, 2021, 7:17am UTC](https://forum.canton.network/t/why-is-json-api-access-token-file-no-longer-needed/3234 "2021-09-30T07:17:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huw](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/huw/32/2343_2.png) [@huw](https://forum.canton.network/u/huw)\
**Post date:** [September 30, 2021, 7:17am UTC](https://forum.canton.network/t/why-is-json-api-access-token-file-no-longer-needed/3234/1 "2021-09-30T07:17:37Z")

</div>

I noticed that in DAML connect release 1.17.0 that the `--access-token-file` CLI option for the JSON API is no longer needed and therefore deprecated. Why is this? Doesn’t the JSON API need to download packages from the ledger to get the template/choice schemas?

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [September 30, 2021, 7:45am UTC](https://forum.canton.network/t/why-is-json-api-access-token-file-no-longer-needed/3234/2 "2021-09-30T07:45:29Z")

</div>

The HTTP JSON API now uses the token in the requests to (if needed) update its package cache.

If you want to know more about why we made this change, the tl;dr is that this simplifies deployments and you can find more details in the [issue on GitHub](https://github.com/digital-asset/daml/issues/10192) (and if you want all the nitty gritty implementation details there’s a link to the PR that made this happen there).

---

<div class="post-metadata">

**Author:** ![huw](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/huw/32/2343_2.png) [@huw](https://forum.canton.network/u/huw)\
**Post date:** [September 30, 2021, 11:13pm UTC](https://forum.canton.network/t/why-is-json-api-access-token-file-no-longer-needed/3234/3 "2021-09-30T23:13:05Z")

</div>

Thanks for that explanation. I can see why this change is useful as I’ve been working on building some customized scripts myself for refreshing the token file. Good to see I no longer need them 🙂
