Create a webhook endpoint for a job and give the sender the URL. GearTrain verifies the sender and starts the job in a sandbox, so you do not need a public server, a TLS certificate, or a custom request handler.
The problem
Another service needs to tell your automation that something happened: a payment succeeded, a form was submitted, a build finished, or an alert fired. The service can send an HTTP request, but it needs a public URL that accepts it.
That means a server, a TLS certificate, a route, a request parser, signature verification, error handling, and a way to keep the process alive. For a small automation, the webhook receiver becomes a service of its own.
The usual options
| Option | Good fit | The friction |
|---|---|---|
| A small web server | You already operate services and need full control | You own uptime, TLS, routing, parsing, verification, logs, and deploys |
| A serverless function and API gateway | You want managed request handling | You still configure the gateway, function, permissions, deployment, and logs |
| A webhook relay | You need to forward events to another endpoint | It adds another service and another place to inspect failures |
| Zapier or n8n | The event maps directly to app actions | Custom validation, custom logic, and state become constrained |
| A hosted automation runtime | You want the receiver and the job together | You need to check that it supports the verification method and payload access you need |
Verification is often the hardest part. A public URL that accepts any request is not enough. You need to know the request came from the sender.
How GearTrain solves it
GearTrain combines the endpoint and the job:
- Add a webhook endpoint to a job and give the sender the URL.
- Choose a provider preset, Standard Webhooks, a custom HMAC signature, or an API key.
- Read the request body and delivery details through the
contextmodule. - Run the script in the sandbox with persistent files and secrets.
- Inspect every run in the console and history.
A job can have both a schedule and up to 10 active webhook endpoints. Endpoint creation and signing secrets stay in the web app. An agent can rename, enable, and disable existing endpoints if its scopes allow it.
The sender still needs to send a valid request. GearTrain handles the public endpoint, verification, execution, and run history around it.
What it looks like in practice
Create the endpoint in the web app: open the job that should receive the event, add a webhook endpoint, choose the provider preset, and give the URL to the sender. Then ask an agent to write the handler:
The webhook endpoint is ready. Write the handler to read the verified payload
and post the amount and customer to Slack when a payment succeeds. Run it once
and show me the console.
The outcome is a job with a verified endpoint, a run for each accepted delivery, and a console entry showing the payload handling. Rejected deliveries fail before the script runs.
When GearTrain is not the right fit
- The sender needs a long-lived connection rather than an HTTP request.
- The work is a high-volume stream that needs a dedicated queue.
- The handler must run continuously or keep a process in memory.
Use a dedicated ingestion service or a queue when the event stream is the product.