---
title: "Export Workflow Version"
method: POST
path: "/organizations/{orgId}/integrationdestinations/workflows/import"
tags: ["IntegrationDestinations"]
---

# Export Workflow Version

`POST /organizations/{orgId}/integrationdestinations/workflows/import`

## Request

- Base URL: `https://api.m3ter.com`
- URL: `https://api.m3ter.com/organizations/{orgId}/integrationdestinations/workflows/import`
- Auth: OAuth 2
  - Authorization code: `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize`, token URL `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/token`
  - Client credentials, token URL `/oauth/token`
- TypeScript: <https://skmtc.dev/m3ter-com/apis/m3ter-api/docs/organizations/:orgId/integrationdestinations/workflows/import/post.ts> (a function with typed inputs; its response is checked against the schema)

Import a workflow.

## Path parameters

- `orgId` string, required

## Request body

- WorkflowPayload
  - `name` string, required
  - `code` string, required
  - `description` string, required
  - `originalOrgId` string, required
  - `version` integer, required
  - `versionDescription` string, required
  - `functions` AbstractFunctionRequest[], required
    - `functionId` string
    - `title` string
    - `description` string
    - `className` string
    - `parameters` object
    - `exits` object
      - `TRUE` string
      - `FALSE` string
      - `VALID` string
      - `INVALID` string
      - `NEXT` string
      - `TERMINATE` string
      - `ERROR` string
  - `globalParameters` AbstractGlobalParameter[], required
    - `name` string
    - `type` string, required
    - `constraints` object
  - `trigger` WorkflowTrigger, required
    - `enabled` boolean: whether or not the trigger is enabled.
    - `firstFunction` string: Function ID of the next function to run
  - `transformations` TransformationExportPayload[], required
    - `orgId` string, required
    - `transformationId` string, required
    - `name` string, required
    - `code` string, required
    - `description` string, required
    - `sourceSystem` string, required
    - `destinationSystem` string, required
    - `sourceTable` string, required
    - `destinationTable` string, required
    - `transformations` AbstractLookupResponse[], required
      - `destinationField` string, required
      - `type` 'CALCULATION' | 'STATIC' | 'LOOKUP', required
  - `credentials` CredentialsExportPayload[], required
    - `credentialsId` string, required
    - `name` string, required
    - `destinationType` 'WEBHOOK' | 'NETSUITE' | 'STRIPE' | 'STRIPE_TEST' | 'AWS' | 'PADDLE' | 'PADDLE_SANDBOX' | 'SALESFORCE' | 'XERO' | 'CHARGEBEE' | 'QUICKBOOKS' | 'QUICKBOOKS_SANDBOX' | 'M3TER', required
    - `type` 'OAUTH_CODE' | 'OAUTH_CLIENT_CREDENTIALS' | 'HTTP_BASIC' | 'M3TER_SIGNED_REQUEST' | 'AWS_INTEGRATION' | 'PADDLE' | 'NETSUITE' | 'CHARGEBEE' | 'M3TER_APP_SIGNATURE' | 'M3TER_SERVICE_USER' | 'STRIPE_SIGNED_REQUEST' | 'OPSGENIE_KEY' | 'SAP_BYD' | 'HUBSPOT_ACCESS_TOKEN' | 'HUBSPOT_CLIENT_SECRET' | 'SLACK_WEBHOOK' | 'SAGE_INTACCT_CLIENT_CREDENTIALS' | 'SAGE_INTACCT_CLIENT_SECRET' | 'STATIC_API_KEY' | 'GCP_WIF' | 'SNS_REQUEST', required
  - `webhooks` WebhookExportPayload[], required
    - `webhookDestinationId` string, required
    - `webhookUrl` string, required

## Response `200`

ImportWorkflow 200 response

- WorkflowDestinationResponse
  - `trigger` WorkflowTrigger
    - `enabled` boolean: whether or not the trigger is enabled.
    - `firstFunction` string: Function ID of the next function to run
  - `functions` AbstractFunctionRequest[]
    - `functionId` string
    - `title` string
    - `description` string
    - `className` string
    - `parameters` object
    - `exits` object
      - `TRUE` string
      - `FALSE` string
      - `VALID` string
      - `INVALID` string
      - `NEXT` string
      - `TERMINATE` string
      - `ERROR` string
  - `globalParameters` AbstractGlobalParameter[]
    - `name` string
    - `type` string, required
    - `constraints` object
  - `templateOverrides` object
  - `enabled` boolean
  - `validationErrors` object
  - `currentVersion` integer
  - `workflowVersion` integer
  - `draft` boolean
  - `useDraftVersion` boolean
  - `versions` VersionDetailResponse[]
    - `version` integer
    - `description` string
    - `dtCreated` string, date-time
    - `createdBy` string
    - `draftVersion` string
    - `templateId` string
    - `platform` boolean
    - `templateVersion` integer
  - `drafts` VersionDetailResponse[]
    - `version` integer
    - `description` string
    - `dtCreated` string, date-time
    - `createdBy` string
    - `draftVersion` string
    - `templateId` string
    - `platform` boolean
    - `templateVersion` integer
  - `id` string, required: The UUID of the entity.
  - `version` integer: The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - `dtCreated` string, date-time: The DateTime when this item was created *(in ISO-8601 format)*.
  - `dtLastModified` string, date-time: The DateTime when this item was last modified *(in ISO-8601 format)*.
  - `createdBy` string: The ID of the user who created this item.
  - `lastModifiedBy` string: The ID of the user who last modified this item.
  - `name` string
  - `description` string
  - `code` string
  - `active` boolean

## Other responses

- `4XX`: Error message
- `5XX`: Error message

## Changes

- **2026-10-16** `85c514abc692`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/organizations/:orgId/integrationdestinations/workflows/import/post.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) - [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/m3ter-com/apis/m3ter-api/revisions/85c514abc692?raw)
