- Secret: some apps generate it and don’t let you choose it (Slack, Stripe); paste it in The app’s secret. Others let you choose it (GitHub): click Generate and copy it into the app.
- Signature header: the header where the app sends the signature.
- What is signed: the text the app computes the signature from.
{body} is the request body as it arrives, {header:name} is that header’s value and {hora:name} is the time the app sends in that header. With {hora:…}, a request older than 5 minutes is refused. If the time comes inside another header, as in Stripe, write {hora:name.t}.
Values for each app
With What is signed empty, the app sends the secret itself in the header, a token. It proves who sends the request but doesn’t protect the body: use it only with apps that don’t sign.
Test the setup
Send a test event from the app and click Try with the last request. Tuqui shows what arrived and what happened at each step: the header, the time and the signature. You can change the secret and both fields and try again before you save. A request without the signature header gets an answer and doesn’t fire the agent. That is how apps that test the URL before they sign accept it.What the agent does with the event
The agent gets the request body, up to 128 KB, as data and not as instructions. What it does with it is up to its instructions.- If the app sends the same event again, Tuqui recognizes it by the body and the headers in What is signed, and doesn’t run twice. With a token, or with What is signed set to
{body}alone, two equal bodies within 24 hours run once. - If the body carries nothing but
challenge,typeandtoken, as when Slack verifies the URL, Tuqui sends back the value ofchallengeand the agent doesn’t run. - Odoo doesn’t come in through the webhook: it fires agents with the Odoo action. See Agents.