Start an action run in a space

View as Markdown
Starts a new action run scoped to the space in the path. Requires `space:contribute` on that space (denied → 403). The space is taken from the path — a `spaceId` in the body never scopes the run. Body: `actionSlug` (installed action to run, required, non-empty), `fileIds` (1–100 file IDs from the space to feed the run, each non-empty), optional `params` (free-form object passed to the action). Returns 201 `{ data: ActionRun }`; the run starts in status `running` — poll `getRun` for `awaiting_input` / `done` / `failed` plus its `outputs` and `artifacts`.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired

Request

A spaceId in the body is ignored: the run is scoped by the path.

actionSlugstringRequired>=1 character

Installed action to run, by id or per-organization slug.

fileIdslist of stringsRequired
Files from this space to feed the run.
paramsmap from strings to anyOptional

Per-run parameters for the action.

Response

The started run.
dataobject