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

# Get a lineage's retention window

> How long unprotected versions of this lineage are kept before the nightly sweep purges their weights. Protected versions — targeted by an alias, the previous production version, pinned or tagged, or in use by a deployment — are never purged.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/models/{name}/retention
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Compatibility
    description: Advisory model and runtime compatibility guidance.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
paths:
  /v1/models/{name}/retention:
    get:
      tags:
        - Models
      summary: Get a lineage's retention window
      description: >-
        How long unprotected versions of this lineage are kept before the
        nightly sweep purges their weights. Protected versions — targeted by an
        alias, the previous production version, pinned or tagged, or in use by a
        deployment — are never purged.
      operationId: get_model_retention
      parameters:
        - name: name
          in: path
          description: Lineage name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The lineage window and the effective one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelRetentionResponse'
        '404':
          description: No lineage with this name in the caller's workspace
      security:
        - bearerAuth: []
components:
  schemas:
    ModelRetentionResponse:
      type: object
      description: A lineage's retention window.
      required:
        - object
        - model
        - workspace_default_days
        - effective_days
      properties:
        object:
          type: string
          description: Always "model_retention".
        model:
          type: string
          description: Lineage name.
        retention_days:
          type:
            - integer
            - 'null'
          format: int32
          description: The lineage override in days; null = the workspace default applies.
        workspace_default_days:
          type: integer
          format: int32
          description: The workspace default (workspace_settings.model_retention_days).
        effective_days:
          type: integer
          format: int32
          description: |-
            What the sweeper actually applies to this lineage: the override if
            set, else the workspace default. 0 = eligible versions are purged by
            the next nightly sweep.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````