> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailglyph.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get workflow

> Get workflow details



## OpenAPI

````yaml openapi.json GET /workflows/{id}
openapi: 3.0.3
info:
  title: MailGlyph API
  description: >-
    Email platform API for transactional emails, campaigns, and marketing
    automation
  version: 1.0.0
  contact:
    name: MailGlyph Support
    url: https://mailglyph.com
servers:
  - url: https://api.mailglyph.com
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Public API
    description: Public API endpoints for sending emails and tracking events
  - name: Events
    description: Event ingestion and querying
  - name: Contacts
    description: Contact management operations
  - name: Templates
    description: Email template management
  - name: Campaigns
    description: Email campaign management
  - name: Segments
    description: Audience segmentation
  - name: Workflows
    description: Workflow automation
paths:
  /workflows/{id}:
    get:
      tags:
        - Workflows
      summary: Get workflow
      description: Get workflow details
      operationId: getWorkflow
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Workflow details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowWithDetails'
        '404':
          description: Workflow not found
components:
  schemas:
    WorkflowWithDetails:
      allOf:
        - $ref: '#/components/schemas/Workflow'
        - type: object
          properties:
            steps:
              type: array
              items:
                $ref: '#/components/schemas/WorkflowStep'
    Workflow:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        enabled:
          type: boolean
        triggerType:
          type: string
          enum:
            - EVENT
            - MANUAL
            - SCHEDULE
        triggerConfig:
          type: object
          nullable: true
          additionalProperties: true
        allowReentry:
          type: boolean
        projectId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
    WorkflowStep:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - TRIGGER
            - SEND_EMAIL
            - DELAY
            - WAIT_FOR_EVENT
            - CONDITION
            - EXIT
            - WEBHOOK
            - UPDATE_CONTACT
        name:
          type: string
        position:
          type: object
          additionalProperties: true
        config:
          type: object
          additionalProperties: true
        workflowId:
          type: string
        templateId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        template:
          $ref: '#/components/schemas/WorkflowTemplateRef'
        outgoingTransitions:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowTransition'
        incomingTransitions:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowTransition'
      additionalProperties: true
    WorkflowTemplateRef:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      additionalProperties: true
    WorkflowTransition:
      type: object
      properties:
        id:
          type: string
        fromStepId:
          type: string
        toStepId:
          type: string
        condition:
          type: object
          nullable: true
          additionalProperties: true
        priority:
          type: integer
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key authentication. **Secret keys (sk_*)** are required for all
        endpoints except `/v1/track`. **Public keys (pk_*)** only work with the
        `/v1/track` endpoint for client-side event tracking. Workspaces can have
        multiple active keys, and sender-domain operations enforce per-key
        domain scope when configured.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.