API Reference
Vector Store
Endpoints for working with Vector Store resources in klink.cloud. All requests are authenticated with your API token — see Authentication.
- GET/api/v1/vector-stores
Listing
Lists the vector stores in your workspace. A vector store is a searchable set of documents an AI agent can answer from (File Search).
- POST/api/v1/vector-stores
Create
Creates an empty vector store. Add documents with Add Document, then attach the store to an AI agent by putting its
idinvectorStoreIdson anagentNode(AI Agent → Update Flow), and publish the agent. - GET/api/v1/vector-stores/{id}
Detail
Returns a vector store with its indexing progress. After adding documents, poll this until
documents.inProgressis 0. Documents that are still being indexed are not searchable yet. - PATCH/api/v1/vector-stores/{id}
Update
Renames a vector store or changes its description. Send only the fields you want to change.
- DELETE/api/v1/vector-stores/{id}
Delete
Permanently deletes a vector store and its documents' search index. The original media-manager files are kept.
- GET/api/v1/vector-stores/{id}/documents
List Documents
Lists the documents in a vector store. Indexing progress is reported per store; see Detail.
- POST/api/v1/vector-stores/{id}/documents
Add Document
Adds one document to the store. Send exactly one of:
- DELETE/api/v1/vector-stores/{id}/documents/{documentId}
Remove Document
Removes a document from the store. AI agents stop finding its content right away. The original media-manager file is kept.