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

# Get Workflow by ID

> Retrieve a workflow by its unique ID.



## OpenAPI

````yaml GET /workflow/id/{id}
openapi: 3.0.1
info:
  title: Machina Sports SDK
  description: >-
    Machina Sports API for seamless AI integration in sports, offering real-time
    insights, personalized content, and fan sentiment analysis.
  version: '1.0'
  termsOfService: http://machina.gg/tos/
  contact:
    email: support@machina.gg
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://{api-address}.org.machina.gg
    description: Production server
    variables:
      api-address:
        default: https://api.machina.gg
        description: Your api-address
  - url: http://local.machina:5001
    description: Local development server
security:
  - ApiToken: []
paths:
  /workflow/id/{id}:
    get:
      tags:
        - workflows
      summary: Get Workflow by ID
      description: Retrieve a workflow by its unique ID.
      operationId: getWorkflowById
      parameters:
        - name: id
          in: path
          required: true
          description: Unique ID of the workflow
          schema:
            type: string
      responses:
        '200':
          description: Workflow details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      _id:
                        type: string
                        description: Unique identifier of the workflow
                      name:
                        type: string
                        description: Unique name of the workflow
                      title:
                        type: string
                        description: Display title of the workflow
                      description:
                        type: string
                        description: Description of the workflow's purpose
                      status:
                        type: string
                        enum:
                          - active
                          - inactive
                        description: Current status of the workflow
                      context:
                        type: object
                        description: Configuration settings for the workflow
                      inputs:
                        type: object
                        description: Input parameters for the workflow
                      outputs:
                        type: object
                        description: Output mappings for the workflow
                      created:
                        type: string
                        description: Creation timestamp
                  status:
                    type: boolean
                    description: Operation status
        '401':
          description: Unauthorized
        '404':
          description: Workflow not found
components:
  securitySchemes:
    ApiToken:
      type: apiKey
      name: x-api-token
      in: header
      description: API key authentication

````