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

# Pin a source's recipe

> Pin the recipe a source reuses as the starting point for future `generate` runs, so one customer's run can't drift the baseline others draw from. Pass `run_id: null` to unpin.



## OpenAPI

````yaml /api-reference/openapi.json post /sources/{source}/pin
openapi: 3.1.0
info:
  title: Vern Migration API
  version: 1.0.0
  description: >-
    Run Vern as a headless migration engine. Create a migration, upload a
    customer's files, run the managed agent to generate a preview, then execute
    and export clean data. See the Migration API guides for concepts and
    walkthroughs.
servers:
  - url: https://app.vern.so/api/v1
security:
  - apiKey: []
tags:
  - name: Catalog
    description: Discover the sources and templates you set up in the Vern UI.
  - name: Migrations
    description: Create a migration workspace and upload a customer's files.
  - name: Runs
    description: 'Drive the managed agent: generate, refine, execute, answer, and observe.'
  - name: Export
    description: Download a migration's validated data as CSV.
paths:
  /sources/{source}/pin:
    post:
      tags:
        - Catalog
      summary: Pin a source's recipe
      description: >-
        Pin the recipe a source reuses as the starting point for future
        `generate` runs, so one customer's run can't drift the baseline others
        draw from. Pass `run_id: null` to unpin.
      operationId: pinSource
      parameters:
        - name: source
          in: path
          required: true
          description: The source name (URL-encode spaces).
          schema:
            type: string
          example: Salesforce
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                run_id:
                  type:
                    - string
                    - 'null'
                  format: uuid
                  description: The run whose recipe to pin, or null to unpin.
              required:
                - run_id
            example:
              run_id: d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8
      responses:
        '200':
          description: The updated pin.
          content:
            application/json:
              schema:
                type: object
                properties:
                  source:
                    type: string
                  pinned_recipe_run_id:
                    type:
                      - string
                      - 'null'
                    format: uuid
              example:
                source: Salesforce
                pinned_recipe_run_id: d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    BadRequest:
      description: Malformed request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: API key missing, malformed, or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The referenced resource isn't in your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: A uniqueness or state conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit hit — back off and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: A human-readable error message.
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Vern API key. Create one at Settings → API keys.

````