Add a webhook trigger
A webhook trigger starts a workflow when an external system sends an HTTP POST request to a generated endpoint URL. Use webhook triggers to integrate workflows with CI/CD pipelines, monitoring tools, or any external application that can send HTTP callbacks.
Before you begin
- You have access to the workflow builder.
- The workflow is in an editable state.
- The external system that calls the webhook can reach the automation orchestrator API endpoint.
About this task
If you are creating a new workflow, select the Webhook option from the Add step panel and then begin this procedure at step 3.
Note:
Webhook endpoints are unauthenticated by default. If you do not configure an authorized service account, any system that can reach the endpoint URL can trigger the workflow. To secure the endpoint, select at least one authorized service account during trigger configuration. The external system must then authenticate with a Bearer token from that service account.
Procedure
Results
To start the workflow from an external system, obtain a Bearer token from the authorized service account. Then send a POST request to the generated endpoint URL.
- Request a token using the service account client credentials.
curl -X POST https://orchestrator-host/api/v1/auth/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=client_credentials" \ -d "client_id=service-account-client-id" \ -d "client_secret=service-account-client-secret" - Send the webhook request with the Bearer token and a request body that matches the schema.
curl -X POST https://orchestrator-host/api/v1/webhooks/webhook-path \ -H "Authorization: Bearer access-token" \ -H "Content-Type: application/json" \ -d '{"key": "value"}'
Automation orchestrator passes the request body to the workflow as trigger input data. Downstream steps can reference these values as input variables during execution.