Create a new decision with provenance tracking.
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 decision.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/memory/decisions/create" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'null{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}Create Api Key
Create a new API key for programmatic access. The API key is only shown once and cannot be retrieved later. Store it securely.
Create Explicit Link
Create an explicit typed link between two zettels. LINKS_TO uses the bidirectional helper. Arbitrary relation types go through add_dynamic_relation and become visible via GET /zettel/by-relation/{source_id}/{relation_type}.