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

# Compare



## OpenAPI

````yaml /openapi.json get /v1/workspaces/{workspaceId}/projects/{projectId}/revisions/compare
openapi: 3.1.0
info:
  title: Specurate API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://app.specurate.com/api
    description: API Server
security: []
tags: []
paths:
  /v1/workspaces/{workspaceId}/projects/{projectId}/revisions/compare:
    get:
      tags:
        - Project Revisions
      summary: Compare
      operationId: ProjectRevisionsController_compare_v1
      parameters:
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            type: string
        - name: from
          required: true
          in: query
          schema:
            type: string
        - name: to
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevisionComparisonResponseDto'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
components:
  schemas:
    RevisionComparisonResponseDto:
      type: object
      properties:
        from:
          $ref: '#/components/schemas/ComparedRevisionDto'
        to:
          $ref: '#/components/schemas/ComparedRevisionDto'
        sameSource:
          type: boolean
        added:
          type: array
          items:
            $ref: '#/components/schemas/ComparedLineDto'
        removed:
          type: array
          items:
            $ref: '#/components/schemas/ComparedLineDto'
        changed:
          type: array
          items:
            $ref: '#/components/schemas/ComparedLineDto'
        unchanged:
          type: array
          items:
            $ref: '#/components/schemas/ComparedLineDto'
      required:
        - from
        - to
        - sameSource
        - added
        - removed
        - changed
        - unchanged
    ErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 409
        message:
          type: string
          example: Conflict
        code:
          type: string
          example: VARIANT_COMBO_TAKEN
          description: >-
            UPPER_SNAKE_CASE domain error code. Present on validation /
            business-rule errors; absent on generic HTTP errors.
        entity:
          type: string
          description: >-
            Entity type that caused the conflict (e.g. "ProjectItem"). Present
            when the error is entity-specific.
      required:
        - statusCode
        - message
    ComparedRevisionDto:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - label
        - createdAt
    ComparedLineDto:
      type: object
      properties:
        changeCount:
          type: number
        slotId:
          type: string
        projectItemId:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
      required:
        - slotId
        - projectItemId
        - name

````