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

# Compare two workflow runs

> Returns a diff between two workflow runs highlighting status changes, duration differences, and steps present in only one run.



## OpenAPI

````yaml https://api.strait.dev/reference/openapi.json get /v1/workflow-runs/{workflowRunID}/compare/{otherRunID}
openapi: 3.1.0
info:
  description: >-
    Production-grade job orchestration platform for background jobs, workflows,
    and managed execution.
  title: Strait API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.strait.dev
security: []
paths:
  /v1/workflow-runs/{workflowRunID}/compare/{otherRunID}:
    get:
      tags:
        - Workflow Runs
      summary: Compare two workflow runs
      description: >-
        Returns a diff between two workflow runs highlighting status changes,
        duration differences, and steps present in only one run.
      operationId: compare-workflow-runs
      parameters:
        - in: path
          name: workflowRunID
          required: true
          schema:
            type: string
        - in: path
          name: otherRunID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunComparison'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      security:
        - bearerAuth: []
components:
  schemas:
    RunComparison:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://api.strait.dev/schemas/RunComparison.json
          format: uri
          readOnly: true
          type: string
        run_a:
          type: string
        run_b:
          type: string
        status_diff:
          $ref: '#/components/schemas/StringDiff'
        step_diffs:
          items:
            $ref: '#/components/schemas/StepComparison'
          type:
            - array
            - 'null'
      required:
        - run_a
        - run_b
        - step_diffs
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://api.strait.dev/schemas/ErrorModel.json
          format: uri
          readOnly: true
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    StringDiff:
      additionalProperties: false
      properties:
        a:
          type: string
        b:
          type: string
      required:
        - a
        - b
      type: object
    StepComparison:
      additionalProperties: false
      properties:
        duration_ms_a:
          format: int64
          type: integer
        duration_ms_b:
          format: int64
          type: integer
        only_in_a:
          type: boolean
        only_in_b:
          type: boolean
        status_diff:
          $ref: '#/components/schemas/StringDiff'
        step_ref:
          type: string
      required:
        - step_ref
        - duration_ms_a
        - duration_ms_b
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: strait_...
      description: API key passed as Bearer token
      scheme: bearer
      type: http

````