⌨️HTTP Hook
Also known as type: http, allowedEnvVars
A hook that sends the event to a web server.
Think of it like
It is like you post a letter. Then you wait for the reply.
Example
Emma's team has one server that holds its rules. Each laptop sends its events there. So one list of rules covers the whole team.
Why it matters
It moves hook logic to one shared place instead of a script on every machine.
Definition
Example code
json
{
"type": "http",
"url": "https://hooks.example.com/check",
"headers": { "Authorization": "Bearer $MY_TOKEN" },
"allowedEnvVars": ["MY_TOKEN"]
}Common mistake
Key takeaways
- 1POST to a web address. JSON body.
- 2Same answer shape. As a command.
- 3Failures do not block. Unless set to.