---
title: "POST /GetVectors"
method: POST
path: "/GetVectors"
---

# POST /GetVectors

`POST /GetVectors`

Returns vector attributes. To specify the vector index, you can either use both the vector bucket name and the vector index name, or use the vector index Amazon Resource Name (ARN).

Permissions

You must have the `s3vectors:GetVectors` permission to use this operation.

## Request body

- object
  - `vectorBucketName` string — The name of the vector bucket that contains the vector index.
  - `indexName` string — The name of the vector index.
  - `indexArn` string — The ARN of the vector index.
  - `keys` VectorKey[], required — The names of the vectors you want to return attributes for.
  - `returnData` boolean — Indicates whether to include the vector data in the response. The default value is <code>false</code>.
  - `returnMetadata` boolean — Indicates whether to include metadata in the response. The default value is <code>false</code>.

## Response `200`

Success

- GetVectorsOutput
  - `vectors` GetOutputVector[], required — The attributes of the vectors.
    - `key` string, required — The name of the vector.
    - `data` object — The vector data of the vector.
      - `float32` Float[] — The vector data as 32-bit floating point numbers. The number of elements in this array must exactly match the dimension of the vector index where the operation is being performed.
    - `metadata` object — Metadata about the vector.

## Other responses

- `480` — ValidationException
- `481` — ServiceUnavailableException
- `482` — TooManyRequestsException
- `483` — KmsInvalidKeyUsageException
- `484` — InternalServerException
- `485` — KmsInvalidStateException
- `486` — AccessDeniedException
- `487` — KmsNotFoundException
- `488` — RequestTimeoutException
- `489` — NotFoundException
- `490` — KmsDisabledException

---

[API](https://skmtc.net/aws/apis/s3vectors.md) · [All operations](https://skmtc.net/aws/apis/s3vectors/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/s3vectors/versions/dc31037cd75b/schema)
