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

# Search DAM Media

> Searches images, videos, and files across all accessible folders. Returns matching media items plus attribute-based facet counts.



## OpenAPI

````yaml /swagger/management-api.json get /api/v1/{team_slug}/{app_slug}/dam/media/search
openapi: 3.0.0
info:
  contact:
    email: support@enad.io
    name: API support
    url: http://enad.io/support
  description: This is the documentation for Public API v1
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://enad.io/terms/
  title: Public API
  version: '1.0'
servers:
  - url: //api.enad.io
security: []
paths:
  /api/v1/{team_slug}/{app_slug}/dam/media/search:
    get:
      tags:
        - DAM
      summary: Search DAM Media
      description: >-
        Searches images, videos, and files across all accessible folders.
        Returns matching media items plus attribute-based facet counts.
      parameters:
        - description: App slug
          in: path
          name: app_slug
          required: true
          schema:
            type: string
        - description: Team slug
          in: path
          name: team_slug
          required: true
          schema:
            type: string
        - description: Full-text query (1-256 chars)
          in: query
          name: search
          required: true
          schema:
            type: string
        - description: >-
            Filter by media type: image, video, file. Repeatable (e.g.
            type=image&type=file).
          in: query
          name: type
          style: form
          explode: false
          schema:
            items:
              type: string
            type: array
        - description: >-
            Filter by status: active, inactive, draft, pending (images/videos
            only)
          in: query
          name: status
          schema:
            type: string
        - description: >-
            Sort key: name, created_at, updated_at, type, rank (default
            created_at)
          in: query
          name: sort-key
          schema:
            type: string
        - description: 'Sort order: asc, desc (default desc)'
          in: query
          name: sort-order
          schema:
            type: string
        - description: Attribute filter as 'template_key/attribute_key'. Repeatable.
          in: query
          name: attribute
          style: form
          explode: false
          schema:
            items:
              type: string
            type: array
        - description: Page number (default 1)
          in: query
          name: page
          schema:
            type: integer
        - description: Items per page (default 100, max 100)
          in: query
          name: per-page
          schema:
            type: integer
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_pkg_webserver_v1.OkResponseFolderMedia
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_pkg_webserver_v1.OkResponseFolderMedia:
      properties:
        data:
          $ref: >-
            #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.FolderMedia
        success:
          type: boolean
        total:
          type: integer
        total_pages:
          type: integer
      type: object
    internal_pkg_webserver_v1.ErrorMessage:
      properties:
        details:
          items:
            type: string
          type: array
        message:
          type: string
        success:
          type: boolean
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.FolderMedia:
      properties:
        facets:
          items:
            $ref: >-
              #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaFacet
          type: array
        items:
          items:
            $ref: >-
              #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaItem
          type: array
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaFacet:
      properties:
        template_key:
          type: string
        template_name:
          type: string
        values:
          items:
            $ref: >-
              #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaFacetValue
          type: array
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaItem:
      properties:
        blurhash:
          type: string
        created_at:
          type: string
        description:
          type: string
        folder:
          $ref: >-
            #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.FolderRef
        id:
          type: string
        status:
          type: string
        title:
          type: string
        type:
          $ref: >-
            #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaType
        updated_at:
          type: string
        url:
          type: string
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaFacetValue:
      properties:
        active:
          type: boolean
        count:
          type: integer
        key:
          type: string
        name:
          type: string
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.FolderRef:
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.MediaType:
      enum:
        - image
        - video
        - file
      type: string
      x-enum-varnames:
        - MediaTypeImage
        - MediaTypeVideo
        - MediaTypeFile

````