Webhook creation with header authentication using API

Venkatesh_S
New Contributor

Hello,

I am trying to create a webhook using API as mentioned in https://developer.jamf.com/jamf-pro/reference/createwebhookbyid with <authentication_type>HEADER</authentication_type>

I am unable to find any documentation on how to pass the header information in the API. As per https://learn.jamf.com/en-US/bundle/jamf-pro-documentation-current/page/Webhooks.html

header information needs to be sent as key value pairs but not sure how to pass in the API. 

I get this error,

Error: Header information is required
 
Can someone shed some light on this.

 

1 REPLY 1

sgonschorek
New Contributor III

Just found your post.

It´s all in the docu: https://learn.jamf.com/de-DE/bundle/jamf-pro-documentation-current/page/Webhooks.html

Just add your bearer token to the authentication.

sgonschorek_0-1740438766999.png
If you call a Okta Workflow, you get the token if you user the API Endpoint. For other platforms take care that the token doesn´t expire.

sgonschorek_1-1740438889360.png

best

Stephan