curl $UPSTASH_VECTOR_REST_URL/list-namespaces \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": ["", "ns0", "ns1"]
}
Endpoints
List Namespaces
Lists the names of the namespaces of an index.
GET
/
list-namespaces
curl $UPSTASH_VECTOR_REST_URL/list-namespaces \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": ["", "ns0", "ns1"]
}
Request
This endpoint doesn’t require any additional data.Response
string[]
required
Array of namespace names.
Every index has at least one namespace called default namespace, whose name is the empty string
"".curl $UPSTASH_VECTOR_REST_URL/list-namespaces \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": ["", "ns0", "ns1"]
}
Was this page helpful?