Skip to content
Navigation

Start a playbook run in a space

Starts a new durable agentic run of a playbook in this space. Authorization: requires space:contribute on the space (org admins bypass); missing permission → 403. Body: playbookId (required — the playbook to run) and fileScope, which is either { mode: "space" } (the agent may see all files in the space) or { mode: "picked", fileIds: [...] } (1–200 explicit file ids). Optional prompt (1–4000 chars) is the request that founds the run: it is frozen into the run’s immutable snapshot and stays part of the agent’s standing instructions for every turn — use steer to say anything after launch. spaceType is resolved from the space record server-side and is NOT accepted from the caller. Returns 404 when the space does not exist. On success returns 201 { data: PlaybookRun } — the created run with its immutable snapshot of the playbook captured at launch time.

POST
https://api.cloudraker.com/spaces/{spaceId}/playbook-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

  • playbookId
    string
    required
    minLength: 1
  • fileScope
    required

    One of the following:

    • object
      • mode
        space
        required
    • object
      • mode
        picked
        required
      • fileIds
        array of
        string
        required
        minLength: 1
  • prompt
    optional
    string

    The request that founds the run, frozen into its immutable snapshot and kept in the agent’s standing instructions. Use steer for anything after launch.

    maxLength: 4000 · minLength: 1

Returns

201

The created playbook run.

JSON
  • data
    object
    required
    • id
      string
      required
    • spaceId
      string
      required
    • playbookId
      string
      required
    • playbookVersion
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • playbookName
      string
      required
    • status
      running
      or
      waiting_approval
      or
      waiting_action
      or
      waiting_user
      or
      paused
      or
      completed
      +2 more
      required
    • fileScope
      PlaybookFileScope
      required

      One of the following:

      • object
        • mode
          string
          required
      • object
        • mode
          string
          required
        • fileIds
          array of
          string
          required
          minLength: 1
    • taskProgress
      object
      required
      • total
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • completed
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
    • pendingApproval
      required

      Any of the following:

      • object
        • id
          string
          required
        • kind
          pre
          or
          post
          required
        • actionName
          string
          required
        • requestedAt
          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))$
      • null
    • result
      string | null
      required
    • error
      string | null
      required
    • startedBy
      string
      required
    • 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))$
    • updatedAt
      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))$
    • finishedAt
      required

      Any of the following:

      • string
      • null
    • currentActivity
      string | null
      required
    • snapshot
      object
      required

      The playbook as captured at launch. Later edits never affect a run.

      • playbookId
        string
        required
      • version
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • name
        string
        required
      • description
        string
        required
      • tasks
        array of
        object
        required
        • id
          string
          required
        • title
          string
          required
        • dependsOn
          array of
          string
          required
        • status
          pending
          or
          ready
          or
          in_progress
          or
          completed
          or
          skipped
          required
        • summary
          string | null
          required
        • completedAt
          required

          Any of the following:

          • string
          • null
        • instructions
          optional
          string | null
        • executor
          optional
          agent
          or
          human
        • assignee
          optional
          string | null
        • claimedBy
          optional
          string | null
        • completedBy
          optional
          string | null
        • note
          optional
          string | null
        • fileIds
          optional
          array of
          string
      • actions
        array of
        object
        required
        • installedActionId
          string
          required
        • preApproval
          boolean
          required
        • postApproval
          boolean
          required
        • dependsOn
          array of
          string
          required
        • actionSlug
          string
          required
        • actionName
          string
          required
        • trigger
          agent
          or
          user
          required
        • browserSession
          required

          Any of the following:

          • object
            • status
              pairing
              or
              live
              or
              ended
              or
              expired
              required
            • 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))$
          • null
      • fileScope
        PlaybookFileScope
        required

        One of the following:

        • object
          • mode
            string
            required
        • object
          • mode
            string
            required
          • fileIds
            array of
            string
            required
            minLength: 1

404

Space not found

Type to search…

↑↓ navigate↵ selectEsc close