> ## 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 summarized user prompts including reference prompts

> Returns a flat summarized list mixing own-prompt summaries and acquired reference-prompt summaries (marketplace references). Each entry is discriminated by `isReference`/`isOwned`. An optional `userId` query selects another user (admin use).



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/prompts/user/summary
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/user/summary:
    get:
      tags:
        - Prompts
      summary: Get summarized user prompts including reference prompts
      description: >-
        Returns a flat summarized list mixing own-prompt summaries and acquired
        reference-prompt summaries (marketplace references). Each entry is
        discriminated by `isReference`/`isOwned`. An optional `userId` query
        selects another user (admin use).
      operationId: get_prompts_user_summary
      parameters:
        - in: query
          name: userId
          required: false
          schema:
            type: string
          description: Optional user ID to fetch prompts for (defaults to current user)
      responses:
        '200':
          description: Summarized prompts returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptSummarizedPromptListResponse'
        '404':
          description: User 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:
    PromptSummarizedPromptListResponse:
      type: array
      description: >-
        Flat list mixing own-prompt summaries and acquired reference-prompt
        summaries; discriminated by the `isReference`/`isOwned` flags.
      items:
        oneOf:
          - $ref: '#/components/schemas/PromptSummarizedOwnPrompt'
          - $ref: '#/components/schemas/PromptSummarizedReferencePrompt'
      example:
        - _id: 5f7b1c2e8a1d4e0012c3b4a5
          name: Leasing follow-up assistant
          description: Follow up with leads 24h after their last response.
          isReference: false
          isOwned: true
          isPublished: false
        - _id: 5f7b1c2e8a1d4e0012c3b4a7
          name: Tether published — Leasing starter
          description: Marketplace starter prompt.
          isReference: true
          isOwned: false
          isContentVisible: 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.
    PromptSummarizedOwnPrompt:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        description:
          type: string
        temperature:
          type: number
        responseTime:
          type: number
        updatedAt:
          type: string
          format: date-time
        isHidden:
          type: boolean
        isReference:
          type: boolean
          example: false
        isOwned:
          type: boolean
          example: true
        isPublished:
          type: boolean
        isCopied:
          type: boolean
        copiedFromName:
          type: string
          nullable: true
        copiedFromOrg:
          type: string
          nullable: true
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b4a5
        name: Leasing follow-up assistant
        description: Follow up with leads 24h after their last response.
        temperature: 0.7
        responseTime: 45
        updatedAt: '2026-04-22T10:14:00.000Z'
        isHidden: false
        isReference: false
        isOwned: true
        isPublished: false
        isCopied: false
    PromptSummarizedReferencePrompt:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        description:
          type: string
        temperature:
          type: number
        responseTime:
          type: number
        updatedAt:
          type: string
          format: date-time
        isReference:
          type: boolean
          example: true
        isEditableReference:
          type: boolean
        isOwned:
          type: boolean
          example: false
        publisherOrg:
          type: string
        isContentVisible:
          type: boolean
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b4a7
        name: Tether published — Leasing starter
        description: Marketplace starter prompt for leasing follow-up.
        temperature: 0.6
        responseTime: 30
        updatedAt: '2026-04-10T09:30:00.000Z'
        isReference: true
        isEditableReference: false
        isOwned: false
        publisherOrg: Tether AI
        isContentVisible: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````