Get function
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
functionIdstringrequiredZavu Function ID.
Responses
200Function details.
functionobjectrequiredA Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to messaging events or HTTP requests.
14 properties
idstringrequiredslugstringrequiredURL-safe identifier, unique per project.
namestringrequireddescriptionstringruntimestringrequiredRuntime the function is deployed on.
One ofnodejs24statusstringrequiredLifecycle status of a Zavu Function.
One ofdraftbundlingdeployingactivefaileddisabledtimeoutSecintegerrequiredPer-invocation timeout in seconds.
memoryMbintegerrequiredMemory allocation in MB.
httpEnabledbooleanrequiredWhether the function can be invoked over HTTPS via its public URL.
publicUrlstring<uri>HTTPS endpoint, present only while httpEnabled is true. Null otherwise, including for a function that was previously exposed — the stored URL stops serving the moment HTTP is turned off, so it is never returned.
dependenciesobjectrequirednpm dependencies installed in the function bundle. Keys are package names, values are semver ranges.
1 properties
{key}string
activeDeploymentIdstringID of the deployment currently serving traffic.
createdAtstring<date-time>requiredupdatedAtstring<date-time>required
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Function not found.
codestringrequiredmessagestringrequireddetailsobject