This page describes the “Web request received” trigger. To send web requests to an external server from an existing workflow, use the “Send web request” action.
Setup
When you connect the Primer Web Requests app you get a webhook URL that you can sendJSON
requests to.
Starting a workflow using this trigger
Any request sent to this URL will start a workflow when a published workflow using this trigger exists.Restrictions
The trigger currently has the following restrictions:- only valid JSON payloads are supported
- the webhook will return an empty response. Use the “Send web request” action if you want to send data to another system.
Using the request payload
AJSON
payload can be passed with the web request, but is optional. If provided, the payload is available as “unstructured data” in the output of the trigger.
An example payload could be the following JSON:
JSON

Condition example

Condition example
Preventing accidental triggers
You can use trigger conditions to prevent a workflow from being started unless a value defined by yourself is passed through. This could serve as a check for the right payload, or just a custom key that you pass. In this example, a field calledcustomRequestType
with the value TICKET_WORKFLOW
is part of the payload.

Trigger condition example
customRequestType
then no workflow is started.
Start automating
- Now that you know what can be achieved with this trigger, start creating a workflow.
- Debug received requests or requests sent within the Workflow Runs