Functions

Create function

Create a serverless function. The function serves at https://{slug}.fn.raffusercloud.com — the slug is your name plus a short random suffix, so names never collide across accounts.

Functions unlock after your first top-up of $5 or more (the money stays in your balance). Deploy code afterwards with a source upload and a deployment, or use a starter template.

Timeouts above 3600s require extended_timeout: true (max 86400s / 24h). Long runs bill wall-clock memory while they execute — there is no extra fee.

post/api/v1/functions

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Request body

namestring required
slugstring

Optional URL label base (a random suffix is always appended)

descriptionstring
runtime'python' | 'node' | 'go' | 'docker' required
region'us-east'
memory_mbinteger
timeout_secondsinteger
extended_timeoutboolean

Allow timeouts up to 86400s (24h)

min_scaleinteger
max_scaleinteger
source_type'console' | 'cli' | 'github'

Response

Function created (status pending until first deployment)

successboolean

Changes