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

# Search Examples

> Common asset search patterns and queries

## Find Recent Images

Get the most recently updated images:

```json theme={null}
{
  "filter": {
    "type": { "like": "image/%" },
    "status": { "eq": "active" }
  },
  "sort": [{ "field": "updatedAt", "order": "desc" }],
  "limit": 50
}
```

## Find Videos

Find video files:

```json theme={null}
{
  "filter": {
    "type": { "like": "video/%" },
    "status": { "eq": "active" }
  },
  "sort": [{ "field": "updatedAt", "order": "desc" }]
}
```

## Find Assets by Multiple Tags

Find assets that have both "hero" and "homepage" tags:

```json theme={null}
{
  "filter": {
    "tags": { "all": ["hero", "homepage"] },
    "status": { "eq": "active" }
  }
}
```

## Find Assets by Any Tag

Find assets that have either "hero" or "banner" tags:

```json theme={null}
{
  "filter": {
    "tags": { "any": ["hero", "banner"] },
    "status": { "eq": "active" }
  }
}
```

## Find Assets in Date Range

Find assets updated in Q1 2024:

```json theme={null}
{
  "filter": {
    "updatedAt": {
      "gte": "2024-01-01T00:00:00Z",
      "lte": "2024-03-31T23:59:59Z"
    }
  },
  "sort": [{ "field": "updatedAt", "order": "asc" }]
}
```

## Find Assets by Name Pattern

Find all assets with names starting with "banner-":

```json theme={null}
{
  "filter": {
    "name": { "like": "banner-%" }
  },
  "sort": [{ "field": "updatedAt", "order": "desc" }]
}
```

## Find Icons

Find SVG icons:

```json theme={null}
{
  "filter": {
    "type": { "eq": "image/svg+xml" },
    "tags": { "any": ["icon"] },
    "status": { "eq": "active" }
  }
}
```

## Find Assets Without Specific Tags

Find active assets that need categorization:

```json theme={null}
{
  "filter": {
    "status": { "eq": "active" }
  },
  "sort": [{ "field": "updatedAt", "order": "asc" }]
}
```

## Pagination Example

Fetch results with 25 items per page:

```json theme={null}
{
  "filter": {
    "type": { "like": "image/%" }
  },
  "sort": [{ "field": "updatedAt", "order": "desc" }],
  "limit": 25
}
```

<Note>
  For subsequent pages, include the `lastKey` from the previous response's pagination object.
</Note>

## Combined Query Parameters and Body

Using URL parameters for common filters and body for complex conditions:

```bash theme={null}
POST /app/v1/organizations/org123/projects/proj456/assets/search?status=active&sort=updatedAt:desc
```

```json theme={null}
{
  "filter": {
    "type": { "in": ["image/jpeg", "image/png", "image/webp"] },
    "tags": { "any": ["product", "thumbnail"] }
  },
  "limit": 100
}
```
