> ## 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 specific prompt by ID

> Returns a single prompt the caller owns or has acquired as a marketplace reference. The response includes access-metadata flags (`_isOwned`, `_isReference`, `_isEditableReference`) so the UI can render the right edit affordances.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/prompts/{promptId}
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}:
    get:
      tags:
        - Prompts
      summary: Get a specific prompt by ID
      description: >-
        Returns a single prompt the caller owns or has acquired as a marketplace
        reference. The response includes access-metadata flags (`_isOwned`,
        `_isReference`, `_isEditableReference`) so the UI can render the right
        edit affordances.
      operationId: get_prompts_by_id
      parameters:
        - in: path
          name: promptId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Prompt returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptWithAccessMetadataResponse'
        '403':
          description: Prompt not found or not accessible by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptErrorResponse'
        '404':
          description: Prompt 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:
    PromptWithAccessMetadataResponse:
      type: object
      description: >-
        Prompt document spread with marketplace-access metadata, returned by GET
        /api/prompts/{promptId}.
      properties:
        _id:
          type: string
        name:
          type: string
        prompt:
          type: string
        description:
          type: string
        temperature:
          type: number
        responseTime:
          type: number
        isHidden:
          type: boolean
        _isReference:
          type: boolean
        _isEditableReference:
          type: boolean
        _isOwned:
          type: boolean
      required:
        - _isReference
        - _isEditableReference
        - _isOwned
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b4a5
        name: Leasing follow-up assistant
        prompt: >-
          <prompt><role>Leasing assistant</role><goal>Re-engage
          leads.</goal></prompt>
        description: Follow up with leads 24h after their last response.
        temperature: 0.7
        responseTime: 45
        isHidden: false
        _isReference: false
        _isEditableReference: false
        _isOwned: true
    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

````