Skip to main content
POST
Add a schedule or webhook trigger to a sandbox

Authorizations

Authorization
string
header
required

Your Styne API key: Authorization: Bearer $STYNE_API_KEY.

Path Parameters

id
string
required

Body

application/json

Create a trigger that delivers events into the sandbox.

type
any
required

schedule or webhook.

deliver
any
required

Where an event goes: {type: http, port, path}, {type: file, dir} or {type: command, command, timeout_seconds}.

schedule
any

For a schedule trigger: when it fires (see the triggers page).

webhook
any

For a webhook trigger: {verify, secret}.

keep_awake_seconds
integer

Seconds the sandbox is kept awake after an event.

Response

Success. The answer is described on https://docs.styne.ai/wake-triggers.