# Export a workflow

`GET /export/workflows/{id}`

> This is a subset of the full specification, limited to the `GET /export/workflows/{id}` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.15/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.15'
  description: This is a subset of the full specification, limited to the `GET /export/workflows/{id}` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Workflows
    description: Everything about your Workflows
paths:
  /export/workflows/{id}:
    get:
      summary: Export a workflow
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: id
          in: path
          description: The unique identifier for the workflow
          required: true
          schema:
            type: string
            example: '12345'
      tags:
        - Workflows
      operationId: exportWorkflow
      description: |
        Export a workflow configuration by its ID. This endpoint returns the complete workflow definition including its steps, targeting rules, and attributes.

        This endpoint is designed for EU Data Act compliance, allowing customers to export their workflow configurations.
      responses:
        '200':
          description: Workflow exported successfully
          content:
            application/json:
              examples:
                successful:
                  value:
                    export_version: '1.0'
                    exported_at: '2026-01-26T12:00:00Z'
                    app_id: 12345
                    workflow:
                      id: '67890'
                      title: My Workflow
                      description: A workflow that handles customer inquiries
                      trigger_type: inbound_conversation
                      state: live
                      target_channels:
                        - chat
                      preferred_devices:
                        - desktop
                        - mobile
                      created_at: '2025-06-15T10:30:00Z'
                      updated_at: '2026-01-20T14:45:00Z'
                      targeting: {}
                      snapshot: {}
                      attributes: []
                      embedded_rules: []
              schema:
                $ref: '#/components/schemas/workflow_export'
        '403':
          description: Workflow export is not available for this app
          content:
            application/json:
              examples:
                Feature not available:
                  value:
                    type: error.list
                    request_id: d92f7e84-5c31-4a2b-b8e6-9f4c3d2a1b0e
                    errors:
                      - code: api_plan_restricted
                        message: Workflow export is not available for this app
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Workflow not found
          content:
            application/json:
              examples:
                Workflow not found:
                  value:
                    type: error.list
                    request_id: b3c8c472-8478-4f10-a29e-a23dbf921c46
                    errors:
                      - code: not_found
                        message: Workflow not found
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              field:
                type: string
                nullable: true
                description: Optional. Used to identify a particular field or query parameter that was in error.
                example: email
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>By default, it's equal to the version set in the app package.
      type: string
      example: '2.15'
      default: '2.15'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
    workflow_export:
      title: Workflow Export
      type: object
      description: A workflow export containing the complete workflow configuration.
      properties:
        export_version:
          type: string
          description: The version of the export format.
          example: '1.0'
        exported_at:
          type: string
          format: date-time
          description: The timestamp when the export was generated.
          example: '2026-01-26T12:00:00Z'
        app_id:
          type: integer
          description: The workspace identifier.
          example: 12345
        workflow:
          type: object
          description: The workflow configuration.
          properties:
            id:
              type: string
              description: The unique identifier for the workflow.
              example: '67890'
            title:
              type: string
              description: The title of the workflow.
              example: My Workflow
            description:
              type: string
              nullable: true
              description: The description of the workflow.
              example: A workflow that handles customer inquiries
            trigger_type:
              type: string
              description: The type of trigger that starts this workflow.
              example: inbound_conversation
            state:
              type: string
              description: The current state of the workflow.
              enum:
                - live
                - draft
                - paused
              example: live
            target_channels:
              type: array
              items:
                type: string
              description: The channels this workflow targets.
              example:
                - chat
            preferred_devices:
              type: array
              items:
                type: string
              description: The preferred devices for this workflow.
              example:
                - desktop
                - mobile
            created_at:
              type: string
              format: date-time
              description: When the workflow was created.
              example: '2025-06-15T10:30:00Z'
            updated_at:
              type: string
              format: date-time
              description: When the workflow was last updated.
              example: '2026-01-20T14:45:00Z'
            targeting:
              type: object
              nullable: true
              description: The targeting rules for this workflow.
            snapshot:
              type: object
              nullable: true
              description: The current snapshot of workflow steps and configuration.
            attributes:
              type: array
              items:
                type: object
              description: Custom attributes defined for this workflow.
            embedded_rules:
              type: array
              items:
                type: object
              description: Rules embedded within the workflow steps.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
