Skip to content
Hoody.com

Execute scripts as HTTP endpoints via POST requests. The script execution service maps URL paths to script files, allowing you to trigger scripts by sending HTTP requests. Path routing follows Next.js-style conventions, supporting nested directories and segments such as scripts/handle-webhook.

POST /{path}

Execute a script identified by its path. The path supports Next.js-style routing. Any JSON body sent in the request is forwarded to the script at execution time.

NameInTypeRequiredDescription
pathpathstringYesScript path (supports Next.js-style routing)

The request accepts a JSON body of arbitrary shape. The body contents are forwarded to the script; no specific schema is enforced.

{
"data": "example payload"
}

Script executed successfully.

{
"status": "success",
"result": "Script completed"
}
Terminal window
curl -X POST "https://{projectId}-{containerId}-exec-1.{server}.containers.hoody.com/scripts/handle-webhook" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"data": "example payload"}'