> ## 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.

# List all prompts (superadmin)

> Superadmin-only paginated listing of every prompt across organizations. Supports text search on name, organization filtering, and visibility filtering (all, hidden, visible). Used by the global Prompt Visibility Management view.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/prompts/admin/all
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/admin/all:
    get:
      tags:
        - Prompts
      summary: List all prompts (superadmin)
      description: >-
        Superadmin-only paginated listing of every prompt across organizations.
        Supports text search on name, organization filtering, and visibility
        filtering (all, hidden, visible). Used by the global Prompt Visibility
        Management view.
      operationId: get_prompts_admin_all
      parameters:
        - in: query
          name: page
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - in: query
          name: limit
          required: false
          schema:
            type: integer
            minimum: 1
            default: 50
        - in: query
          name: search
          required: false
          schema:
            type: string
        - in: query
          name: organizationId
          required: false
          schema:
            type: string
        - in: query
          name: visibility
          required: false
          schema:
            type: string
            enum:
              - all
              - hidden
              - visible
            default: all
      responses:
        '200':
          description: Prompts returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminPromptListResponse'
        '403':
          description: Superadmin access required
          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:
    AdminPromptListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/AdminPromptListItem'
        totalCount:
          type: integer
        hiddenCount:
          type: integer
        visibleCount:
          type: integer
        currentPage:
          type: integer
        hasNextPage:
          type: boolean
      required:
        - data
        - totalCount
        - currentPage
        - hasNextPage
      additionalProperties: true
      example:
        data:
          - _id: 5f7b1c2e8a1d4e0012c3b4a5
            name: Leasing follow-up assistant
            organizationId: 64a1b2c3d4e5f60012345678
            organizationName: Maple Property Group
            isHidden: false
            isPublished: true
            updatedAt: '2026-04-22T10:14:00.000Z'
        totalCount: 27
        hiddenCount: 4
        visibleCount: 23
        currentPage: 1
        hasNextPage: 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.
    AdminPromptListItem:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        description:
          type: string
        organizationId:
          type: string
        organizationName:
          type: string
        createdBy:
          type: string
        isHidden:
          type: boolean
        isPublished:
          type: boolean
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b4a5
        name: Leasing follow-up assistant
        description: Follow up with leads 24h after their last response.
        organizationId: 64a1b2c3d4e5f60012345678
        organizationName: Maple Property Group
        createdBy: 64a1b2c3d4e5f60012345679
        isHidden: false
        isPublished: true
        updatedAt: '2026-04-22T10:14:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````