# \`Missing applicationId in access token\` error

**URL:** <https://forum.canton.network/t/missing-applicationid-in-access-token-error/2859>\
**Category:** App Development\
**Created:** [July 17, 2021, 1:15pm UTC](https://forum.canton.network/t/missing-applicationid-in-access-token-error/2859 "2021-07-17T13:15:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [July 17, 2021, 1:15pm UTC](https://forum.canton.network/t/missing-applicationid-in-access-token-error/2859/1 "2021-07-17T13:15:28Z")

</div>

I get this error when using an access token with the following payload:

```haskell
{
        "https://daml.com/ledger-api": {
          "ledgerId": "cc38051f-364d-4e13-be6a-4cc536ef69f1",
          "participantId": null,
          "applicationId": null,
          "admin": false,
          "actAs": ["ledger-party-beszerzes"],
          "readAs": ["ledger-party-beszerzes"]
        },
        "exp": 1893455999
        }

```

Also tried omitting the `null` fields, or set an arbitrary `applicationId`.

Also, I don’t know where my React app is using the `applicationId` when I specify it.

I’m still debugging the React call mentioned in an earlier question: [Could you help me debug a React `exerciseByKey` call?](https://discuss.daml.com/t/could-you-help-me-debug-a-react-exercisebykey-call/2858)

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [July 17, 2021, 1:37pm UTC](https://forum.canton.network/t/missing-applicationid-in-access-token-error/2859/2 "2021-07-17T13:37:37Z")

</div>

The JSON API requires that the `applicationID` is present. There is no way around this atm. You need a token with this field set. If you do not are about the value, you can use something more or less arbitrary provided it is a valid ledger string (1-255 characters, characters must be ascii alphanum or one of the following `._:-#/ `).

The gRPC API accepts tokens without an application id but you have to specify one in the payload when submitting a command.

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [July 17, 2021, 4:19pm UTC](https://forum.canton.network/t/missing-applicationid-in-access-token-error/2859/3 "2021-07-17T16:19:37Z")

</div>

Thanks, now it works.
