Functions · Customer documentation
Publish a small JavaScript HTTP handler at a URL.
What you prepare
A small JavaScript HTTP handler.
Steps in the workspace
- 01Enter JavaScript code.
- 02Send a test request to the URL.
- 03Call it from your application or automation.
Example request / integration
Publish a function that uppercases a query string and returns JSON.
// Example source for the workspace editor:
export default {
async fetch(request) {
const name = new URL(request.url).searchParams.get('name') || 'world';
return Response.json({ hello: name });
}
};
// After creation, call the actual runtime URL from the result.Examples use placeholders: replace $BASE_URL, $SESSION_TOKEN and issued URLs with real values. Never publish session tokens or API keys in a webpage or repository.
Management API entry point
POST /api/picosvc/functions/appsName and JavaScript code with a fetch(request) handler returning a Response.
Callable function URL and HTTP response.
What it does not do
Not a general-purpose server supporting arbitrary packages or long-running workloads.
Feature comparison and sources
Function development and delivery:Register small JavaScript handlers as HTTP functions.
Vercel Functions:Documents server-side functions integrated with application frameworks and scaling.
Feature comparison and sources · Vercel Functions ↗The product overview is public. The workspace handles creation, editing and history. The all-service dashboard shows usage and links for all 16 tools.