Skip to content
Glossary · System design

Webhook

Also called HTTP callback.

Definition

An HTTP request one system sends to a URL you choose as soon as an event happens, so you do not have to keep asking.

Last updated

What it is.

Instead of your app checking every minute whether a payment has cleared, the payment provider calls your webhook URL the moment it does, with the details in the request body. Your server reads it, acts on it and replies with a success code.

Webhooks are a simple form of event-driven architecture across company lines. Most providers sign each call so you can check it is genuine, and retry when your server does not answer.

Why it matters

Webhooks are how payments, e-signatures, shipping updates and many other integrations report back. They are faster and cheaper than polling. Because providers retry, the same event can arrive more than once, so handlers must be built to cope.

In a product build

We verify the signature, store the raw event, reply fast and do the real work in a background job from a message queue. Handlers are made idempotent by event ID, and there is a screen or script to replay failed events.

Watch out

Common mistakes.

  1. 01

    Skipping signature checks, so anyone who finds the URL can fake events.

  2. 02

    Doing slow work before replying, which causes timeouts and duplicate retries.

  3. 03

    Assuming events arrive once and in order. They can do neither.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab