• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Mal2994

Mal2994

jelpi

Public
Like
jelpi
Home
Code
7
.vtignore
deno.json
doc_blob.md
doc_http.md
index.html
H
main.tsx
std_blob.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
doc_http.md
Code
/
doc_http.md
Search
7/31/2025
Viewing readonly version of main branch: v55
View latest version
doc_http.md
title:
Basic examples
description:
Examples of basic HTTP triggers for common use cases

import Val from "@components/Val.astro";

HTTP triggers expose a public endpoint.

The simplest endpoint returns a simple JSON message:

Or you could return HTML with the corresponding Content-Type header:

This echoes request headers back in the response:

We can get and return the request URL's query parameters:

You can also get the body of POST requests:

To obtain the HTTP endpoint, use the "Copy HTTP endpoint" button in the ... menu.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.