Autenticação
Envie uma chave de API como um token de portador. A chave deve ter a permissão vector.view; uma chave sem ela é recusada com 403, e não 404.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X GET https://api.zinndigital.com/v1/vector/indexes/{indexId} \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
One index belonging to this organisation. Requires `vector.view`.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
indexId (path) | string | Sim | The index's id. |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
id | string | Sim | — |
name | string | Sim | Lower-case, hyphenated, unique within the organisation. |
dimension | integer | Sim | The width your embedding model emits, and the width reads return. Fixed at creation. |
metric | string<cosine, l2, inner_product> | Sim | The distance function. Fixed at creation. |
status | string<ready, deleting> | Sim | — |
vectors | integer | Sim | How many vectors the index holds. |
storage_bytes | integer | Sim | What the index counts for against `vector_index_gb`. A published formula rather than a physical table size, so it is reproducible: 96 bytes of row overhead, plus the stored widt… |
created_at | string | Sim | — |
Erros que este endpoint pode retornar
401 · 403 · 404 · 429