> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Vector Count

Returns the total number of vectors stored in an index.

## Request Body

```json theme={null}
{
  "index_name": "my_index",
  "index_key": "64_character_hex_string_representing_32_bytes"
}
```

<Expandable title="parameters">
  <ParamField body="index_name" type="string" required="true">
    Name of the index to count vectors for
  </ParamField>

  <ParamField body="index_key" type="string" required="true">
    32-byte encryption key as hex string
  </ParamField>
</Expandable>

## Response

```json theme={null}
{
  "status": "success", 
  "message": "1500"
}
```

<Expandable title="response fields">
  <ResponseField name="status" type="string">
    Status of the request (success/error)
  </ResponseField>

  <ResponseField name="message" type="string">
    The vector count as a string value
  </ResponseField>
</Expandable>

## Example Usage

```bash theme={null}
# Get vector count
count=$(curl -s -X POST "http://localhost:8000/v1/vectors/num_vectors" \
     -H "X-API-Key: cyborg_your_api_key_here" \
     -H "Content-Type: application/json" \
     -d '{
       "index_name": "my_index",
       "index_key": "your_64_character_hex_key_here"
     }' | jq -r '.message')

echo "Index contains $count vectors"
```
