Index Document
Take the JSON response from the Chunk and Perform Embedding API (Step 1) and POST it directly to the Azure AI Search Documents Index API. This uploads all chunks — with their text, metadata, and embedding vectors — into your search index, making them available for keyword, semantic, and vector queries.
| Property | Value |
|---|---|
| Method | POST |
| Content-Type | application/json |
| Service | Azure AI Search (direct API call — not a Lowcademy endpoint) |
| API Version | 2025-05-01-preview |
| Body | The full JSON response from the Chunk and Perform Embedding API (Step 1) |
my-search-service)Azure AI Search API Key
api-key{{azureAISearch_Key}}| Header | Type | Required | Description |
|---|---|---|---|
| api-key | String | Required | Your Azure AI Search API key. Use an admin key for indexing operations. |
| Content-Type | String | Required | Must be application/json. |
Request Body Structure
{
"value": [
{
"@search.action" : "upload",
"id" : "1-42-0001",
"tenant_id" : 1,
"document_id" : 42,
"sourceName" : "MyDocument",
"section" : "Introduction",
"content" : "Azure AI Search is a fully managed cloud search service...",
"embedding" : [ 0.0023064255, -0.009327292, ... ]
}
]
}cURL
curl -X POST \ -H "api-key: <your-azure-search-admin-key>" \ -H "Content-Type: application/json" \ -d '<paste Step 1 response body here>' \ "https://<resource-name>.search.windows.net/indexes/<index-name>/docs/index?api-version=2025-05-01-preview"
Successful Index Response
{
"value": [
{
"key" : "1-42-0001",
"status" : true,
"errorMessage" : null,
"statusCode" : 201
}
]
}status field for per-document errors.api-key header missing or invalid.