# Device has no access to release\_tag

**URL:** <https://forums.balena.io/t/device-has-no-access-to-release-tag/17335>\
**Category:** Product support\
**Created:** [June 28, 2019, 8:48am UTC](https://forums.balena.io/t/device-has-no-access-to-release-tag/17335 "2019-06-28T08:48:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UncleSam](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/unclesam/32/965_2.png) [@UncleSam](https://forums.balena.io/u/UncleSam)\
**Post date:** [June 28, 2019, 8:48am UTC](https://forums.balena.io/t/device-has-no-access-to-release-tag/17335/1 "2019-06-28T08:48:52Z")

</div>

In our application (running on the IoT device) we want to show the user the version number of an available update.

As @krix [mentioned](https://forums.balena.io/t/human-readable-alias-for-commit-id/3359), it would be nice to be able to give a “version number” to a release.

In the meantime we are trying to get this working with tags, but unfortunately it seems that the API token provided on the device doesn’t have the right to query `release_tag`:

```auto
> curl "https://api.balena-cloud.com/v4/release?\$select=id,commit,created_at&\$expand=release_tag(\$select=tag_key,value)&\$filter=status%20eq%20'success'&\$orderby=created_at%20desc" -H "Content-Type: application/json" -H "Authorization: Bearer $BALENA_API_KEY" 
Unauthorized

```

If I do the same with a regular user token, it works:

```auto
> curl "https://api.balena-cloud.com/v4/release?\$select=id,commit,created_at&\$expand=release_tag(\$select=tag_key,value)&\$filter=status%20eq%20'success'&\$orderby=created_at%20desc" -H "Content-Type: application/json" -H "Authorization: Bearer <my secret token>" | jq .
{
  "d": [
    {
      "release_tag": [
        {
          "tag_key": "version",
          "value": "0.0.1",
          "__metadata": {
            "uri": "/resin/release_tag(undefined)",
            "type": ""
          }
        }
      ],
      "id": 974434,
      "commit": "c4c91a761d78895a8ee2c51148d4a3df87add480",
      "created_at": "2019-06-28T08:38:00.950Z",
      "__metadata": {
        "uri": "/resin/release(974434)",
        "type": ""
      }
    },
...

```

I see no reason why a device should not have access to `release_tag` for its own releases (as it has access to `release`).

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [June 28, 2019, 9:27am UTC](https://forums.balena.io/t/device-has-no-access-to-release-tag/17335/2 "2019-06-28T09:27:59Z")

</div>

Hi,  
I think this should be fine to allow devices to read release\_tags, but I’ll create an internal ticket to discuss this and we will get back with feedback when we have any news.

---

<div class="post-metadata">

**Author:** ![UncleSam](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/unclesam/32/965_2.png) [@UncleSam](https://forums.balena.io/u/UncleSam)\
**Post date:** [July 2, 2019, 5:52am UTC](https://forums.balena.io/t/device-has-no-access-to-release-tag/17335/6 "2019-07-02T05:52:17Z")

</div>

Thanks for your quick response. I’m looking forward to your feedback. 🙂

---

<div class="post-metadata">

**Author:** ![nazrhom](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nazrhom](https://forums.balena.io/u/nazrhom)\
**Post date:** [February 13, 2020, 3:13pm UTC](https://forums.balena.io/t/device-has-no-access-to-release-tag/17335/9 "2020-02-13T15:13:59Z")

</div>

Hey @UncleSam, sorry for not giving you an update sooner, but I wanted to let you know that we implemented your suggestion; as a matter of fact it was deployed a couple of minutes ago, so it should already be available in production.  
Thanks for the feedback, and let us know if everything is working as expected for you.
