# Serverless Functions

Serverless functions are runtime+code units attached to Apps, used in Webhooks and other extensibility points.

## Get a serverless function

 - [GET /api/v2/apps/{appUuid}/serverless-functions/{uuid}](https://developer.caraer.com/apis/serverless-functions/show.md): Retrieves a serverless function by its UUID, ensuring it belongs to the specified app.

## Update a serverless function

 - [PUT /api/v2/apps/{appUuid}/serverless-functions/{uuid}](https://developer.caraer.com/apis/serverless-functions/update_1.md): Updates an existing serverless function's runtime and code, keeping it attached to the same app.

## Create a serverless function

 - [POST /api/v2/apps/{appUuid}/serverless-functions](https://developer.caraer.com/apis/serverless-functions/create_1.md): Creates a new serverless function attached to the specified app.

## Test a serverless function

 - [POST /api/v2/apps/{appUuid}/serverless-functions/{uuid}/test](https://developer.caraer.com/apis/serverless-functions/testserverlessfunction.md): Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks.

## List serverless functions for an app

 - [POST /api/v2/apps/{appUuid}/serverless-functions/index](https://developer.caraer.com/apis/serverless-functions/index_2.md): Retrieves a paginated list of serverless functions that belong to the specified app.

