Automation
Endpoints
An endpoint is an address another system calls. SAPUGO checks the signature, stores the call, and starts a workflow.
An endpoint lets another system call your workspace. Stripe, GitHub, a shop, or your own service sends a signed request to an address SAPUGO gives you. SAPUGO checks the signature, stores the call, and starts a workflow.
A webhook is the other direction: SAPUGO tells another system about a change in your tables.
What you set up#
- Open Settings, then Endpoints, and create one.
- Choose the workflow that should run, and the sender. The sender decides where the signature sits.
- Copy the address into the other system.
- Paste the secret the other system shows, or copy the secret SAPUGO generated when the other system asks for one.
- Choose the group the workflow runs as.
The address answers as if it does not exist while it is paused or still waiting for a secret. A bad signature is rejected. After too many bad signatures the endpoint pauses and an admin is notified.
What the workflow receives#
The workflow starts with a request: the event id, the event type, when it arrived, the method, the headers, the query, the body, and the endpoint name. Headers that carry a secret are removed before the workflow sees them.
A filter can end with *, so invoice.* receives every invoice event and ignores the rest.
The same event id is stored once. Sending it again, or replaying it from the delivery list, does not create a second run for 24 hours.
In acknowledge mode the sender gets an accepted response as soon as the run is queued. In respond mode the sender waits a few seconds for the workflow to finish, and the workflow's result is the response.
From the Marketplace#
A blueprint can include an endpoint. The signing secret is never part of the blueprint. After install, the checklist shows the address and where to paste the secret. Upgrading the blueprint keeps the same address.
Discussions about this page
Stuck, or found something missing? Ask the community.