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.
Language FDK SDK Integration Python 3.10–3.12 Built-in FalconPy (context authentication) Go 1.21+ foundry-fn-go goFalcon
Environment Languages Features Foundry CLI Python, Go Full local development, testing, debugging Browser Editor Python only In-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:
return Response( body = { "message" : "success" }, code = 200 )
if __name__ == '__main__' :
fdk " github.com/CrowdStrike/foundry-fn-go "
func handler ( ctx context . Context , request fdk . Request ) fdk . Response {
Body : map [ string ] interface {}{ "message" : "success" },
Field Type Description bodyobject The request payload paramsobject Query parameters urlstring The request URL methodstring HTTP method contextobject Execution context (app ID, CID, user info)
Field Type Description bodyobject The response payload codeinteger HTTP status code errorsarray Optional error messages headersobject Optional response headers
Limit Value Maximum request payload 124 KB (JSON portion; files in requests may be larger) Maximum response payload 120 KB Default execution timeout 30 seconds (configurable up to 900 seconds) Default memory 256 MB (configurable up to 1 GB) Maximum concurrent executions 100 Maximum package size (including dependencies) 50 MB