hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

APIs & Connections

$definewebhook--plain-english

Webhook

TLDRAn app that pings you the moment something happens.

A normal API call is you asking. A webhook is them telling you, the second it matters.

You do not sit in a loop asking Stripe "did they pay yet?" You publish one public endpoint — POST /webhooks/stripe — and you walk away. When the charge lands, Stripe knocks. The body is a receipt. You check the signature. You write a row. Then you go back to the demo.

Asking on a timer is the long way

That loop is polling. Fine for "refresh this list every minute." Fatal when the thing you care about lasts two seconds and your loop is asleep. A webhook flips the direction. You leave a return address. They POST when the world changes.

The URL must be public. Localhost is invisible to Stripe. You deploy the route, or you tunnel it. Judges will not wait while you refresh a dashboard.

Typical knocks at a hackathon:

  • Polar or Stripe: payment succeeded, or it bounced
  • GitHub: a pull request opened
  • Your own app: a judge submitted, so Slack lights up

Do not trust the knock

Anyone who finds the URL can ring it. The body arriving is not proof. Verify the signature the vendor documented. Reject the rest. Update the database only after that check.

Skip the check and a stranger can fake a paid invoice. Skip deploy and the vendor cannot reach you at all. An agent will happily scaffold the route. It will not remember the verify step unless you ask.

What this unlocks

You stop asking. The event comes to you.

Automation is not a person watching a screen. It is a door that only opens when something real happens.

Related

  • API
  • Endpoint
  • HTTP Methods
PrevSDK

APIs & Connections

NextEndpoint