{"openapi":"3.1.0","info":{"title":"notes API","version":"1.0.0"},"servers":[{"url":"https://notes.dorianmarie.com"}],"paths":{"/api":{"get":{"summary":"Public application metadata","responses":{"200":{"description":"Project and API links"}}}},"/api/identity":{"get":{"summary":"Authenticated identity","security":[{"bearer":[]},{"cookie":[]}],"responses":{"200":{"description":"User ID and email"},"401":{"description":"Sign in required"}}}},"/api/sync":{"post":{"summary":"Sync {owner: account_user_id, notes:[{id,title,body,pinned,deleted,updated,revision,base}]}. At most five notes per request; title up to 500 characters, body up to 100000. UUID revisions compare against base; stale edits return the server note so offline edits can be preserved as conflict copies. Returns only the signed-in account’s notes.","security":[{"cookie":[]},{"bearer":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"cookie":{"type":"apiKey","in":"cookie","name":"__Host-dm-session"}}}}