Skip to content
Navigation

Get one playbook run

Fetches one playbook run with full detail: current status, task progress, any pending approval, current activity, result/error, and the immutable snapshot of the playbook (tasks + actions + fileScope) captured at launch. Authorization: space:read (org admins bypass); missing → 404; 404 also when the run does not exist in this space. Returns { data: PlaybookRunDetail }.

GET
https://api.cloudraker.com/spaces/{spaceId}/playbook-runs/{runId}
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required
  • runId
    string
    required

Returns

200

The playbook run, with its launch snapshot.

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

Run not found, or caller lacks space:read

Type to search…

↑↓ navigate↵ selectEsc close