Skip to main content
API version 2024.0 Box Relay Workflows are objects that represent a named collection of flows. Your application must be authorized to use the Manage Box Relay application scope within the developer console in order to use this resource.
This resource has a few variations that can be encountered when using the API.The fields that are part of the standard variant are generally returned when the resource is requested via its own API endpoints. For example, when retrieving a file by ID, it will return these fields unless the fields parameter has been specified.
id
string
example: 11446498The unique identifier for the workflow.
type
string
example: workflowThe value will always be workflow.Value is always workflow
description
string
example: This workflow sets off a new hire approval flowThe description for a workflow.
flows
object[]
A list of flows assigned to a workflow.
is_enabled
boolean
example: trueSpecifies if this workflow is enabled.
name
string
example: New Hire WorkflowThe name of the workflow.
{
  "id": "11446498",
  "type": "workflow",
  "description": "This workflow sets off a new hire approval flow",
  "flows": [
    {
      "created_at": "2012-12-12T10:53:43-08:00",
      "created_by": {
        "id": "11446498",
        "type": "user"
      },
      "id": "12345",
      "outcomes": [
        {
          "action_type": "assign_task",
          "id": "12345",
          "if_rejected": [
            {
              "action_type": "assign_task",
              "id": "12345",
              "name": "Approval Rejection Outcome",
              "type": "outcome"
            }
          ],
          "name": "Task Approval Outcome",
          "type": "outcome"
        }
      ],
      "trigger": {
        "scope": [
          {
            "object": {
              "id": "12345",
              "type": "folder"
            },
            "ref": "/event/source/parameters/folder",
            "type": "trigger_scope"
          }
        ],
        "trigger_type": "WORKFLOW_MANUAL_START",
        "type": "trigger"
      },
      "type": "flow"
    }
  ],
  "is_enabled": true,
  "name": "New Hire Workflow"
}