Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration
next ventures
pioneer fund
samsung next
y combinator
general catalyst

The world's best health apps run on Terra data

ProductsIntegrations Authentication Mobile Development Documentation GraphAPI
DocumentationAPI SDK Quickstart
CommunityBlog Research Community Podcast Github
CompanyAboutCareersCustomersBecome an IntegrationCookies PolicyGDPRPrivacy PolicyTerms of Purchase
© Terra API. 2025 — All rights reserved.

Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

< Blogs
Elliott Yu
Elliott Yu

November 15, 2022

Webhooks vs HTTP

HTTP (HyperText Transfer Protocol) has become a widely used standard protocol for communications between a server and a client.

Want to check your email? You (client) navigating to the email site will prompt an HTTP request to the server and return the emails you have in your inbox.

Want to buy new protein bars? You searching for ‘protein bars' online will also prompt an HTTP request to the server and return your back results for ‘protein bars'. This happens basically everywhere on the web. However, have you ever thought about the magic that happens when you pay using a third-party website (perhaps Stripe), and you receive an email from the company that sells your protein bars with your invoice right after payment? That's most likely due to a webhook event.

Webhook Event and HTTP Requests

HTTP requests are fun and all. However, how can you expect real-time event updates like the email of your purchase invoice with a simple server query? One way would be to constantly make requests to see if the update is available or not. Another (better way) is by utilizing webhooks.

Webhooks are nothing but simply an open endpoint on a server that accepts HTTP requests. Upon receiving this request, the server acts on it. For example, you pushing that purchase button on the portal creates an event that tells the original seller about your payment. This event is communicated to the original seller in the form of an HTTP request. The original seller would have an open endpoint (webhook) that will accept this request and send you an email with the invoice for your purchase.

In a way, you could then say all webhook events are HTTP requests but not all HTTP requests are webhook events.

Why use Webhooks?

The question then remains, why do we not just keep asking the server if the payment is complete or not? Theoretically, nothing is "wrong" with constantly asking (keep making HTTP requests) if the payment is done or not (this is called polling). However, this method of requests is incredibly wasteful in terms of resources and quite often undesired.

It is almost like instead of waiting for your waiter/waitress to bring you your food at a restaurant, you go up to the waiter/waitress and constantly ask if the food is done or not. What if you ordered a 7-course meal? You would have to constantly ask about 7 different items. It is a tad bit overkill. Why not just sit down and wait for your food?

Be resourceful

In the end, the decision to either use simple HTTP requests, webhooks, or other communication methods in your server comes down to you. Making use of different methods for different use cases can help you keep your service fast and efficient.

If you are expecting data but do not know when it will become available, try to use a webhook implementation. If you want to know something right away to display to your customers, make an HTTP request to the server.

Related Articles

5 Lessons for Standing Out at HLTH

December 5, 2024

5 Lessons for Standing Out at HLTH

5 lessons from team Terra API for making a lasting impact at HLTH: from engaging senses to building real touch points, here’s what we learned from the HLTH event.

Vanessa Neeff
Strava Pulls the Plug on their API: What This Means for Developers

November 21, 2024

Strava Pulls the Plug on their API: What This Means for Developers

Strava discontinued their API service, changing the ecosystem of third-party apps that have relied on their platform. How can developers react to this?

Terra APITerra API
Alternatives to the latest changes in the Strava API

November 19, 2024

Alternatives to the latest changes in the Strava API

Strava just introduced big changes to their API program. These changes will basically kill off a lot of apps. Use Terra API instead to avoid this

Kyriakos EleftheriouKyriakos Eleftheriou

More Topics

All Blogs
Team Spotlight
Startup Spotlight
How To
Blog
Podcast
Product Updates
Wearables
See All >
Head of Samsung Next: David Lee

Head of Samsung Next: David Lee

David Lee shares insights from his 30-year journey in healthcare and tech, revealing how his battle with stage four lymphoma shaped his career.

Kyriakos EleftheriouKyriakos Eleftheriou
May 1, 2026
HYROX CGO: Douglas Gremmen

HYROX CGO: Douglas Gremmen

Douglas Gremmen shares how HYROX sold 42,000 tickets in a day and expanded to 15,000 gyms worldwide.

Kyriakos EleftheriouKyriakos Eleftheriou
April 8, 2026
CTO + Director of AI at Flo Health: Roman Bugaev + Vladislav Nedosekin

CTO + Director of AI at Flo Health: Roman Bugaev + Vladislav Nedosekin

Roman Bugaev and Vladislav Nedosekin discuss scaling Flo Health to 80 million users and the AI innovations driving their growth.

Kyriakos EleftheriouKyriakos Eleftheriou
March 2, 2026
Glovo and Yellow.vc Co-Founder: Sacha Michaud

Glovo and Yellow.vc Co-Founder: Sacha Michaud

Sacha Michaud shares how Glovo scaled to 25+ countries and a $2.3 billion acquisition, starting with a simple text button app.

Kyriakos EleftheriouKyriakos Eleftheriou
January 18, 2026
Thriva CTO: Tom Livesey

Thriva CTO: Tom Livesey

Tom Livesey, CTO of Thriva, discusses how the company scaled to deliver over 4 million tests and raised $11 million.

Kyriakos EleftheriouKyriakos Eleftheriou
October 21, 2025