Functions
Create binding
Wire a Raff-managed resource into the function. A binding mints a scoped credential (its own database role / S3 key — independent of the resource's main credentials) and injects it as read-only system env vars ({PREFIX}_URL, {PREFIX}_HOST, … for databases; {PREFIX}_ENDPOINT, {PREFIX}_ACCESS_KEY, … for buckets). Database bindings connect over Raff's private service fabric — traffic never leaves the platform network. Live functions roll a zero-downtime config redeploy.
post/api/v1/functions/{function_id}/bindings
Path parameters
function_idstring required
Function ID, short id (fn-…), URL slug, or name
Request body
Response
Binding created