Skip to content
Navigation

Start an action run in a space

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), optional config (inline action config, deep-merged over the install's saved config — inline wins, a null deletes a key outside schema, and an inline schema replaces the saved one whole, nulls included — and snapshotted onto the run, so an action can be run without saving its config first). Returns 201 { data: ActionRun }; the run starts in status running — poll getRun for awaiting_input / done / failed plus its outputs and artifacts.

POST
https://api.cloudraker.com/spaces/{spaceId}/runs
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required

Request body JSON required

  • actionSlug
    string
    required

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

    minLength: 1
  • fileIds
    array of
    string
    required

    Files from this space to feed the run.

    minLength: 1
  • params
    optional
    map of
    unknown

    Per-run parameters for the action.

  • config
    optional
    map of
    unknown

    Inline action config, deep-merged over the install's saved config (inline wins; a null deletes a key outside schema; an inline schema replaces the saved one whole, nulls included). Snapshotted onto the run.

Returns

201

The started run.

JSON
  • data
    object
    required
    • id
      string
      required
    • spaceId
      string
      required
    • actionSlug
      string
      required
    • actionVersion
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • installedActionId
      string
      required
    • configRevision
      required

      The revision of the saved config the run used. Null on a run created before revisions existed.

      Any of the following:

      • integer
      • null
    • configOverridden
      boolean
      required

      True when inline config changed the saved config for this run.

    • playbookRunId
      string | null
      required
    • status
      running
      or
      awaiting_input
      or
      done
      or
      failed
      required
    • error
      string | null
      required
    • output
      required

      The action’s JSON output, when it has one.

      Any of the following:

      • Option 1
      • null
    • artifacts
      array of
      object
      required

      Rendered links. Redacted for callers without space:contribute.

      • id
        string
        required
      • kind
        string
        required
      • title
        string
        required
      • url
        string
        required
      • open
        tab
        or
        embed
        required
    • awaitingInput
      array of
      object
      required

      Open human steps while the run is awaiting_input.

      • id
        string
        required
      • title
        string
        required
      • url
        string
        required
      • resolved
        boolean
        required
    • documents
      array of
      object
      required
      • fileId
        string
        required
      • name
        string
        required
      • contentType
        string | null
        required
    • outputs
      array of
      object
      required

      Downloadable byproducts; stream each with the run-output route.

      • fileId
        string
        required
      • kind
        string
        required
      • key
        string
        required
      • size
        number
        required
    • timeoutSeconds
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • lastEventAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • createdAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • createdBy
      string | null
      required
    • finishedAt
      required

      Any of the following:

      • string
      • null
    • config
      optional
      map of
      unknown

      The exact config used by this run, including inline overrides. Returned on the run detail read only.

    • apiRunId
      optional
      string

      The id of the /v1 run that started this run, for example exr_…. Absent when the run started another way.

Type to search…

↑↓ navigate↵ selectEsc close