OpenAI · Vector Stores
Lists the caller's vector stores.#
/v1/vector_storesResponses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X GET "$LMKIT_ONE_URL/v1/vector_stores" \
-H "Authorization: Bearer $LMKIT_API_KEY"Creates a vector store.#
/v1/vector_storesRequest body
text/json ·
| Property | Type | Description |
|---|---|---|
name | string | The vector store's display name. |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X POST "$LMKIT_ONE_URL/v1/vector_stores" \
-H "Authorization: Bearer $LMKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'Retrieves a vector store.#
/v1/vector_stores/{storeId}Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X GET "$LMKIT_ONE_URL/v1/vector_stores/$STOREID" \
-H "Authorization: Bearer $LMKIT_API_KEY"Deletes a vector store and everything indexed in it.#
/v1/vector_stores/{storeId}Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X DELETE "$LMKIT_ONE_URL/v1/vector_stores/$STOREID" \
-H "Authorization: Bearer $LMKIT_API_KEY"Lists the files attached to a vector store.#
/v1/vector_stores/{storeId}/filesNewest first (order=asc for oldest first). 'filter' keeps one status ('in_progress' or 'completed'), 'after' and 'before' resume around a file id, 'limit' caps the page (1 to 100, default 20), and has_more says whether a further page exists.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string | |
limit | query | object (int32) | Page size, 1 to 100. |
order | query | string | 'asc' or 'desc' (default) by indexing time. |
after | query | string | The file id to resume after. |
before | query | string | The file id to stop before. |
filter | query | string | Only files in this status. |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X GET "$LMKIT_ONE_URL/v1/vector_stores/$STOREID/files" \
-H "Authorization: Bearer $LMKIT_API_KEY"Attaches an uploaded file to a vector store, indexing it for retrieval.#
/v1/vector_stores/{storeId}/filesThe file (from POST /v1/files) is parsed, chunked, and indexed by the managed ingestion pipeline. A file whose status is still 'in_progress' is already full-text searchable and reports 'completed' once its embedding pass has landed; poll GET .../files/ the way OpenAI SDK helpers do.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string |
Request body
text/json ·
| Property | Type | Description |
|---|---|---|
file_id | string | The id of an uploaded file (from POST /v1/files) to index into this store. |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X POST "$LMKIT_ONE_URL/v1/vector_stores/$STOREID/files" \
-H "Authorization: Bearer $LMKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_id": "string"
}'Retrieves a file attached to a vector store, with its indexing status.#
/v1/vector_stores/{storeId}/files/{fileId}Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string | |
fileIdrequired | path | string |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X GET "$LMKIT_ONE_URL/v1/vector_stores/$STOREID/files/$FILEID" \
-H "Authorization: Bearer $LMKIT_API_KEY"Detaches a file from a vector store, removing what was indexed from it.#
/v1/vector_stores/{storeId}/files/{fileId}The uploaded file itself stays in the caller's bucket; delete it through DELETE /v1/files/.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
storeIdrequired | path | string | |
fileIdrequired | path | string |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X DELETE "$LMKIT_ONE_URL/v1/vector_stores/$STOREID/files/$FILEID" \
-H "Authorization: Bearer $LMKIT_API_KEY"