List backend functions
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Returns the app's deployed backend functions, each with its code and the automations that run it.
Use it to pull the functions' source, for example before you change one and send it back with Redeploy a backend function. Every function comes back in one response, with no paging.
This is limited to 60 requests per minute per app for each workspace's personal API keys, so every key in a workspace shares one allowance. Some workspaces have a different limit.
<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused even though this endpoint only reads, and workspace API keys are not accepted.</Note>
<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>
Path parameters
ID of the app the functions belong to.
ID of the app the functions belong to.
Response
The app's backend functions.
Example response
{
"functions": [
{
"automations": [],
"entry": "main.ts",
"files": [
{
"content": "Deno.serve(async (req) => {\n return Response.json({ ok: true });\n});\n",
"path": "main.ts"
}
],
"name": "sendWelcomeEmail"
}
]
}