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

# Diff two recipe versions

> See which steps and settings changed between two versions of a skill.



## OpenAPI

````yaml GET /v1/skills/{slug}/versions/{a}/diff/{b}
openapi: 3.0.3
info:
  title: Valendata REST API
  version: 1.0.0
  description: >-
    Trigger Skills, manage Workflows, retrieve Runs, and stream structured
    results from any language using JSON over HTTPS.
servers:
  - url: https://api.valendata.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Skills
    description: Execute and inspect published Skills.
  - name: Workflows
    description: Trigger multi-step Workflows and list them.
  - name: Runs
    description: Start async Skill runs and read Skill and Workflow run results.
  - name: Skill creation
    description: Create a Skill from a plain-language task.
  - name: Skill improvement
    description: >-
      Fix a Skill, add fields to it or re-learn its detail steps, poll the
      result, and read its change history.
  - name: Versions
    description: List, diff, restore, and pin a Skill's recipe versions.
  - name: Webhooks
    description: Signed delivery of finished async runs.
paths:
  /v1/skills/{slug}/versions/{a}/diff/{b}:
    get:
      tags:
        - Versions
      summary: Diff two recipe versions
      description: What changed from version `a` to version `b`.
      operationId: diffSkillVersions
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: URL-safe slug of the Skill.
          example: austin-dentists
        - name: a
          in: path
          required: true
          schema:
            type: integer
          example: 2
        - name: b
          in: path
          required: true
          schema:
            type: integer
          example: 3
      responses:
        '200':
          description: The differences.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionDiff'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    VersionDiff:
      type: object
      properties:
        skill_slug:
          type: string
        from:
          type: integer
        to:
          type: integer
        fields:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              before: {}
              after: {}
          description: Recipe settings that changed.
        actions:
          type: object
          properties:
            changed:
              type: array
              items:
                type: object
                additionalProperties: true
            added:
              type: array
              items:
                type: object
                additionalProperties: true
            removed:
              type: array
              items:
                type: object
                additionalProperties: true
          description: Recorded steps that changed, were added, or were removed.
        summary:
          type: string
          example: 1 step(s) changed
    Error:
      type: object
      properties:
        detail:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
          description: >-
            Error message. Usually a plain string; may be a structured object
            for some errors.
      example:
        detail: Invalid or expired API key
  responses:
    Unauthorized:
      description: >-
        Unauthorized. The Authorization header is missing, malformed, or the
        credential is invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        Forbidden. You may not run or change this Skill, or it is not published
        or active.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found in your Workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: vd_sk_...
      description: >-
        API key with the `vd_sk_` prefix. Create keys from Settings, API Keys in
        the dashboard.

````

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