Unispec Docs
ApiTyped memory

Store a typed record

Validated against the schema latest version (unknown fields rejected, enum/type/required enforced). The record row is the source of truth; a derived embedding is written to the memory store so records surface in semantic search (filter with filters.schema). Meters as memory.add.

POST
/v1/records/{schemaName}

Validated against the schema latest version (unknown fields rejected, enum/type/required enforced). The record row is the source of truth; a derived embedding is written to the memory store so records surface in semantic search (filter with filters.schema). Meters as memory.add.

Authorization

TokenAuth
Authorization<token>

Project API key as Token lb-sk_...

In: header

Path Parameters

schemaName*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/records/string" \  -H "Content-Type: application/json" \  -d '{    "record": {}  }'
{  "id": "string",  "schema": "string",  "schema_version": 0,  "user_id": "string",  "agent_id": "string",  "run_id": "string",  "app_id": "string",  "record": {},  "created_at": "2019-08-24T14:15:22Z"}
Empty