hosting
POST /v1/vector/indexes/{indexId}/vectors/fetch
Read vectors back by id.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea vector.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X POST https://api.zinndigital.com/v1/vector/indexes/{indexId}/vectors/fetch \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "ids": <string[]> }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
Returns the vectors you stored, by your own ids, with their metadata. Values come back at the index's own `dimension` — never at the wider width they may physically be stored in, which is an implementation detail you should never have to know about. A POST rather than a GET because the ids are yours and there may be a thousand of them. This does **not** count against `vector_queries_monthly`: fetching by id runs no nearest-neighbour search. Requires `vector.manage`, like `query`, because it returns your stored data rather than your usage.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
indexId (path) | string | Da | The index's id. |
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
ids | string[] | Da | — |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
vectors | Vector[] | Da | — |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 422 · 429