[{"data":1,"prerenderedAt":643},["ShallowReactive",2],{"selaras-docs-navigation":3,"selaras-docs:\u002Freference\u002Frest-api":82},[4,26,43,65],{"title":5,"order":6,"icon":7,"collapse":8,"navBadges":7,"path":9,"stem":10,"children":11,"page":8},"Guide",1,null,false,"\u002Fguide","guide",[12,16,21],{"title":13,"path":14,"stem":15,"order":6,"icon":7,"collapse":8,"navBadges":7},"Getting started","\u002Fguide\u002Fgetting-started","guide\u002Fgetting-started",{"title":17,"path":18,"stem":19,"order":20,"icon":7,"collapse":8,"navBadges":7},"Connect an agent","\u002Fguide\u002Fconnect-an-agent","guide\u002Fconnect-an-agent",2,{"title":22,"path":23,"stem":24,"order":25,"icon":7,"collapse":8,"navBadges":7},"Organize and share","\u002Fguide\u002Fworkspace","guide\u002Fworkspace",3,{"title":27,"order":20,"icon":7,"collapse":8,"navBadges":7,"path":28,"stem":29,"children":30,"page":8},"Authoring","\u002Fauthoring","authoring",[31,35,39],{"title":32,"path":33,"stem":34,"order":6,"icon":7,"collapse":8,"navBadges":7},"Overview","\u002Fauthoring\u002Foverview","authoring\u002Foverview",{"title":36,"path":37,"stem":38,"order":20,"icon":7,"collapse":8,"navBadges":7},"Markdown","\u002Fauthoring\u002Fmarkdown","authoring\u002Fmarkdown",{"title":40,"path":41,"stem":42,"order":25,"icon":7,"collapse":8,"navBadges":7},"HTML and bundles","\u002Fauthoring\u002Fhtml","authoring\u002Fhtml",{"title":44,"order":25,"icon":7,"collapse":8,"navBadges":7,"path":45,"stem":46,"children":47,"page":8},"Deploy","\u002Fdeploy","deploy",[48,52,56,60],{"title":49,"path":50,"stem":51,"order":6,"icon":7,"collapse":8,"navBadges":7},"Docker","\u002Fdeploy\u002Fdocker","deploy\u002Fdocker",{"title":53,"path":54,"stem":55,"order":20,"icon":7,"collapse":8,"navBadges":7},"Cloudflare Workers","\u002Fdeploy\u002Fcloudflare","deploy\u002Fcloudflare",{"title":57,"path":58,"stem":59,"order":25,"icon":7,"collapse":8,"navBadges":7},"Turso and Vercel","\u002Fdeploy\u002Fturso","deploy\u002Fturso",{"title":61,"path":62,"stem":63,"order":64,"icon":7,"collapse":8,"navBadges":7},"Backup and restore","\u002Fdeploy\u002Fbackup","deploy\u002Fbackup",4,{"title":66,"order":64,"icon":7,"collapse":8,"navBadges":7,"path":67,"stem":68,"children":69,"page":8},"Reference","\u002Freference","reference",[70,74,78],{"title":71,"path":72,"stem":73,"order":6,"icon":7,"collapse":8,"navBadges":7},"MCP","\u002Freference\u002Fmcp","reference\u002Fmcp",{"title":75,"path":76,"stem":77,"order":20,"icon":7,"collapse":8,"navBadges":7},"REST API","\u002Freference\u002Frest-api","reference\u002Frest-api",{"title":79,"path":80,"stem":81,"order":25,"icon":7,"collapse":8,"navBadges":7},"Configuration","\u002Freference\u002Fconfiguration","reference\u002Fconfiguration",{"id":83,"title":75,"aside":84,"body":85,"collapse":8,"description":638,"editLink":84,"extension":639,"icon":7,"issueLink":84,"meta":640,"navBadges":7,"navigation":7,"order":20,"path":76,"prevNext":84,"seo":641,"stem":77,"toc":84,"__hash__":642},"docs\u002Freference\u002Frest-api.md",true,{"type":86,"value":87,"toc":630},"minimark",[88,92,96,112,123,128,278,297,301,383,387,483,487,529,533,616,620,626],[89,90,75],"h1",{"id":91},"rest-api",[93,94,95],"p",{},"Every endpoint accepts a browser session or a bearer token:",[97,98,103],"pre",{"className":99,"code":100,"language":101,"meta":102,"style":102},"language-sh shiki shiki-themes github-light github-dark","curl -H \"Authorization: Bearer $SERANGKAI_API_TOKEN\" https:\u002F\u002F\u003Cyour-host>\u002Fapi\u002Frangka\n","sh","",[104,105,106],"code",{"__ignoreMap":102},[107,108,110],"span",{"class":109,"line":6},"line",[107,111,100],{},[93,113,114,115,118,119,122],{},"Reads need the ",[104,116,117],{},"read"," scope and writes need ",[104,120,121],{},"write",". Some management endpoints\naccept only a browser session, as noted below.",[124,125,127],"h2",{"id":126},"rangka","Rangka",[129,130,131,147],"table",{},[132,133,134],"thead",{},[135,136,137,141,144],"tr",{},[138,139,140],"th",{},"Method",[138,142,143],{},"Path",[138,145,146],{},"Does",[148,149,150,166,180,194,208,222,236,250,264],"tbody",{},[135,151,152,158,163],{},[153,154,155],"td",{},[104,156,157],{},"GET",[153,159,160],{},[104,161,162],{},"\u002Fapi\u002Frangka",[153,164,165],{},"List rangka, with filters",[135,167,168,173,177],{},[153,169,170],{},[104,171,172],{},"POST",[153,174,175],{},[104,176,162],{},[153,178,179],{},"Create a rangka from text content",[135,181,182,186,191],{},[153,183,184],{},[104,185,172],{},[153,187,188],{},[104,189,190],{},"\u002Fapi\u002Frangka\u002Fupload",[153,192,193],{},"Multipart upload: Markdown, HTML, JSON, PDF, images, or a ZIP bundle",[135,195,196,200,205],{},[153,197,198],{},[104,199,157],{},[153,201,202],{},[104,203,204],{},"\u002Fapi\u002Frangka\u002F:id",[153,206,207],{},"Read a rangka",[135,209,210,215,219],{},[153,211,212],{},[104,213,214],{},"PUT",[153,216,217],{},[104,218,204],{},[153,220,221],{},"Update content, visibility, or folder",[135,223,224,229,233],{},[153,225,226],{},[104,227,228],{},"DELETE",[153,230,231],{},[104,232,204],{},[153,234,235],{},"Delete a rangka",[135,237,238,242,247],{},[153,239,240],{},[104,241,157],{},[153,243,244],{},[104,245,246],{},"\u002Fapi\u002Frangka\u002F:id\u002Fdownload",[153,248,249],{},"Download the original source",[135,251,252,256,261],{},[153,253,254],{},[104,255,172],{},[153,257,258],{},[104,259,260],{},"\u002Fapi\u002Frangka\u002F:id\u002Fduplicate",[153,262,263],{},"Copy as a new private rangka",[135,265,266,270,275],{},[153,267,268],{},[104,269,172],{},[153,271,272],{},[104,273,274],{},"\u002Fapi\u002Frangka\u002F:id\u002Fshare",[153,276,277],{},"Build a public or signed unlisted share URL",[93,279,280,281,284,285,288,289,292,293,296],{},"Content updates require ",[104,282,283],{},"baseVersion",". A missing value returns ",[104,286,287],{},"400","; a stale\none returns ",[104,290,291],{},"409"," with ",[104,294,295],{},"data.currentVersion",".",[124,298,300],{"id":299},"versions","Versions",[129,302,303,313],{},[132,304,305],{},[135,306,307,309,311],{},[138,308,140],{},[138,310,143],{},[138,312,146],{},[148,314,315,329,343,357,370],{},[135,316,317,321,326],{},[153,318,319],{},[104,320,157],{},[153,322,323],{},[104,324,325],{},"\u002Fapi\u002Frangka\u002F:id\u002Fversions",[153,327,328],{},"List the version history",[135,330,331,335,340],{},[153,332,333],{},[104,334,157],{},[153,336,337],{},[104,338,339],{},"\u002Fapi\u002Frangka\u002F:id\u002Fversions\u002F:version",[153,341,342],{},"Read one version",[135,344,345,349,354],{},[153,346,347],{},[104,348,172],{},[153,350,351],{},[104,352,353],{},"\u002Fapi\u002Frangka\u002F:id\u002Fversions\u002F:version\u002Frestore",[153,355,356],{},"Restore a version as a new version",[135,358,359,363,367],{},[153,360,361],{},[104,362,228],{},[153,364,365],{},[104,366,339],{},[153,368,369],{},"Delete one older version (browser session only)",[135,371,372,376,380],{},[153,373,374],{},[104,375,228],{},[153,377,378],{},[104,379,325],{},[153,381,382],{},"Clear older versions in batches (browser session only)",[124,384,386],{"id":385},"folders-and-search","Folders and search",[129,388,389,399],{},[132,390,391],{},[135,392,393,395,397],{},[138,394,140],{},[138,396,143],{},[138,398,146],{},[148,400,401,415,428,442,455,469],{},[135,402,403,407,412],{},[153,404,405],{},[104,406,157],{},[153,408,409],{},[104,410,411],{},"\u002Fapi\u002Ffolders",[153,413,414],{},"List folders",[135,416,417,421,425],{},[153,418,419],{},[104,420,172],{},[153,422,423],{},[104,424,411],{},[153,426,427],{},"Create a folder",[135,429,430,434,439],{},[153,431,432],{},[104,433,214],{},[153,435,436],{},[104,437,438],{},"\u002Fapi\u002Ffolders\u002F:id",[153,440,441],{},"Rename or move a folder",[135,443,444,448,452],{},[153,445,446],{},[104,447,228],{},[153,449,450],{},[104,451,438],{},[153,453,454],{},"Delete an empty folder",[135,456,457,461,466],{},[153,458,459],{},[104,460,157],{},[153,462,463],{},[104,464,465],{},"\u002Fapi\u002Fsearch",[153,467,468],{},"Search rangka and folders, optionally within a folder subtree",[135,470,471,475,480],{},[153,472,473],{},[104,474,157],{},[153,476,477],{},[104,478,479],{},"\u002Fapi\u002Foverview",[153,481,482],{},"Counts, visibility, storage total, and recent rangka",[124,484,486],{"id":485},"sharing","Sharing",[129,488,489,499],{},[132,490,491],{},[135,492,493,495,497],{},[138,494,140],{},[138,496,143],{},[138,498,146],{},[148,500,501,515],{},[135,502,503,507,512],{},[153,504,505],{},[104,506,157],{},[153,508,509],{},[104,510,511],{},"\u002Fapi\u002Fshare\u002F:slug",[153,513,514],{},"Deliver a public or unlisted rangka",[135,516,517,521,526],{},[153,518,519],{},[104,520,157],{},[153,522,523],{},[104,524,525],{},"\u002Fapi\u002Fshare\u002F:slug\u002F*",[153,527,528],{},"Deliver a shared bundle's assets",[124,530,532],{"id":531},"tokens-and-grants","Tokens and grants",[129,534,535,545],{},[132,536,537],{},[135,538,539,541,543],{},[138,540,140],{},[138,542,143],{},[138,544,146],{},[148,546,547,561,574,588,602],{},[135,548,549,553,558],{},[153,550,551],{},[104,552,157],{},[153,554,555],{},[104,556,557],{},"\u002Fapi\u002Ftokens",[153,559,560],{},"List API tokens",[135,562,563,567,571],{},[153,564,565],{},[104,566,172],{},[153,568,569],{},[104,570,557],{},[153,572,573],{},"Create an API token",[135,575,576,580,585],{},[153,577,578],{},[104,579,228],{},[153,581,582],{},[104,583,584],{},"\u002Fapi\u002Ftokens\u002F:id",[153,586,587],{},"Revoke an API token",[135,589,590,594,599],{},[153,591,592],{},[104,593,157],{},[153,595,596],{},[104,597,598],{},"\u002Fapi\u002Foauth\u002Fclients",[153,600,601],{},"List approved OAuth grants (browser session only)",[135,603,604,608,613],{},[153,605,606],{},[104,607,228],{},[153,609,610],{},[104,611,612],{},"\u002Fapi\u002Foauth\u002Fclients\u002F:id",[153,614,615],{},"Disconnect a grant (browser session only)",[124,617,619],{"id":618},"health","Health",[93,621,622,625],{},[104,623,624],{},"GET \u002Fapi\u002Fhealth"," returns the server's status. It does not check the database\nor file storage.",[627,628,629],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":102,"searchDepth":25,"depth":25,"links":631},[632,633,634,635,636,637],{"id":126,"depth":20,"text":127},{"id":299,"depth":20,"text":300},{"id":385,"depth":20,"text":386},{"id":485,"depth":20,"text":486},{"id":531,"depth":20,"text":532},{"id":618,"depth":20,"text":619},"HTTP endpoints for rangka, folders, versions, sharing, and tokens.","md",{},{"title":75,"description":638},"GUYzvKkvZ2mM2MIG3d6MYUjwspf94XlBYSnqnMOr5G4",1795580564390]