Skip to main content
POST
Run a server function on the draft

Authorizations

Authorization
string
header
required

Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.

Path Parameters

websiteId
string
required
Minimum string length: 1
name
string
required

An http server function.

Minimum string length: 1

Body

application/json
payload
any

The handler's first argument, as JSON.

Response

The run id and the result: { ok: true, data } or { ok: false, error }.

runId
string
required
result
object
required