# Getting "Authorization Required" everytime

**URL:** <https://community.servicem8.com/t/getting-authorization-required-everytime/602>\
**Category:** API & SDK\
**Created:** [May 27, 2022, 6:19am UTC](https://community.servicem8.com/t/getting-authorization-required-everytime/602 "2022-05-27T06:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [May 27, 2022, 6:19am UTC](https://community.servicem8.com/t/getting-authorization-required-everytime/602/1 "2022-05-27T06:19:16Z")

</div>

**Originally posted by Bipin**

Team,

I want to register call back url for webhook to receive updated when client’s data get change/updated on servicem8.

Getting “Authorization Required” every time while subscribing for the webhook callback url. What i’m missing here.? can you give me step to do this?

* * *

curl --location --request POST ‘[https://api.servicem8.com/webhook\_subscriptions](https://api.servicem8.com/webhook_subscriptions)’   
–header ‘Authorization: bearer [AccessToken]’   
–header ‘Accept: application/json’   
–header ‘Content-Type: application/x-www-form-urlencoded’   
–form ‘object=“Company”’   
–form ‘fields=“Active”’   
–form ‘callback\_url=“[Webhook\_Server\_Callback\_URL]”’

* * *

OUT PUT : Authorization Required

---

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [August 7, 2022, 4:45pm UTC](https://community.servicem8.com/t/getting-authorization-required-everytime/602/2 "2022-08-07T16:45:32Z")

</div>

I am having the same issue and would be great if anybody could offer any advice!
