Overview
Creates a new record in your vault with the specified type, name, metadata fields, and content body.
Body Parameters
Record type (e.g., person, project, task, assumption). Must be one of the 19 known types.
Display name for the record. This becomes the filename (e.g., Alice Chen creates person/Alice Chen.md).
Key-value pairs for record metadata. For example: {"status": "active", "org": "[[org/Acme Corp]]"}.
Content body for the record (everything after the metadata).
Response
Returns status 201 Created.
Confirmation message. If the output is structured JSON, it is returned directly instead.
Request Example
curl -X POST https://alfred.black/api/v1/vault/records \
-H "Authorization: Bearer alf_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"type": "person",
"name": "Alice Chen",
"fields": {
"role": "ML Engineer",
"org": "[[org/Acme Corp]]",
"status": "active"
},
"body": "## Background\n\nAlice joined Acme in December 2025."
}'
Response Example
{
"raw": "Created person/Alice Chen.md"
}