Server functions

Run a server function on the draft

Runs one of the draft site's http server functions with the website's secrets and returns its result, exactly as page code on the draft would receive it. It makes the function's real outgoing requests. Counts toward the plan's monthly calls.

post/websites/{websiteId}/functions/{name}/invoke

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websites/{websiteId}/functions/{name}/invoke
  • Auth: HTTP bearer

Path parameters

websiteIdstring required
namestring required

An http server function.

Request body

payloadunknown

Response

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

runIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.