Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Dynamics CRM 365 : AuthValue format for Webhook registration via REST API

(1) ShareShare
ReportReport
Posted on by 2
I am performing a webhook registration to Dynamics 365 CRM through Postman with Authentication(authtype) as 'HttpHeader', Below is the CURL.
 
curl --location 'https://org3a4.api.crm8.dynamics.com/api/data/v9.2/serviceendpoints' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ' \
--header 'Cookie: ARRAffinity=c52218673543ae327ac4ca6d4dded4e4985f806da4e2197009d540dbcf32d92715134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC893CD48D2A2530736814; ReqClientId=52a33499-a7ae-4d41-b337-521fb9d97796; orgId=27a4db60-3f18-ef11-9f86-002248d5cadc' \
--data '{
  "name": "Incident Create Webhook Postman with Auth",
  "url": "https://webhook.site/8afb4528-a43d-42b6-a777-2837b83a",
  "contract": 8,
  "authtype": 5, 
   "authvalue": "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ"
}'
I am not able to figure out the authvalue, format that should be passed. Above API giving Below error :
{
    "error": {
        "code": "0x80040203",
        "message": "AuthValue is Invalid. Please check the value and format and retry the operation."
    }
}
Can you please let us know the Correct format to add "authvalue" in Request Body?
  • Beemu Profile Picture
    Beemu 13 on at
    Dynamics CRM 365 : AuthValue format for Webhook registration via REST API
    Hi, 
     
    Did you get this to work? Now I'm in the same place.
    I copied workable data from Odata service, so all field requirements should be validated on my code, but AuthType : 5 (= Http Header) brings error.
    With other, like webhook key, service will be created.
     
    -Teemu 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans