---
title: "Vectorize And Store Chunk"
method: POST
path: "/vector/store/vectorize"
tags: ["Vectorization"]
---

# Vectorize And Store Chunk

`POST /vector/store/vectorize`

## Endpoint to Vectorize and Store Chunks. 
This endpoint triggers the vectorization and storage of chunks. It takes a reference to the chunking job that was completed and triggers the vectorization of the chunks.

***
## Request Body

| Field               | Type   | Description                      |
|---------------------|--------|----------------------------------|
| chunking_job_id     | str    | The ID of the chunking job.      |
| index_id            | str    | The ID of the index to store the vectors. |

***

## Example Request Body
    
        ```json
    
        {
            "chunking_job_id": "b1c2b4c5-6d7e-8f9g-0h1i-2j3k4l5m6n7",
            "index_id": "b1c2b4c5-6d7e-8f9g-0h1i-2j3k4l5m6n7"
        }
    
        ```
***
## Response Body

| Field               | Type   | Description                      |
|---------------------|--------|----------------------------------|
| vectorize_job_id    | str    | The ID of the vectorization job. |
| vector_store_id     | str    | The ID of the vector store.      |
| index_id            | str    | The ID of the index.             |
| chunking_job_id     | str    | The ID of the chunking job.      |
| total_file_count    | int    | The total number of files to be vectorized. |
| completed_file_count| int    | The number of files that have been vectorized. |
| failed_file_count   | int    | The number of files that failed to be vectorized. |
| status              | str    | The status of the vectorization job. |

***
#### Errors

- **400 Bad Request**: If the index or chunking job is not found.
- **500 Internal Server Error**: If there is an unexpected error during the vectorization process.

## Request body

- VectorizeRequestChunkJobInput
  - `chunking_job_id` string, required
  - `index_id` string, required

## Response `200`

Successful Response

- VectorizationJobStatusResponse
  - `vectorize_job_id` string, required
  - `vector_store_id` string, required
  - `index_id` string, required
  - `chunking_job_id` string, required
  - `total_file_count` integer, required
  - `completed_file_count` integer, required
  - `failed_file_count` integer, required
  - `status` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/generative-ai-foundational-platform-api/revisions/8831d08902e9/schema)
