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.
/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.
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):
{
"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):
{
"details": [
"string"
],
"error": "string"
}404 - object
Error
| Property | Type | Required | Details |
|---|---|---|---|
details | string[] | No | - |
error | string | No | - |
Generated example (synthetic):
{
"details": [
"string"
],
"error": "string"
}500 - object
Error
| Property | Type | Required | Details |
|---|---|---|---|
details | string[] | No | - |
error | string | No | - |
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