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

# List Prompt Versions



## OpenAPI

````yaml GET /v1/prompts/{promptId}/versions
openapi: 3.0.0
info:
  title: Wardin API
  description: AI governance & observability platform — external REST API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/prompts/{promptId}/versions:
    get:
      tags:
        - prompts
      summary: List all versions for a prompt
      operationId: PromptsController_getVersions
      parameters:
        - name: promptId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PromptVersionDto'
      security:
        - bearer: []
components:
  schemas:
    PromptVersionDto:
      type: object
      properties:
        id:
          type: string
          description: Version UUID
        promptId:
          type: string
          description: Parent prompt UUID
        version:
          type: number
          description: Sequential version number (starts at 1)
        content:
          type: string
          description: Prompt text; supports {{variable}} placeholders
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - promptId
        - version
        - content
        - createdAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````