Skip to main content
POST
Create a Cloud Function
Safety and behavior notes
  • HTTP 201 does not guarantee a successful deployment; inspect deploy_error.
  • The database row is created before deployment completes, and a deployment failure still returns HTTP 201 with deploy_error.
  • name, description, trigger_event, and is_active are not protected by strict type or enum validation.

Authorizations

X-API-Key
string
header
required

API key for authentication. Keys are prefixed with nxr_live_.

Body

application/json
name
string
default:Untitled function
description
string
default:""
trigger_event
string
default:lead.created
code
string
default:""
is_active
boolean
default:true

Response

Successful response.

function
object
required
deploy_error
string | null
required
success
any
required

Observed top-level response field.

Last modified on September 8, 2026