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

# Get workflow by ID

> Retrieves a specific workflow by its ID within the specified workspace.



## OpenAPI

````yaml /api-reference/openapi.json get /api/workflows/{id}
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/workflows/{id}:
    get:
      tags:
        - Workflows
      summary: Get workflow by ID
      description: Retrieves a specific workflow by its ID within the specified workspace.
      operationId: WorkflowsController_getWorkspaceWorkflow
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: Workflow object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    Workflow:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        content:
          $ref: '#/components/schemas/WorkflowContent'
        isCanDelete:
          type: boolean
        isCanEdit:
          type: boolean
      required:
        - id
        - createdAt
        - updatedAt
        - content
        - isCanDelete
        - isCanEdit
    WorkflowContent:
      type: object
      properties:
        'on':
          $ref: '#/components/schemas/On'
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowJob'
        name:
          type: string
      required:
        - 'on'
        - jobs
        - name
    'On':
      type: object
      properties:
        target:
          type: array
          items:
            type: string
        schedule:
          type: string
          enum:
            - disabled
            - 0 0 * * *
            - 0 0 */3 * *
            - 0 0 * * 0
            - 0 0 */14 * *
            - 0 0 1 * *
      required:
        - target
        - schedule
    WorkflowJob:
      type: object
      properties:
        name:
          type: string
        run:
          type: string
      required:
        - name
        - run

````