Base URL
Authorization: Bearer YOUR_API_KEY header.
Collections
Create a collection
cosine (default), euclidean, dot
Response:
List collections
Delete a collection
Vectors
Upsert
solanaTx and solanaExplorerUrl are null on the Free tier.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Complete reference for the Recall REST API and SDKs.
https://api.veclabs.xyz/api/v1
Authorization: Bearer YOUR_API_KEY header.
POST /collections
{
"name": "agent-memory",
"dimensions": 1536,
"metric": "cosine"
}
cosine (default), euclidean, dot
Response:
{
"collection": {
"id": "uuid",
"name": "agent-memory",
"dimensions": 1536,
"metric": "cosine",
"vector_count": 0,
"created_at": "2026-04-30T00:00:00Z"
}
}
GET /collections
DELETE /collections/{name}
POST /collections/{name}/upsert
{
"records": [
{
"id": "mem_001",
"values": [0.1, 0.2, ...],
"metadata": { "text": "User prefers dark mode" }
}
]
}
{
"upsertedCount": 1,
"merkleRoot": "90d483c77c4e...",
"solanaProgram": "8xjQ2XrdhR4JkGAdTEB7i34DBkbrLRkcgchKjN1Vn5nP",
"solanaTx": "42sxn4j...",
"solanaExplorerUrl": "https://explorer.solana.com/tx/42sxn4j...?cluster=devnet"
}
solanaTx and solanaExplorerUrl are null on the Free tier.
POST /collections/{name}/query
{
"vector": [0.1, 0.2, ...],
"topK": 10,
"includeValues": false,
"filter": {}
}
{
"matches": [
{
"id": "mem_001",
"score": 0.97,
"metadata": { "text": "User prefers dark mode" }
}
]
}
POST /collections/{name}/delete
{
"ids": ["mem_001", "mem_002"]
}
POST /collections/{name}/fetch
{
"ids": ["mem_001"]
}
GET /collections/{name}/verify
{
"verified": true,
"onChainRoot": "90d483c...",
"computedRoot": "90d483c...",
"match": true,
"vectorCount": 42,
"solanaExplorerUrl": "https://explorer.solana.com/address/...?cluster=devnet"
}
GET /usage
GET /keys
POST /keys
{ "name": "Production" }
DELETE /keys/{id}
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 404 | Collection not found |
| 429 | Plan limit reached — upgrade at app.veclabs.xyz/pricing |
| 500 | Internal error — check status.veclabs.xyz |