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

# Get v1workspaces privacy retention



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspaceId}/privacy-retention
openapi: 3.1.0
info:
  title: sndbox Control Plane API
  version: 0.5.0
  description: >-
    Versioned v1 route and transport contract. Resource schemas remain additive
    during the v0.5 GA candidate.
servers:
  - url: https://api.sndbox.app
security: []
paths:
  /v1/workspaces/{workspaceId}/privacy-retention:
    get:
      tags:
        - workspaces
      operationId: get_v1_workspaces_workspaceId_privacy_retention
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/CorrelationId'
      responses:
        '200':
          description: Successful response.
          headers:
            x-correlation-id:
              $ref: '#/components/headers/CorrelationId'
            idempotency-replayed:
              $ref: '#/components/headers/IdempotencyReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetentionPolicyEnvelope'
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '403':
          $ref: '#/components/responses/ApiError'
        '404':
          $ref: '#/components/responses/ApiError'
        '409':
          $ref: '#/components/responses/ApiError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ApiError'
        '503':
          $ref: '#/components/responses/ApiError'
      security:
        - bearerAuth: []
components:
  parameters:
    CorrelationId:
      name: x-correlation-id
      in: header
      required: false
      schema:
        type: string
        minLength: 8
        maxLength: 128
        pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]+$
      description: Caller-supplied correlation ID; the server generates one when omitted.
  headers:
    CorrelationId:
      schema:
        type: string
      description: Correlation ID for this request.
    IdempotencyReplayed:
      schema:
        type: string
        enum:
          - 'true'
      description: Present only when the response was replayed.
  schemas:
    RetentionPolicyEnvelope:
      type: object
      required:
        - policy
      properties:
        policy:
          $ref: '#/components/schemas/RetentionPolicy'
      additionalProperties: false
    RetentionPolicy:
      type: object
      required:
        - executionDetailDays
        - queueEventDays
        - webhookDeliveryDays
        - runnerCommandDays
        - auditEventDays
        - changedBy
        - changedAt
      properties:
        executionDetailDays:
          type: integer
          minimum: 1
          maximum: 3650
        queueEventDays:
          type: integer
          minimum: 1
          maximum: 365
        webhookDeliveryDays:
          type: integer
          minimum: 1
          maximum: 30
        runnerCommandDays:
          type: integer
          minimum: 1
          maximum: 365
        auditEventDays:
          type: integer
          minimum: 365
          maximum: 3650
        changedBy:
          oneOf:
            - type: string
              format: uuid
            - type: 'null'
        changedAt:
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
      additionalProperties: false
    ApiError:
      type: object
      required:
        - error
        - correlationId
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
        correlationId:
          type: string
  responses:
    ApiError:
      description: Structured API error.
      headers:
        x-correlation-id:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded.
      headers:
        retry-after:
          schema:
            type: integer
        x-ratelimit-limit:
          schema:
            type: integer
        x-ratelimit-remaining:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````