title: How to trigger my "Incoming Webhook" Service Connection in Azure DevOps (OnPremise)? The Endpoint URL is unknown
body: <p>Overview: I try to trigger an Azure DevOps 2020 Pipeline (YAML) in the event that a WorkItem of a specific type is created. So my idea I had was to create a connection between &quot;WorkItem&quot; -&gt; Service Hook of Type &quot;Web Hook&quot; -&gt; Service Connection of Type &quot;Incoming Webhook&quot; -&gt; resource:webhook triggers the Pipeline in YAML.</p>
  <p>My problem now is, that I could create the serviceendpoint by GUI or by API, but the documentation and the created endpoint does not make sense for me. I am running my server on-premise and the endpoint I got looks like this:</p>
  <pre><code>{&quot;count&quot;:1,&quot;value&quot;:[{&quot;data&quot;:{},&quot;id&quot;:&quot;1babbef7-1edb-4b01-bf18-b6e3c309caae&quot;,&quot;name&quot;:&quot;TestIncomingWebhook&quot;,&quot;type&quot;:&quot;incomingwebhook&quot;,&quot;url&quot;:&quot;https://dev.azure.com&quot;, ...
  </code></pre>
  <p>The url does not make sense to me.</p>
  <p>I can alter the url if I use the REST API to create the endpoint by using this format</p>
  <pre><code>POST https://{instance}/{collection}/{project}/_apis/serviceendpoint/endpoints
  </code></pre>
  <p>as described in <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/create?view=azure-devops-server-rest-5.0" rel="nofollow noreferrer">Microsoft Azure API Documentation</a>.</p>
  <p>Questions:</p>
  <ol>
  <li>Why is the url that the service connection gets pointed to <a href="https://dev.azure.com" rel="nofollow noreferrer">https://dev.azure.com</a> while I am running on-premise from a server on a totally different url? Would that be the url I have to POST to trigger the ServiceConnection?</li>
  <li>What must be the correct URL-Format for my local Server? Where should I point that URL to?</li>
  <li>How can I trigger the Service Connection from curl? Do I have to use GET with a lot of parameters or POST with a JSON payload?</li>
  </ol>
  <p>I would appreciate if someone could help me out on this. Perhaps someone even got a full solution on how to trigger pipelines on workitem events. I searched a lot but could not find a solution, yet.</p>
  <p>Thanks, Peter.</p>
  <p>I created the WebHook and ServiceConnection from the GUI like this:</p>
  <ul>
  <li><a href="https://i.stack.imgur.com/8VDD6.jpg" rel="nofollow noreferrer">WebHook Configuration Screenshot</a></li>
  <li><a href="https://i.stack.imgur.com/div7x.jpg" rel="nofollow noreferrer">ServiceHook Configuration Screenshot</a></li>
  </ul>
  <p>My real problem is, that I got no feedback what the correct ServiceHook URL is. I have no idea where to point my WebHook.</p>
  <p>Addition:
  The correct URL for accessing the Incoming Webhook Service Endpoint in Azure DevOps is https://{instance}/{Collection name}/_apis/public/distributedtask/webhooks/{Service Connection name}?api-version=6.0-preview</p>