Start runs from a webhook
Trigger an agent from another system with any JSON body, check each call with an API key or a signature, and retry deliveries without duplicate runs.
Last updated 10 days ago
Use an inbound webhook to start a run from an event in another system, for example a new signup in PostHog or a pull request on GitHub. The endpoint returns the run ID after creation; it doesn't wait for the result.
Before you start
- Test the agent with a manual run.
- You must be the app's owner to turn the webhook on or change how it checks calls. Other members see its settings read-only.
Turn on the webhook
Each agent has one webhook. It is off until the owner turns it on.
- Open the agent and select the Settings tab.
- Under Triggers → Webhook, turn on On.
- Copy the URL.
The URL has the form https://<server>/api/webhooks/trigger/<agentId>/<token>. Treat it as a secret. Turning the webhook off stops the URL. Turning it on again makes a new URL, so a URL that leaked stops working.
Choose how calls are checked
Select an option under Authentication and select Save.
Get an organization API key from workspace Settings → API keys, with an organization admin's help if needed.
For HMAC, enter the sender's settings from its documentation:
The signature must be the HMAC-SHA256 of the raw request body. For Standard Webhooks, paste the signing secret, which starts with whsec_. A call more than 5 minutes old is refused.
Pump Up never shows a saved secret again. Paste it each time you save these settings.
Send JSON
Send any JSON object. The whole body becomes the run's input data, exactly as sent. The run's name is the agent's name and the time.
curl --request POST "$PUMPUP_WEBHOOK_URL" \ --header "Authorization: Bearer $PUMPUP_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: signup-4821" \ --data '{"event": "user_signed_up", "person": {"email": "ana@example.com", "plan": "trial"}}'A successful request returns 201 Created:
{"id": "0123456789abcdef01234567"}The id identifies the run. Follow it in Pump Up.
The body must be a JSON object. An array, a plain value, or a form-encoded body is refused. The webhook doesn't accept files.
The agent reads the input data as it is. Tell the agent in its instructions which fields matter, for example "The new user's email is at person.email".
Avoid duplicate runs
A sender may deliver one event more than once. Pump Up starts one run per event id, and a repeated id returns the existing run with the same 201 response. It does not update that run's input.
Without an event id, each delivery starts a new run. Two concurrent requests with the same id can produce a 409; retry with the same id to retrieve the existing run.
Handle errors
Use the app to inspect runs and answer requests. A general public REST API and SDK aren't available.