---
title: "Find the best library moments for a script line"
method: POST
path: "/api/v1/video-library/moments/search"
tags: ["videoLibrary"]
---

# Find the best library moments for a script line

`POST /api/v1/video-library/moments/search`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/video-library/moments/search`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/brandbooster/apis/brandbooster-api/docs/api/v1/video-library/moments/search/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- MomentSearchDTO
  - `domain_id` string, nullable
  - `text` string
  - `section` string, nullable: ad.section: hook, body: problem, ... end card
  - `kind` 'auto' | 'talk' | 'broll'
  - `want` object
  - `hard` object
  - `duration` number, nullable
  - `item_ids` string[], nullable
  - `k` integer
  - `min_score` number: Minimum ranking score, not a probability

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

> 66 revisions in range; 1 not diffed.

- **2026-11-10** `f01e0665e1e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brandbooster/apis/brandbooster-api/changes/api/v1/video-library/moments/search/post.md)

---

[API](https://skmtc.dev/brandbooster/apis/brandbooster-api.md) - [All operations](https://skmtc.dev/brandbooster/apis/brandbooster-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/brandbooster-api/revisions/632983b2dd58?raw)
