> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memex.garden/llms.txt
> Use this file to discover all available pages before exploring further.

# List public sharing links

> Lists public share links for saved content owned by the authenticated user. Optional filters narrow the list by content ID, content type, or public access mode.



## OpenAPI

````yaml /api-reference/openapi.json post /list-shared-library-entry-links
openapi: 3.1.0
info:
  title: Memex REST API
  description: Memex REST API endpoints.
  version: '2026-03-10'
servers:
  - url: https://memex.garden/api
    description: Public edge router
  - url: https://rubctkzqxcdgkbbcprnu.supabase.co/functions/v1
    description: Direct Supabase Edge Functions
security:
  - bearerAuth: []
paths:
  /list-shared-library-entry-links:
    post:
      summary: List public sharing links
      description: >-
        Lists public share links for saved content owned by the authenticated
        user. Optional filters narrow the list by content ID, content type, or
        public access mode.
      operationId: listSharedLibraryEntryLinks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListSharedLibraryEntryLinksRequest'
            examples:
              allLinks:
                summary: List all public sharing links
                value: {}
              collaborativeLinks:
                summary: List collaborative sharing links
                value:
                  accessMode: public_link_contribute
      responses:
        '200':
          description: Public sharing links
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSharedLibraryEntryLinksResponse'
        '401':
          description: Authentication required or invalid bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    ListSharedLibraryEntryLinksRequest:
      type: object
      properties:
        accessMode:
          $ref: '#/components/schemas/SharedLibraryEntryAccessMode'
        contentId:
          type: string
          description: Optional saved content entity ID to filter by.
        contentType:
          $ref: '#/components/schemas/ContentEntityType'
      additionalProperties: false
    ListSharedLibraryEntryLinksResponse:
      type: object
      required:
        - links
      properties:
        links:
          type: array
          items:
            $ref: '#/components/schemas/SharedLibraryEntryLink'
      additionalProperties: false
    UnauthorizedError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Unauthorized
      additionalProperties: true
    InternalServerError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: Internal server error
        message:
          type: string
      additionalProperties: true
    SharedLibraryEntryAccessMode:
      type: string
      enum:
        - public_link
        - public_link_contribute
      description: >-
        `public_link` grants view access. `public_link_contribute` grants
        collaborative access.
    ContentEntityType:
      type: string
      enum:
        - web
        - pdf
        - youtube
        - twitter
        - instagram
        - tiktok
        - facebook
        - linkedin
        - pinterest
        - reddit
        - chatgpt
        - claude
        - annotation
        - image
        - transcribedMedia
        - audioRecording
        - selector
        - chatThread
        - twitterProfile
        - subreddit
        - youtubeChannel
      description: Exact persisted `content_entity.type` value.
    SharedLibraryEntryLink:
      type: object
      required:
        - sharedResourceId
        - accessMode
        - contentId
        - contentType
        - createdAt
        - publicToken
      properties:
        sharedResourceId:
          type: string
        accessMode:
          $ref: '#/components/schemas/SharedLibraryEntryAccessMode'
        title:
          type: string
        description:
          type: string
        contentId:
          type: string
        contentType:
          $ref: '#/components/schemas/ContentEntityType'
        createdAt:
          type: string
          format: date-time
        publicToken:
          type: string
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.