Skip to main content

Webhook executions

Webhooks are endpoints that you can provide to other external ecosystems.

This is very handy because it allows you to trigger actions in your process from external systems.


From the process page, you may find the triggers section on the right sidebar.

Once you press the Add + button, you can create a webhook passing optional authentication params. If you don't provide an user and password, no autentication would be needed to start the process, so take care about it!

After creating the webhook, you can see the generated URL link and cURL command.

Congrats! Your webhook is ready for external requests.

Invoking webhooks externally

Just make an http POST to test your configured webhook, use a tool like Postman, Insomnia or curl in your terminal.

Payloads passed from request body are included in yepcode.context.parameters. For example if we invoke a process that echoes the parameters:

// my echo process
const { context: { parameters } } = yepcode

return parameters

Invoke it using curl from terminal with a dummy payload:

curl -X POST -H "Content-Type: application/json" -d '{"name": "John Doe"}' \
# {"name":"John Doe"}

Request headers

  • Yep-Version-Tag: Specify your process version tag to run a concrete version of your process. (optional)
  • Yep-Async: Choose to run the webhook synchronously or asynchronously. Sync executions will wait the process to finish before returning the response, while async executions will respond instantly with 201 http code. (optional) default:true

Query parameters

  • async: Same as Yep-Async header. It takes precedence over the header. (optional) default:true

Response headers

  • Yep-Execution-ID: All requests to webhooks returns this header indicating the execution id.
  • Location header: async executions returns this header indicating the location of the execution.

Tips & examples


The response for async executions (when you set Yep-Async: true or async query param is true) will contain a Location header with the url of the execution

Here you have some sample requests with a sandbox process:

Execute current version and async mode (Yep-Async header)
curl --location --request POST '' \
--header 'Yep-Async: true'
Execute current version and async mode
curl --location --request POST '' \
Execute concrete version and sync mode
curl --location --request POST '' \
--header 'Yep-Version-Tag: v1.0.0' \
--header 'Yep-Async: false'
Execute current version and sync mode (Yep-Async header)
curl --location --request POST '' \
--header 'Yep-Async: false'
Execute current version and sync mode
curl --location --request POST '' \

You can come back to this information in Copy options in webhook menu.