---
title: "Api Index And Migrate Records"
method: POST
path: "/v1/index_records/{application_id}/index-and-migrate"
tags: ["index_records"]
---

# Api Index And Migrate Records

`POST /v1/index_records/{application_id}/index-and-migrate`

## Request

- Base URL: `https://api.branchly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.branchly.io/v1/index_records/{application_id}/index-and-migrate`
- Auth: HTTP bearer

## Path parameters

- `application_id` string, uuid, required

## Request body

- IndexAndMigrateRequest
  - `dense_model` 'all-MiniLM-L12-v2' | 'text-embedding-ada-002' | 'multilingual-e5-small' | 'text-embedding-3-large' | 'embeddinggemma-300m'
  - `sparse_model` 'bm25'
  - `search_mode` 'dense' | 'sparse' | 'hybrid'
  - `vertex_ids` string[], nullable: Specific vertex IDs to index. If omitted, all content vertices of the application are indexed.

## Response `200`

Successful Response

- IndexAndMigrateResponse
  - `message` string, required
  - `collection` string, required: Qdrant collection that was populated.
  - `vertices_count` integer, required: Number of vertices indexed.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/branchly/apis/branchly-io-api.md) · [All operations](https://skmtc.dev/branchly/apis/branchly-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/branchly/apis/branchly-io-api/revisions/9ffb024f8ec8?raw)
