API Compatibility
OpenAI · Vector Stores
Lists the caller's vector stores.#
GET
/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.#
POST
/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.#
GET
/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.#
DELETE
/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"Attaches an uploaded file to a vector store, indexing it for retrieval.#
POST
/v1/vector_stores/{storeId}/filesThe file (from POST /v1/files) is parsed, chunked, and indexed by the managed ingestion pipeline. Embedding runs in the background; a file whose status is still 'in_progress' is already full-text searchable and becomes semantically searchable when embedding completes.
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"
}'