Enspace
    • Introduction
    • Authentication
    • Concepts
    • First Steps
    • Workspaces
      • Types
        • Fields
          • List Fields
          • Create Field
          • Get Field
          • Field Updated
          • Delete Field
        • Items
          • List Items
          • Create Item
          • Count Items
          • Get Item
          • Update Item
          • Delete item
        • Flows
          • Stages
            • Tasks
              • List Tasks
              • Get specific Task
              • New Task
            • List Stages
            • Get specific Stage
          • List Flows
          • Get specific Flow
        • Forms
          • List Form
          • Get specific Form
          • List Form Create
        • List Types
        • Count Types
        • Get specific Type
        • Create Type
        • Update Type
        • Delete Type
      • Members
        • List Members
        • Count Members
        • Get Member
        • New Member
        • Update Member
        • Remove Member
      • Roles
        • List roles
        • Create role
        • Count roles
        • Get specific role
        • Update role
        • Delete role
        • List Role Permissions
        • Add Permission to Role
        • Remove Role Permission
      • Member Groups
        • List groups
        • New group
        • Get group
        • Update group
        • Delete group
        • Add Users
        • Remove Users
      • Quick Tasks
        • List Quick Tasks
        • Count Quick Tasks
        • Get Quick Task
        • Delete Quick Task
        • Update Quick Task
        • New Quick Task
      • Integrations
        • CertiSign
        • Docusign
        • D4Sign
        • Clicksign
        • Adobe Sign
        • Whatsapp Twilio
        • SendGrid
        • OpenAi
        • Integration
        • New Integration
      • Schedule Tasks
        • List Schedule Tasks
        • Get specify Schedule Task
      • List Workspaces
      • Workspace Context
      • New Workspace
      • Leave the workspace
      • Workspace Statistics
      • Workspace Deletion Preview
      • Delete Workspace
    • User
      • Request Log
      • List API Keys
    • Schemas
      • Schemas
        • Members
          • MemberUpdate
          • MemberCreate
          • Member
        • Roles
          • Role
          • RoleCreate
          • RoleUpdate
        • MemberGroups
          • MemberGroup
          • MemberGroupCreate
          • MemberGroupUpdate
        • Types
          • Type
          • TypeInput
          • TypeDetail
        • Items
          • Item
          • ItemInput
        • Workspace
          • WorkspaceContext
          • WorkspaceStats
          • Workspace
          • WorkspaceCreate
          • WorkspaceUpdate
        • Tasks
          • Tasks
        • Flow
          • Flow
        • Stages
          • Stage
        • Forms
          • Forms
        • Integrations
          • Integrations
        • User
        • RequestLog
        • UserApiKey
        • SuccessResponse
        • ErrorResponse
        • Field
        • FieldInput
        • Permission
        • PermissionInput
      • Response
        • BadRequest
        • Unauthorized
        • Forbidden
        • NotFound
        • ServerError
      • Position
      • Dimensions
      • NodeType
      • WorkflowNodeDefinition
      • WorkflowEdgeDefinition
      • TaskFields
      • TriggerNodeData
      • CronConfig
      • StartNodeData
      • EndNodeData
      • ApprovalNodeData
      • TaskNodeData
      • FormNodeData
      • EmailNodeData
      • ConditionalsNodeData
      • ConditionalRule
      • ConditionalsNodeData_examples_inline
      • RouteNodeData
      • RouteRule
      • MergeNodeData
      • CrudNodeData
      • HttpNodeData
      • Error
      • AiNodeData
      • ComparisonNotificationNodeData
      • Workflow
      • WorkflowCreate
      • WorkflowUpdate
      • WorkflowExecution
      • NodeExecution

    Workflow

    {
        "id": 1,
        "name": "Fluxo de Aprovação de Contratos",
        "description": "Workflow para aprovação de novos contratos com valor acima de R$5.000",
        "workspace": "ws_abc123",
        "group": 5,
        "reference": "wf_aprovacao_contratos_x7k",
        "icon": "mdi:file-document-check",
        "status": "active",
        "trigger_ref": "event::c_items:contracts::create",
        "version": "1.2.0",
        "active_version": null,
        "nodes": [
            {
                "id": "trigger_1",
                "type": "trigger",
                "label": "Contrato Criado",
                "data": {
                    "type": "event",
                    "scope": "c_items:contracts",
                    "action": "create"
                },
                "position": {
                    "x": 100,
                    "y": 200
                }
            },
            {
                "id": "cond_1",
                "type": "conditionals",
                "label": "Valor > 5000?",
                "data": {
                    "conditionals": {
                        "and": [
                            {
                                "field": "value",
                                "op": "gt",
                                "value": 5000
                            }
                        ]
                    }
                },
                "position": {
                    "x": 350,
                    "y": 200
                }
            },
            {
                "id": "approval_1",
                "type": "approval",
                "label": "Aprovação Gestor",
                "data": {
                    "task_name": "Aprovar contrato",
                    "priority": "high",
                    "assign_to": "user_gestor"
                },
                "position": {
                    "x": 600,
                    "y": 150
                }
            },
            {
                "id": "email_1",
                "type": "email",
                "label": "Notificar",
                "data": {
                    "subject": "Novo contrato",
                    "body": "<p>Contrato registrado.</p>",
                    "to": [
                        "operacao@empresa.com"
                    ]
                },
                "position": {
                    "x": 600,
                    "y": 300
                }
            },
            {
                "id": "end_1",
                "type": "end",
                "label": "Fim",
                "position": {
                    "x": 850,
                    "y": 200
                }
            }
        ],
        "edges": [
            {
                "id": "e1",
                "source": "trigger_1",
                "target": "cond_1"
            },
            {
                "id": "e2",
                "label": "Sim",
                "source": "cond_1",
                "target": "approval_1"
            },
            {
                "id": "e3",
                "label": "Não",
                "source": "cond_1",
                "target": "email_1"
            },
            {
                "id": "e4",
                "source": "approval_1",
                "target": "end_1"
            },
            {
                "id": "e5",
                "source": "email_1",
                "target": "end_1"
            }
        ],
        "settings": {},
        "meta": {},
        "created_at": "2026-01-15T10:30:00.000Z",
        "updated_at": "2026-02-20T14:15:00.000Z",
        "deleted_at": null
    }
    Built with