foliot docs

API reference / Runs / Start a run

Start a run

POST/apps/{appId}/runs

Authenticate with an operator token or an app API key or a signed-in Foliot Console session.

With an idempotencyKey, a repeat returns the EXISTING run and created: false with a 200 rather than a 201 — so retrying a start is safe. Omitting version resolves to the highest registered version at this instant.

Path parameters

appId
string
REQUIRED

The app's name.

Request body

businessKey
string
OPTIONAL

Your own identifier, for signalling later without tracking run ids.

max length 200

idempotencyKey
string
OPTIONAL

max length 200

input
any
OPTIONAL
startAfter
OPTIONAL
tags
string[]
OPTIONAL

max 20 items

version
integer (int64)
OPTIONAL

min 1 · max 2147483647

workflow
string
REQUIRED

min length 1

Responses

200 object A run with this idempotency key already existed; it is returned unchanged.
201 object Created
400 Error Invalid request.
401 Error Missing, malformed or unknown bearer token.
403 Error The token is valid but not permitted on this route.
404 Error No such resource.
503 Error A dependency this route needs is unreachable.