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

# Get a single prompt version

> Returns the full version document (including the prompt body and metadata) for a specific version of a prompt the caller can access.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/prompts/{promptId}/versions/{versionId}
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/prompts/{promptId}/versions/{versionId}:
    get:
      tags:
        - Prompts
      summary: Get a single prompt version
      description: >-
        Returns the full version document (including the prompt body and
        metadata) for a specific version of a prompt the caller can access.
      operationId: get_prompts_version_by_id
      parameters:
        - in: path
          name: promptId
          required: true
          schema:
            type: string
        - in: path
          name: versionId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Version returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptVersionDocument'
        '400':
          description: Invalid version id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptErrorResponse'
        '403':
          description: Prompt not found or not accessible by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptErrorResponse'
        '404':
          description: Version not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    PromptVersionDocument:
      type: object
      description: Full prompt-version document including the prompt body.
      properties:
        _id:
          type: string
        promptId:
          type: string
        prompt:
          type: string
        version:
          type: integer
        label:
          type: string
          nullable: true
        displayVersion:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - manual_save
            - ai_apply
            - checkpoint
        createdBy:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 65f9b1c2e8a1d4e001a0b1c4
        promptId: 5f7b1c2e8a1d4e0012c3b4a5
        prompt: >-
          <prompt><role>Leasing assistant</role><goal>Re-engage leads 24h after
          their last reply.</goal></prompt>
        version: 5
        label: Pre-launch checkpoint
        displayVersion: v1.4
        title: Pre-launch
        description: Snapshot before rolling out to production.
        source: manual_save
        createdBy: 64a1b2c3d4e5f60012345679
        createdAt: '2026-04-25T10:14:00.000Z'
        updatedAt: '2026-04-25T10:14:00.000Z'
    PromptErrorResponse:
      type: object
      description: Generic error envelope returned by Prompt endpoints.
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Prompt not found
        details: No prompt with id 5f7b1c2e8a1d4e0012c3b4a5 belongs to this user.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````