> ## 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 auto-tagging rules for the authenticated user

> Returns the authenticated user's auto-tagging rules.



## OpenAPI

````yaml /api-reference/openapi.json post /list-auto-tagging-rules
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-auto-tagging-rules:
    post:
      summary: List auto-tagging rules for the authenticated user
      description: Returns the authenticated user's auto-tagging rules.
      operationId: listAutoTaggingRules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmptyRequest'
            examples:
              default:
                summary: List auto-tagging rules
                value: {}
      responses:
        '200':
          description: Auto-tagging rules response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAutoTaggingRulesResponse'
        '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:
    EmptyRequest:
      type: object
      additionalProperties: false
    ListAutoTaggingRulesResponse:
      type: object
      required:
        - rules
      properties:
        rules:
          type: array
          items:
            $ref: '#/components/schemas/AutoTaggingRule'
      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
    AutoTaggingRule:
      type: object
      required:
        - id
        - created_at
        - updated_at
        - tag_id
        - add_tag_ids
        - user_id
        - enabled
        - source_library
        - source_all_feeds
        - text_queries
        - ai_prompt
        - content_types
        - feed_ids
        - condition_expression
      properties:
        id:
          type: string
          format: uuid
        created_at:
          type: number
          description: Unix timestamp in milliseconds.
        updated_at:
          type: number
          description: Unix timestamp in milliseconds.
        tag_id:
          type: string
          format: uuid
          description: Primary tag applied by this rule.
        add_tag_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Tag IDs applied by this rule.
        user_id:
          type: string
        enabled:
          type: boolean
        source_library:
          type: boolean
        source_all_feeds:
          type: boolean
        text_queries:
          type: array
          items:
            type: string
        ai_prompt:
          type:
            - string
            - 'null'
        content_types:
          type: array
          items:
            $ref: '#/components/schemas/ContentEntityType'
        feed_ids:
          type: array
          items:
            type: string
        condition_expression:
          oneOf:
            - $ref: '#/components/schemas/AutoTaggingConditionExpression'
            - type: 'null'
      additionalProperties: false
    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.
    AutoTaggingConditionExpression:
      type: object
      description: >-
        Auto-tagging condition expression tree. Supported node types include
        contentType, tag, keyword, aiPrompt, group, and not.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - contentType
            - tag
            - keyword
            - aiPrompt
            - group
            - not
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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