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

# List persona versions

> List the prior-state version history for a persona, newest first. The live persona is the current version and is not included here. Only behavioral config is versioned; display_name/avatar_url are not.



## OpenAPI

````yaml /api-reference/v1/personas-v1.yaml get /personas/{persona_id}/versions
openapi: 3.0.3
info:
  title: Coval Personas API
  version: 1.0.0
  description: |
    Manage simulated personas used in voice and text evaluations.
  contact:
    name: Coval API Support
    url: https://coval.dev
    email: support@coval.dev
servers:
  - url: https://api.coval.dev/v1
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Personas
    description: Persona CRUD operations
paths:
  /personas/{persona_id}/versions:
    get:
      tags:
        - Personas
      summary: List persona versions
      description: >-
        List the prior-state version history for a persona, newest first. The
        live persona is the current version and is not included here. Only
        behavioral config is versioned; display_name/avatar_url are not.
      operationId: listPersonaVersions
      parameters:
        - name: persona_id
          in: path
          description: Persona resource ID
          required: true
          schema:
            type: string
          example: 3zfmuDbVQsi4GaseDtiVcS
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPersonaVersionsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ListPersonaVersionsResponse:
      type: object
      description: Response for GET /v1/personas/{persona_id}/versions (newest first)
      required:
        - versions
      properties:
        versions:
          type: array
          items:
            $ref: '#/components/schemas/PersonaVersionResource'
    PersonaVersionResource:
      type: object
      description: A prior, displaced snapshot of a persona's behavioral config.
      required:
        - name
        - ulid
        - version_number
        - change_type
        - created_by
      properties:
        name:
          type: string
          description: Resource name
          example: personas/3zfmuDbVQsi4GaseDtiVcS/versions/01KKWQYSF737ZN6X1Q1RYX8M2D
        ulid:
          type: string
          description: Version identifier (26-char ULID)
          example: 01KKWQYSF737ZN6X1Q1RYX8M2D
        version_number:
          type: integer
          description: Per-persona monotonic version number, 1-based
          example: 2
        change_type:
          type: string
          description: >-
            How this version came about. A revert is a save whose new state
            mirrors an older version.
          enum:
            - save
            - revert
        label:
          type: string
          nullable: true
          description: Optional user-supplied tag
          example: v1.2 prod
        persona_prompt:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: true
          description: Verbatim behavioral-config snapshot
        voice_name:
          type: string
          nullable: true
        language_code:
          type: string
          nullable: true
        created_by:
          type: string
          description: Who created this version (user ULID)
        create_time:
          type: string
          format: date-time
          nullable: true
          description: When this version became current
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Error code
              example: INVALID_ARGUMENT
            message:
              type: string
              description: Human-readable error message
              example: Invalid voice_name 'invalid'
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: Missing or invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Persona abc123 not found
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL
              message: An unexpected error occurred
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````