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] } }
This endpoint fetches a random vector. Returns null if the index is empty.
This endpoint doesn’t require any additional data.
The response is null if the index is empty.
null
The ID of the resulting vector.
The resulting vector data.
Was this page helpful?