Get Folder Facets

Returns every attribute available on media within a folder, with distinct-item counts. The returned filter_key on each facet can be passed back to Get Folder Contents as part of `attributes=` to filter the listing. Per-template exclusion: when computing counts for a facet, filters on that same template_key are ignored; filters on other templates still apply. This matches the OR-within-template / AND-across-template filter semantics so users can multi-select within a template and still see realistic counts for the other values.

GET/api/v1/{app_id}/folders/{id}/facets
API
DAM
OpenAPI
dam-api
Updated
Apr 26, 2026

dam-api:GET:/api/v1/{app_id}/folders/{id}/facets

Returns every attribute available on media within a folder, with distinct-item counts. The returned filter_key on each facet can be passed back to Get Folder Contents as part of attributes= to filter the listing. Per-template exclusion: when computing counts for a facet, filters on that same template_key are ignored; filters on other templates still apply. This matches the OR-within-template / AND-across-template filter semantics so users can multi-select within a template and still see realistic counts for the other values.

API ownership

  • API family: DAM public reads
  • Best for: Public asset-library folder, media, facet, and shareable-link reads. Use Management API DAM routes for authenticated administration.
  • Guide route: /media/dam/latest

The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.

Operation

  • Method: GET
  • Path: /api/v1/\{app_id\}/folders/\{id\}/facets
  • Summary: Get Folder Facets
  • Description: Returns every attribute available on media within a folder, with distinct-item counts. The returned filter_key on each facet can be passed back to Get Folder Contents as part of attributes= to filter the listing. Per-template exclusion: when computing counts for a facet, filters on that same template_key are ignored; filters on other templates still apply. This matches the OR-within-template / AND-across-template filter semantics so users can multi-select within a template and still see realistic counts for the other values.
  • OpenAPI contract: dam-api
  • Operation ID: Not documented in the OpenAPI contract.

Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.

Parameters4 parameters
NameInRequiredTypeDescription
app_idpathYesstringApp ID
idpathYesstringFolder ID
typequeryNostringFilter by type: image, video, file, all (default: all)
attributesqueryNostring[]Filter by attribute(s). Same syntax as Get Folder Contents: repeat the query parameter once per filter, each in the form template_key/attribute_key. Per-template exclusion applies when computing counts (filters on the same template_key are ignored).
Request bodyNo documented body

Not documented in the OpenAPI contract.

Responses4 statuses
StatusDescriptionContent
200Folder facetsapplication/json (object)
400Invalid requestapplication/json (object)
404Folder not foundapplication/json (object)
500Internal server errorapplication/json (object)

200 - object

Folder Facets Response

PropertyTypeRequiredDetails
dataobject[]No-
successbooleanNo-
Folder Facet
PropertyTypeRequiredDetails
activebooleanNo-
countintegerNo-
descriptionstringNo-
filter_keystringNo-
keystringNo-
namestringNo-
template_keystringNo-
valuesobject[]No-
Folder Facet Value
PropertyTypeRequiredDetails
countintegerNo-
typestringNo-
valuestringNo-

Generated example (synthetic):

{
  "data": [
    {
      "active": false,
      "count": 0,
      "description": "string",
      "filter_key": "string",
      "key": "string",
      "name": "string",
      "template_key": "string",
      "values": [
        {
          "count": null,
          "type": null,
          "value": null
        }
      ]
    }
  ],
  "success": false
}

400 - object

Error

PropertyTypeRequiredDetails
detailsstring[]No-
errorstringNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "error": "string"
}

404 - object

Error

PropertyTypeRequiredDetails
detailsstring[]No-
errorstringNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "error": "string"
}

500 - object

Error

PropertyTypeRequiredDetails
detailsstring[]No-
errorstringNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "error": "string"
}

Contract identity

Use these fields to confirm you are implementing the intended endpoint contract.

  • API family: DAM public reads
  • Method: GET
  • Path: /api/v1/\{app_id\}/folders/\{id\}/facets
  • Operation ID: Not documented in the OpenAPI contract.
  • OpenAPI tag: Folders
  • OpenAPI summary: Get Folder Facets

Get Folder Facets

# Get Folder Facets Returns every attribute available on media within a folder, with distinct-item counts. The returned filter_key on each facet can be passed back to Get Folder Contents as part of `attributes=` to filter the listing. Per-template exclusion: when computing counts for a facet, filters on that same template_key are ignored; filters on other templates still apply. This matches the OR-within-template / AND-across-template filter semantics so users can multi-select within a template and still see realistic counts for the other values.
GET /api/v1/{app_id}/folders/{id}/facets
Purpose

Returns every attribute available on media within a folder, with distinct-item counts.

Required inputs

app_id path id path

Primary response

200 ยท Folder facets

Operation key

dam-api:GET:/api/v1/{app_id}/folders/{id}/facets

## API ownership - API family: DAM public reads - Best for: Public asset-library folder, media, facet, and shareable-link reads. Use Management API DAM routes for authenticated administration. - Guide route: [/media/dam/latest](/media/dam/latest) The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation. ## Operation - Method: `GET` - Path: `/api/v1/{app_id}/folders/{id}/facets` - Summary: Get Folder Facets - Description: Returns every attribute available on media within a folder, with distinct-item counts. The returned filter_key on each facet can be passed back to Get Folder Contents as part of `attributes=` to filter the listing. Per-template exclusion: when computing counts for a facet, filters on that same template_key are ignored; filters on other templates still apply. This matches the OR-within-template / AND-across-template filter semantics so users can multi-select within a template and still see realistic counts for the other values. - OpenAPI contract: dam-api - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `dam-api:GET:/api/v1/{app_id}/folders/{id}/facets` Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID. ## Parameters | Name | In | Required | Type | Description | | --- | --- | --- | --- | --- | | app_id | path | Yes | string | App ID | | id | path | Yes | string | Folder ID | | type | query | No | string | Filter by type: image, video, file, all (default: all) | | attributes | query | No | string[] | Filter by attribute(s). Same syntax as Get Folder Contents: repeat the query parameter once per filter, each in the form template_key/attribute_key. Per-template exclusion applies when computing counts (filters on the same template_key are ignored). | ## Request body Not documented in the OpenAPI contract. ## Responses | Status | Description | Content | | --- | --- | --- | | 200 | Folder facets | application/json (object) | | 400 | Invalid request | application/json (object) | | 404 | Folder not found | application/json (object) | | 500 | Internal server error | application/json (object) | ### 200 - object #### Folder Facets Response | Property | Type | Required | Details | | --- | --- | --- | --- | | `data` | object[] | No | - | | `success` | boolean | No | - | ##### Folder Facet | Property | Type | Required | Details | | --- | --- | --- | --- | | `active` | boolean | No | - | | `count` | integer | No | - | | `description` | string | No | - | | `filter_key` | string | No | - | | `key` | string | No | - | | `name` | string | No | - | | `template_key` | string | No | - | | `values` | object[] | No | - | ##### Folder Facet Value | Property | Type | Required | Details | | --- | --- | --- | --- | | `count` | integer | No | - | | `type` | string | No | - | | `value` | string | No | - | **Generated example (synthetic):** ```json { "data": [ { "active": false, "count": 0, "description": "string", "filter_key": "string", "key": "string", "name": "string", "template_key": "string", "values": [ { "count": null, "type": null, "value": null } ] } ], "success": false } ``` ### 400 - object #### Error | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `error` | string | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "error": "string" } ``` ### 404 - object #### Error | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `error` | string | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "error": "string" } ``` ### 500 - object #### Error | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `error` | string | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "error": "string" } ``` ## Contract identity Use these fields to confirm you are implementing the intended endpoint contract. - API family: DAM public reads - Method: `GET` - Path: `/api/v1/{app_id}/folders/{id}/facets` - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `dam-api:GET:/api/v1/{app_id}/folders/{id}/facets` - OpenAPI tag: Folders - OpenAPI summary: Get Folder Facets