Bold VideoDocs

AI Search

Search with AI synthesis

POST
/api/v1/ai/search

Authorization

api_token
AuthorizationBearer <token>

API token provided by BOLD Admin

In: header

Request Body

application/json

Search request

attended_by?string|

Admin key and viewers feature required. Viewer UUID(s) or external ID(s); restrict videos to their current roster. OR within the list; AND with other filters. Unknown viewer: 404; no attendance: no results. Does not grant private video access.

channel?string

Optional analytics channel. Missing/unrecognized values become unknown; metadata never rejects the search.

Value in"portal" | "embed" | "api" | "mcp"
client_name?string

Optional analytics client name; trimmed 1–128 characters and at most 512 UTF-8 bytes. Invalid values become unknown.

Length1 <= length <= 128
client_version?string

Optional analytics client version; trimmed 1–128 characters and at most 512 UTF-8 bytes. Invalid values become unknown.

Length1 <= length <= 128
collection_id?string|null

Filter to a specific collection (legacy single-value filter)

collection_ids?|null

Filter to multiple collections (OR semantics)

images?|null

Optional array of images (max 5). Requires the Vision feature flag. Each image can be base64-encoded or a URL.

Itemsitems <= 5
limit?integer

Maximum sources to return (default: 15)

prompt*string

Search query

request_id?string

Caller action UUID. Reuse unchanged on retries for analytics dedupe; not response replay.

Formatuuid
search_mode?string

Use preview for typeahead: no interaction is recorded. Settle only on submit or result selection.

Default"settled"
Value in"preview" | "settled"
spoken_by?string|

Admin key and viewers feature required. Viewer UUID(s) or external ID(s); only transcript passages containing a linked speaker, including mixed passages. OR within the list; AND with other filters. Unknown viewer: 404; no linked person: no results; index not ready: 503.

stream?boolean

Stream response via SSE (default: true)

Defaulttrue
tags?|null

Filter by video tags

video_id?string|null

Filter to a specific video

viewer?string

Existing viewer UUID or external ID, resolved within the authenticated tenant. Unresolved viewers are not captured anonymously.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.boldvideo.io/api/v1/ai/search" \  -H "Content-Type: application/json" \  -d '{    "limit": 10,    "prompt": "authentication setup"  }'
{
  "content": "string",
  "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
  "query": "string",
  "sources": [
    {
      "attachment_filename": "string",
      "attachment_id": 0,
      "canonical_url": "string",
      "cited": true,
      "document_type": "string",
      "id": "string",
      "kind": "chunk",
      "matched_sentence": {
        "end_ms": 0,
        "speaker_label": "string",
        "speaker_name": "string",
        "start_ms": 0,
        "text": "string",
        "timestamp": 0,
        "timestamp_end": 0,
        "timestamp_end_seconds": 0,
        "timestamp_seconds": 0
      },
      "moment_id": "string",
      "mux_playback_id": "string",
      "playback_id": "string",
      "playback_token": "string",
      "published_at": 0,
      "slug": "string",
      "speaker": "string",
      "speaker_label": "string",
      "speaker_name": "string",
      "summary": "string",
      "text": "string",
      "timestamp": 0,
      "timestamp_end": 0,
      "timestamp_end_seconds": 0,
      "timestamp_seconds": 0,
      "timestamp_url": "string",
      "title": "string",
      "transcript_excerpt": "string",
      "type": "insight",
      "video_id": "string",
      "video_title": "string"
    }
  ]
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}