Run an app's code now

Changed on

Runs the saved handler on a stored event (the latest when event_id is omitted) or on a body you pass, and answers with its logs and return value. Counts as a run. Nothing is delivered; whatever the code itself sends does happen.

post/api/v1/apps/{slug}/code/test

Request

  • Base URL: https://anyhook.net
  • URL: https://anyhook.net/api/v1/apps/{slug}/code/test
  • Auth: HTTP bearer

Path parameters

slugstring required

Request body

event_idstring uuid
bodyunknown

Response

The run's outcome (ok is false when the handler threw)

okboolean
valueunknown
exportsunknown
exitedstring

Set when the handler ended early with $.flow.exit.

errorstring
logsstring

Console output, last 16,000 characters.

msinteger
event_idstring uuid nullable

Changes