# Can't add custom payload data during machine t machine authentication (during client\_credentials token request)

**URL:** <https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130>\
**Category:** Get Help\
**Created:** [September 23, 2021, 6:54am UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130 "2021-09-23T06:54:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gregra/32/31549_2.png) [@gregra](https://community.auth0.com/u/gregra)\
**Post date:** [September 23, 2021, 6:54am UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130/1 "2021-09-23T06:54:45Z")

</div>

Hi,  
I’m experiencing the same behavior as described here:

> [@Adding custom payload data during M2M authentication(Client credentials flow)](https://community.auth0.com/t/adding-custom-payload-data-during-m2m-authentication-client-credentials-flow/59995):
>
> Hi, We are trying to pass some data in the form body when calling the “/oauth/token” endpoint during the m2m authentication using client client credential flow. payload custom data added : [.xyz Domain Names | Join Generation XYZ](http://xyz.com/temp=User_3123) grant\_type=client\_credentials client\_id=xx client\_secret=xxx audience=xxx http://xyz.com/temp=User\_3123 (Custom data in payload) Now, when making the call we have a hook that is currently able to find the custom payload data and performs some operation. Below is th…

When augmenting the request in the hook with a key that is a qualified URL (`http://example.com/foo`), this returns in the JWT payload. But when simply using a string key that is not in a URL format - `foo`, this key (and it’s value) are not added to the JWT.

Why is that?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [September 23, 2021, 7:15pm UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130/2 "2021-09-23T19:15:32Z")

</div>

> **[Create Custom Claims](https://auth0.com/docs/secure/tokens/json-web-tokens/create-custom-claims)**
>
> Learn how to create collision-resistant names for custom claims.

---

<div class="post-metadata">

**Author:** ![gregra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gregra/32/31549_2.png) [@gregra](https://community.auth0.com/u/gregra)\
**Post date:** [September 23, 2021, 7:24pm UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130/3 "2021-09-23T19:24:14Z")

</div>

@john.gateley Thanks. I was under the impression plain non-url links were supported too.

Thank you very much, we will work with full qualified URLs for custom claims.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 24, 2021, 10:11am UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130/4 "2021-09-24T10:11:32Z")

</div>

We’re here for you @gregra !

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 30, 2021, 9:29am UTC](https://community.auth0.com/t/cant-add-custom-payload-data-during-machine-t-machine-authentication-during-client-credentials-token-request/70130/5 "2021-09-30T09:29:28Z")

</div>


