Skip to main content
GET
/
random
/
{namespace}
curl $UPSTASH_VECTOR_REST_URL/random \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
    "result": {
        "id": "id-0",
        "vector": [0.1, 0.2]
    }
}

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Request

This endpoint doesn’t require any additional data.

Path

namespace
string
default:""
The namespace to use. When no namespace is specified, the default namespace will be used.

Response

The response will be null if the namespace is empty.
id
string
required
The id of the vector.
vector
number[]
The dense vector value for dense and hybrid indexes.
sparseVector
Object[]
The sparse vector value for sparse and hybrid indexes.
curl $UPSTASH_VECTOR_REST_URL/random \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
    "result": {
        "id": "id-0",
        "vector": [0.1, 0.2]
    }
}