> ## 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 items published by current user

> List every PublishedItem record whose publishedBy matches the caller, optionally filtered by itemType. Used by the publisher dashboard to manage their own listings.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/marketplace/my-published
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/marketplace/my-published:
    get:
      tags:
        - Marketplace
      summary: Get items published by current user
      description: >-
        List every PublishedItem record whose publishedBy matches the caller,
        optionally filtered by itemType. Used by the publisher dashboard to
        manage their own listings.
      operationId: get_my_published_items
      parameters:
        - in: query
          name: itemType
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Published items returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceMyPublishedItemsResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    MarketplaceMyPublishedItemsResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/MarketplacePublishedItemSummary'
          required:
            - items
          additionalProperties: true
      required:
        - success
        - data
      additionalProperties: true
      example:
        success: true
        data:
          items:
            - _id: 7b2c4e0d9f1a3b4e5c6d7e8f9012
              itemType: prompt
              itemId: 5f7b1c2e8a1d4e0012c3b4a5
              name: Acme Inbound Triage Prompt
              publishedBy: 5f7b1c2e8a1d4e0012c3b4a5
              organizationId: 5f7b1c2e8a1d4e0012c3b4a5
              scope: marketplace
              shareType: copy
              isContentVisible: true
              status: active
              usageCount: 12
              publishedAt: '2026-05-01T09:15:00.000Z'
    MarketplaceErrorResponse:
      type: object
      description: Generic error envelope returned by Marketplace endpoints.
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Marketplace item not found
    MarketplacePublishedItemSummary:
      type: object
      description: >-
        Raw PublishedItem document as returned by GET
        /api/marketplace/my-published. Fields mirror the Mongoose model.
      properties:
        _id:
          type: string
        itemType:
          type: string
          enum:
            - prompt
            - template
        itemId:
          type: string
        name:
          type: string
        description:
          type: string
        usageInformation:
          type: string
        publishedBy:
          type: string
        organizationId:
          type: string
        scope:
          type: string
          enum:
            - organization
            - marketplace
        shareType:
          type: string
          enum:
            - reference
            - copy
        allowEditableReferences:
          type: boolean
        isContentVisible:
          type: boolean
        status:
          type: string
        usageCount:
          type: integer
        publishedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 7b2c4e0d9f1a3b4e5c6d7e8f9012
        itemType: prompt
        itemId: 5f7b1c2e8a1d4e0012c3b4a5
        name: Acme Inbound Triage Prompt
        description: Routes inbound SMS to the right department.
        publishedBy: 5f7b1c2e8a1d4e0012c3b4a5
        organizationId: 5f7b1c2e8a1d4e0012c3b4a5
        scope: marketplace
        shareType: copy
        allowEditableReferences: false
        isContentVisible: true
        status: active
        usageCount: 12
        publishedAt: '2026-05-01T09:15:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````