Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.
/api/notes/by-id/{noteId}/versionsPATCH
Restore a prior note snapshot and create a restore snapshot. This operation requires write permission and ownership.
Authorization
bearerAuth *Bearer <token>
Send the full key as Authorization: Bearer bri_..... Token in: header
Request Bodyapplication/jsonrequired
action *"restore"
versionId *string
Response
200 · Version restored.
data *object
Show properties
restored *true
id?string
slug?string
title?string
400 · The request body or parameter is invalid.
error *string
Human-readable error message.
401 · The bearer key is missing, malformed, revoked, or invalid.
error *string
Human-readable error message.
403 · The caller lacks the required permission or ownership.
error *string
Human-readable error message.
404 · The resource is not available to the caller.
error *string
Human-readable error message.
Request example
curl -X PATCH "https://bri.fyi/api/notes/by-id/<noteId>/versions" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "action": "restore", "versionId": "string" }'