Create a new opinion with optional agent attribution.
Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to create a new opinion.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/opinions/create" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Ontology Type
Declare an ontology class (CORE-MEMTYPE-DECLARE-1). `kind='record'` declares a concrete record type: items may then be written with `memory_type=<name>` through the one save request (`/memory/add`, FULL-ALIGN-1 G56), schema-checked against `properties_schema` (WARNING mode in P1). 400 on an invalid schema/tier/kind/strategy, and 409 when the name shadows a registered memory type or the iri/qid identity slot is already bound (the body names the conflict).
Create Pattern
Manually add an entity pattern.