SDKActive

Netlify SDK

Netlify SDK: More flexibility and credits now available for Pro plans 🎉 Netlify Documentation Build & deploy faster with any modern frontend stack or AI agent.

Open source page ↗

Field note

What it does

More flexibility and credits now available for Pro plans 🎉 Build / Functions / Functions API reference For the complete documentation index, see llms.txt Copy page View as Markdown Copy as Markdown View as Markdown This page provides a full reference of the Netlify Serverless Functions API. Function signature Section titled “Function signature” A function file exports a default handler that runs in response to an event. The signature depends on the type of event the function responds to. Web requests Section titled “Web requests” A function that responds to web requests receives a Request representing the incoming request and a Context object with Netlify-specific metadata. The handler returns a Response . Two equivalent forms are supported: Bare function syntax Fetchable module import type { Context } from " @netlify/functions " export default async ( req : Request , context : Context ) => { return new Response ( " Hello, world! " ) } { return new Response("Hello, world!")}"> import type { NetlifyFunction } from " @netlify/functions " export default { fetch : ( req , context ) => { return new Response ( " Hello, world! " ) }, } satisfies NetlifyFunction { return new Response("Hello, world!") },} satisfies NetlifyFunction"> The second form is a Fetchable module , a common shape for fetch-style handlers across JavaScript frameworks and runtimes.

Capabilities

Available capabilities

Tags

Tags

No tags filed yet.

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

account

Background mode

Context object

cookies

deploy

Function signature

Functions API reference

params

Platform events

requestId

Streaming responses

Web requests