---
title: "Export Workflow"
method: GET
path: "/v2/workflows/export"
tags: ["Workflows V2"]
---

# Export Workflow

`GET /v2/workflows/export`

## Request

- Base URL: `https://hostname/api/integrationmanager`
- URL: `https://hostname/api/integrationmanager/v2/workflows/export`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INTEGRATIONS`

Use this API to export an integration workflow as a JSON file.

## Query parameters

- `workflowName` string, required

## Response `200`

OK

- WorkflowActionsV2Request
  - `formatVersion` string: Version of the workflow definition format.
  - `name` string, required: Workflow name.
  - `description` string: Workflow description.
  - `enabled` boolean: Whether this workflow is enabled.
  - `workflowType` 'CUSTOM' | 'COMPOSITE' | 'CONFIG' | 'PRESET', required: Workflow type.
  - `integrationName` string: Integration name that owns this workflow.
  - `referenceIntegrationName` string: Reference integration name when this is a template workflow.
  - `dlqEnabled` boolean: Whether Dead Letter Queue (DLQ) is enabled for this workflow.
  - `sourceType` 'SEED' | 'USER_DEFINED' | 'INSTANCE' | 'PRESET_INSTANCE' | 'RULE' | 'CUSTOM_WIZARD_WORKFLOW' | 'EMBEDDED': Integration source type.
  - `processType` 'HTTP' | 'FTP' | 'FILEPARSER' | 'FILEGENERATOR' | 'TRANSFORM' | 'SOURCE' | 'SQL' | 'SINK' | 'MESSAGELOG' | 'CONDITION' | 'APPLYEACH' | 'EMAILACTION' | 'PAGINATION' | 'FILEUPLOAD' | 'SUBFLOW' | 'HTTPFILEUPLOAD' | 'DOWHILE' | 'SOAPACTION' | 'SDKACTION': Process type for this workflow node.
  - `throttlingLimit` integer: Maximum concurrent executions (throttle limit) for the workflow.
  - `defaultDlqAction` 'NONE' | 'PURGE' | 'REPROCESS': Default action when a DLQ event occurs (NONE, PURGE, or REPROCESS).
  - `trigger` WorkflowTriggerDto, required
    - `id` string, uuid: The unique identifier for id.
    - `name` string, required: Trigger name.
    - `workflowName` string: Workflow name that this trigger belongs to.
    - `workflowId` string, uuid, required: Workflow ID that this trigger belongs to.
    - `triggerType` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG', required: Trigger type.
    - `triggerContext` union: Context payload specific to the trigger type.
      - BaseTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
      - ConfigTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
        - `eventCode` string
      - EventTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
        - `eventCode` string
        - `condition` union
          - AndExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
          - BinaryExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `lookupField` string
            - `operator` 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'EQUAL_TO' | 'NOT_EQUAL_TO' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'STARTS_WITH' | 'ENDS_WITH', required
            - `value` string
            - `name` string
            - `valueLoad` string
          - NotExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `operand` AbstractExpression
              - …
          - OrExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
        - `baseCondition` union
          - AndExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
          - BinaryExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `lookupField` string
            - `operator` 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'EQUAL_TO' | 'NOT_EQUAL_TO' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'STARTS_WITH' | 'ENDS_WITH', required
            - `value` string
            - `name` string
            - `valueLoad` string
          - NotExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `operand` AbstractExpression
              - …
          - OrExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
        - `preCondition` union
          - AndExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
          - BinaryExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `lookupField` string
            - `operator` 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'EQUAL_TO' | 'NOT_EQUAL_TO' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'STARTS_WITH' | 'ENDS_WITH', required
            - `value` string
            - `name` string
            - `valueLoad` string
          - NotExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `operand` AbstractExpression
              - …
          - OrExpression
            - `type` 'AND_EXPRESSION' | 'OR_EXPRESSION' | 'NOT_EXPRESSION' | 'BINARY_EXPRESSION'
            - `expressions` AbstractExpression[]
              - …
      - ScheduledTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
        - `cronExpression` string
        - `dateTime` ScheduleDateTime
          - `seconds` string
          - `minutes` string
          - `hours` ScheduleDateTimeField
            - `label` string
            - `value` string
            - `cronExp` string
          - `dayOfMonth` string
          - `month` string
          - `dayOfWeek` ScheduleDateTimeField
            - `label` string
            - `value` string
            - `cronExp` string
          - `startMonth` string
          - `year` string
          - `frequency` ScheduleDateTimeField
            - `label` string
            - `value` string
            - `cronExp` string
          - `frequencyIntervalTracker` string
        - `runManual` boolean
        - `isRunManual` boolean
      - SubflowTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
        - `eventCode` string
        - `referenceUrl` string
      - WebHookTrigger
        - `type` 'EVENT' | 'SCHEDULED' | 'WEBHOOK' | 'SUBFLOW' | 'CONFIG'
        - `webhook` boolean
        - `subFlow` boolean
        - `config` boolean
        - `eventCode` string
        - `referenceUrl` string
        - `schema` string
        - `sample` string
        - `decryptionRequired` boolean
        - `decryptionCredentialId` string, uuid
    - `description` string: Trigger description.
    - `eventCode` string: Event code that activates this workflow.
    - `schema` string: JSON schema describing the expected trigger payload.
    - `lookupFields` LookupFields
      - `fields` FieldDescription[]: List of fields.
        - `key` string: Value for key.
        - `name` string: Value for name.
        - `body` string: Value for body.
        - `example` string: Value for example.
        - `type` string: Value for type.
        - `jsonPath` string: Value for json path.
        - `displayName` string: Value for display name.
      - `step` string: Value for step.
    - `sample` string: Sample trigger payload.
  - `actions` unknown[]: List of actions.
    - unknown
  - `directions` unknown[]: List of directions.
    - unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/platform-integrations.md) - [All operations](https://skmtc.dev/onetrust/apis/platform-integrations/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/platform-integrations/revisions/d62d8e62c759?raw)
