Skip to content

Functions Overview

Functions are serverless compute units that run on the Falcon platform. They process requests, call APIs, read and write data, and return responses — all without managing infrastructure.

LanguageFDKSDK Integration
Python 3.10–3.12Built-inFalconPy (context authentication)
Go 1.21+foundry-fn-gogoFalcon
EnvironmentLanguagesFeatures
Foundry CLIPython, GoFull local development, testing, debugging
Browser EditorPython onlyIn-console editing, handler registration, one-click testing

Every function implements a handler that receives a request and returns a response.

from crowdstrike.foundry.function import Function, Request, Response
func = Function.instance()
@func.handler(method='POST', path='/my-endpoint')
def on_post(request: Request) -> Response:
body = request.body
# Process the request
return Response(body={"message": "success"}, code=200)
if __name__ == '__main__':
func.run()
package main
import (
fdk "github.com/CrowdStrike/foundry-fn-go"
)
func handler(ctx context.Context, request fdk.Request) fdk.Response {
return fdk.Response{
Body: map[string]interface{}{"message": "success"},
Code: 200,
}
}
FieldTypeDescription
bodyobjectThe request payload
paramsobjectQuery parameters
urlstringThe request URL
methodstringHTTP method
contextobjectExecution context (app ID, CID, user info)
FieldTypeDescription
bodyobjectThe response payload
codeintegerHTTP status code
errorsarrayOptional error messages
headersobjectOptional response headers
LimitValue
Maximum request payload124 KB (JSON portion; files in requests may be larger)
Maximum response payload120 KB
Default execution timeout30 seconds (configurable up to 900 seconds)
Default memory256 MB (configurable up to 1 GB)
Maximum concurrent executions100
Maximum package size (including dependencies)50 MB