Webhook Trigger

Send HTTP requests to webhooks and APIs using curl. Supports GET, POST, PUT, DELETE with headers and JSON payloads.

thinkfleetai 58d4fb3 1.2 KB Updated

File contents

Webhook Trigger

Send HTTP requests to any webhook or API endpoint.

POST JSON

curl -s -X POST "https://hooks.example.com/webhook" \
  -H "Content-Type: application/json" \
  -d '{"event":"deploy","status":"success"}' | jq .

POST with auth header

curl -s -X POST "https://api.example.com/notify" \
  -H "Authorization: Bearer $WEBHOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message":"Hello"}' | jq .

GET with query params

curl -s "https://api.example.com/status?service=web" \
  -H "Authorization: Bearer $API_TOKEN" | jq .

Slack incoming webhook

curl -s -X POST "$SLACK_WEBHOOK_URL" \
  -H "Content-Type: application/json" \
  -d '{"text":"Deployment complete :rocket:"}'

Discord webhook

curl -s -X POST "$DISCORD_WEBHOOK_URL" \
  -H "Content-Type: application/json" \
  -d '{"content":"Build succeeded!"}'

Notes

  • Always show the user the URL and payload before sending.
  • Use jq to format JSON responses.
  • For retries: curl --retry 3 --retry-delay 2.

thinkfleetai/thinkfleet-engine/tree/main/skills/webhook-trigger commit 58d4fb3375

Frequently asked questions

npx skillmds@latest add thinkfleetai/webhook-trigger