Discussions

Ask a Question
Back to All

Getting "Authorization Required" everytime

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'
--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