inbox: add scripts for testing inbox api locally

This commit is contained in:
Abdullah Atta
2026-03-27 14:11:15 +05:00
parent 8d92aff8cd
commit 3a2a04317f
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
const response = await fetch("http://localhost:5181/inbox", {
method: "POST",
headers: {
Authorization: process.env.API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "This is test note 4",
type: "note",
source: "script",
version: 1,
content: {
type: "html",
data: "<p>This is test note content 3</p>",
},
}),
});
console.log(await response.text());