GET
/
random
curl https://hardy-cricket-48359-us1-vector.upstash.io/random \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
{
  "result" : {
    "id" : "1",
    "vector" : [0.1, 0.2, 0.3]
  }
}

Request

This endpoint doesn’t require any additional data.

Response

The response is null if the index is empty.

id
string
required

The ID of the resulting vector.

vector
number[]

The resulting vector data.

curl https://hardy-cricket-48359-us1-vector.upstash.io/random \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
{
  "result" : {
    "id" : "1",
    "vector" : [0.1, 0.2, 0.3]
  }
}