> ## 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 all prompts for the current user

> Returns the full PromptDocument array owned by the caller. For non-admin callers, the `prompt` body field is stripped on entries marked `isHidden`. Returns an empty object `{}` when the user has no prompts.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/prompts/user
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:
    get:
      tags:
        - Prompts
      summary: Get all prompts for the current user
      description: >-
        Returns the full PromptDocument array owned by the caller. For non-admin
        callers, the `prompt` body field is stripped on entries marked
        `isHidden`. Returns an empty object `{}` when the user has no prompts.
      operationId: get_prompts_user
      responses:
        '200':
          description: User prompts returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptUserPromptsResponse'
        '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:
    PromptUserPromptsResponse:
      description: >-
        Returned by GET /api/prompts/user. An array of the caller's prompts
        (with hidden bodies stripped for non-admins), OR an empty object `{}`
        when the user has no prompts.
      oneOf:
        - type: array
          items:
            $ref: '#/components/schemas/PromptDocument'
        - type: object
          description: Returned when the user has no prompts.
          additionalProperties: false
      example:
        - _id: 5f7b1c2e8a1d4e0012c3b4a5
          name: Leasing follow-up assistant
          prompt: <prompt>...</prompt>
          description: Follow up with leads 24h after their last response.
          temperature: 0.7
          responseTime: 45
          isHidden: false
          organizationId: 64a1b2c3d4e5f60012345678
          userId: 64a1b2c3d4e5f60012345679
    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.
    PromptDocument:
      type: object
      description: >-
        Prompt document as stored in the Prompt collection. Returned shape
        varies slightly per endpoint (some list/summary endpoints project a
        subset of fields).
      properties:
        _id:
          type: string
        name:
          type: string
        prompt:
          type: string
          description: >-
            Prompt body. Omitted (i.e. stripped) for non-admin callers when
            `isHidden` is true.
        description:
          type: string
        temperature:
          type: number
        responseTime:
          type: number
        isHidden:
          type: boolean
        tools:
          type: array
          items:
            type: object
            additionalProperties: true
        toolConfigs:
          type: object
          additionalProperties: true
        organizationId:
          type: string
        userId:
          type: string
        copiedFrom:
          type: string
          nullable: true
        copiedFromName:
          type: string
          nullable: true
        copiedFromOrg:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b4a5
        name: Leasing follow-up assistant
        prompt: >-
          <prompt><role>Leasing assistant</role><goal>Re-engage leads 24h after
          their last reply.</goal></prompt>
        description: Follow up with leads 24h after their last response.
        temperature: 0.7
        responseTime: 45
        isHidden: false
        tools:
          - name: book_tour
        toolConfigs:
          book_tour:
            requireApproval: true
        organizationId: 64a1b2c3d4e5f60012345678
        userId: 64a1b2c3d4e5f60012345679
        createdAt: '2026-03-12T14:22:10.000Z'
        updatedAt: '2026-04-22T10:14:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````