Feed of "bookstack/api-scripts" https://codeberg.org/bookstack/api-scripts 2026-06-20T22:05:42+02:00 Examples of BookStack API scripts danb closed pull request bookstack/api-scripts#20 2026-04-25T00:37:17+02:00 128015282: https://codeberg.org/bookstack/api-scripts/pulls/20#issuecomment-13715189 Adding a Ruby example, exporting list of all pages for use in CSV/Excel Adding a Ruby example, exporting list of all pages for use in CSV/Excel danb [email protected] danb pushed to main at bookstack/api-scripts 2026-04-25T00:32:06+02:00 128013137: https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db <a href="https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db" rel="nofollow">b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db</a> Updated old GitHub links to Codeberg <a href="https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db">b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db</a> Updated old GitHub links to Codeberg danb [email protected] danb closed issue bookstack/api-scripts#25 2026-04-25T00:32:06+02:00 128013128: https://codeberg.org/bookstack/api-scripts/issues/25#issuecomment-13715054 Update GitHub references in script files Update GitHub references in script files danb [email protected] danb pushed to main at bookstack/api-scripts 2026-04-25T00:26:43+02:00 128012306: https://codeberg.org/bookstack/api-scripts/compare/fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c...db527a7cd9c129834257b07b02af1752f8d69f02 <a href="https://codeberg.org/bookstack/api-scripts/commit/db527a7cd9c129834257b07b02af1752f8d69f02" rel="nofollow">db527a7cd9c129834257b07b02af1752f8d69f02</a> Merge pull request &#39;README.md aktualisiert&#39; (#26) from Man-in-Black/bookstack-api-scripts:main into main <a href="https://codeberg.org/bookstack/api-scripts/commit/a9dc95b7456c2b82a13f5e0cd6c963a5adde7302" rel="nofollow">a9dc95b7456c2b82a13f5e0cd6c963a5adde7302</a> README.md aktualisiert <a href="https://codeberg.org/bookstack/api-scripts/commit/db527a7cd9c129834257b07b02af1752f8d69f02">db527a7cd9c129834257b07b02af1752f8d69f02</a> Merge pull request &#39;README.md aktualisiert&#39; (#26) from Man-in-Black/bookstack-api-scripts:main into main <a href="https://codeberg.org/bookstack/api-scripts/commit/a9dc95b7456c2b82a13f5e0cd6c963a5adde7302">a9dc95b7456c2b82a13f5e0cd6c963a5adde7302</a> README.md aktualisiert danb [email protected] danb merged pull request bookstack/api-scripts#26 2026-04-25T00:26:39+02:00 128012294: https://codeberg.org/bookstack/api-scripts/pulls/26 README.md aktualisiert README.md aktualisiert danb [email protected] danb commented on pull request bookstack/api-scripts#26 2026-04-25T00:26:34+02:00 128012264: https://codeberg.org/bookstack/api-scripts/pulls/26#issuecomment-13714967 README.md aktualisiert <p dir="auto">Great, thanks <a href="/Man-in-Black" class="mention" rel="nofollow">@Man-in-Black</a> !</p> README.md aktualisiert <p dir="auto">Great, thanks <a href="/Man-in-Black" class="mention" rel="nofollow">@Man-in-Black</a> !</p> danb [email protected] Man-in-Black created pull request bookstack/api-scripts#26 2026-04-23T23:36:05+02:00 127570730: https://codeberg.org/bookstack/api-scripts/pulls/26 <p dir="auto">added BookStack user management</p> 26#README.md aktualisiert# Man-in-Black [email protected] danb opened issue bookstack/api-scripts#25 2026-03-27T15:22:25+01:00 115549653: https://codeberg.org/bookstack/api-scripts/issues/25 <p dir="auto">In many readme files there are references to GitHub for accessing/downloading files.<br/> These need to be updated.</p> 25#Update GitHub references in script files# danb [email protected] danb pushed to main at bookstack/api-scripts 2026-03-27T15:21:27+01:00 115548816: https://codeberg.org/bookstack/api-scripts/compare/6b57b000dc3886b486962e7b63ed2be0d41b0b58...fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c <a href="https://codeberg.org/bookstack/api-scripts/commit/fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c" rel="nofollow">fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c</a> Merge branch &#39;main&#39; of codeberg.org:bookstack/api-scripts <a href="https://codeberg.org/bookstack/api-scripts/commit/9c9b10284d7f7baedd4b4d2dbd15d7ea550f50e5" rel="nofollow">9c9b10284d7f7baedd4b4d2dbd15d7ea550f50e5</a> Added php-users-to-csv example <a href="https://codeberg.org/bookstack/api-scripts/commit/fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c">fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c</a> Merge branch &#39;main&#39; of codeberg.org:bookstack/api-scripts <a href="https://codeberg.org/bookstack/api-scripts/commit/9c9b10284d7f7baedd4b4d2dbd15d7ea550f50e5">9c9b10284d7f7baedd4b4d2dbd15d7ea550f50e5</a> Added php-users-to-csv example danb [email protected] danb commented on pull request bookstack/api-scripts#24 2026-02-24T22:32:34+01:00 102882584: https://codeberg.org/bookstack/api-scripts/pulls/24#issuecomment-10968155 Added Home Assistant integration to the community projects list <p dir="auto">Thanks <a href="/MattFryer" class="mention" rel="nofollow">@MattFryer</a>!</p> Added Home Assistant integration to the community projects list <p dir="auto">Thanks <a href="/MattFryer" class="mention" rel="nofollow">@MattFryer</a>!</p> danb [email protected] danb pushed to main at bookstack/api-scripts 2026-02-24T22:30:15+01:00 102881786: https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58 <a href="https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58" rel="nofollow">6b57b000dc3886b486962e7b63ed2be0d41b0b58</a> Added Home Assistant integration to the community projects list <a href="https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58">6b57b000dc3886b486962e7b63ed2be0d41b0b58</a> Added Home Assistant integration to the community projects list danb [email protected] danb merged pull request bookstack/api-scripts#24 2026-02-24T22:30:15+01:00 102881783: https://codeberg.org/bookstack/api-scripts/pulls/24 Added Home Assistant integration to the community projects list Added Home Assistant integration to the community projects list danb [email protected] MattFryer created pull request bookstack/api-scripts#24 2026-02-23T14:32:49+01:00 102294242: https://codeberg.org/bookstack/api-scripts/pulls/24 <p dir="auto">As requested on <a href="https://www.reddit.com/r/homeassistant/comments/1ra78u5/comment/o6j6di2/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button" rel="nofollow">Reddit</a></p> 24#Added Home Assistant integration to the community projects list# MattFryer [email protected] danb pushed to main at bookstack/api-scripts 2025-10-24T14:33:44+02:00 67796504: https://codeberg.org/bookstack/api-scripts/compare/8c53c61b7b26ed026a3b2a8778680ec79a58048e...dd2ac3e266d10f6560d55617ff923f8ec0ae2380 <a href="https://codeberg.org/bookstack/api-scripts/commit/dd2ac3e266d10f6560d55617ff923f8ec0ae2380" rel="nofollow">dd2ac3e266d10f6560d55617ff923f8ec0ae2380</a> Merge pull request &#39;Add bookstack-sdk-php to community project&#39; (#23) from guiziweb/api-scripts:guiziweb-patch-1 into main <a href="https://codeberg.org/bookstack/api-scripts/commit/1b1c007b8ea59ae11c6782fe3ae978f6f0f050c4" rel="nofollow">1b1c007b8ea59ae11c6782fe3ae978f6f0f050c4</a> Actualiser README.md <a href="https://codeberg.org/bookstack/api-scripts/commit/dd2ac3e266d10f6560d55617ff923f8ec0ae2380">dd2ac3e266d10f6560d55617ff923f8ec0ae2380</a> Merge pull request &#39;Add bookstack-sdk-php to community project&#39; (#23) from guiziweb/api-scripts:guiziweb-patch-1 into main <a href="https://codeberg.org/bookstack/api-scripts/commit/1b1c007b8ea59ae11c6782fe3ae978f6f0f050c4">1b1c007b8ea59ae11c6782fe3ae978f6f0f050c4</a> Actualiser README.md danb [email protected] danb merged pull request bookstack/api-scripts#23 2025-10-24T14:33:44+02:00 67796495: https://codeberg.org/bookstack/api-scripts/pulls/23 Add bookstack-sdk-php to community project Add bookstack-sdk-php to community project danb [email protected] danb commented on pull request bookstack/api-scripts#23 2025-10-24T14:33:39+02:00 67796486: https://codeberg.org/bookstack/api-scripts/pulls/23#issuecomment-7882391 Add bookstack-sdk-php to community project <p dir="auto">Awesome, thanks <a href="/guiziweb" class="mention" rel="nofollow">@guiziweb</a>!</p> Add bookstack-sdk-php to community project <p dir="auto">Awesome, thanks <a href="/guiziweb" class="mention" rel="nofollow">@guiziweb</a>!</p> danb [email protected] guiziweb created pull request bookstack/api-scripts#23 2025-10-24T07:45:17+02:00 67715303: https://codeberg.org/bookstack/api-scripts/pulls/23 <p dir="auto">Add PHP SDK for the BookStack API.</p> 23#Add bookstack-sdk-php to community project# guiziweb [email protected] danb pushed to main at bookstack/api-scripts 2025-07-07T14:18:46+02:00 44856230: https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e <a href="https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e" rel="nofollow">8c53c61b7b26ed026a3b2a8778680ec79a58048e</a> Update README.md <a href="https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e">8c53c61b7b26ed026a3b2a8778680ec79a58048e</a> Update README.md danb [email protected] danb pushed to main at bookstack/api-scripts 2025-07-07T14:17:38+02:00 44855876: https://codeberg.org/bookstack/api-scripts/compare/97f2da1f5605b8c32d15ad4857764ed737730bfd...cc7ed78be528948c34d63e4accc41fd10203a757 <a href="https://codeberg.org/bookstack/api-scripts/commit/cc7ed78be528948c34d63e4accc41fd10203a757" rel="nofollow">cc7ed78be528948c34d63e4accc41fd10203a757</a> Merge pull request &#39;MCP server contrib&#39; (#22) from pnocera/api-scripts:main into main <a href="https://codeberg.org/bookstack/api-scripts/commit/cf305628428e4677711f73507414373335a643a0" rel="nofollow">cf305628428e4677711f73507414373335a643a0</a> MCP server contrib <a href="https://codeberg.org/bookstack/api-scripts/commit/cc7ed78be528948c34d63e4accc41fd10203a757">cc7ed78be528948c34d63e4accc41fd10203a757</a> Merge pull request &#39;MCP server contrib&#39; (#22) from pnocera/api-scripts:main into main <a href="https://codeberg.org/bookstack/api-scripts/commit/cf305628428e4677711f73507414373335a643a0">cf305628428e4677711f73507414373335a643a0</a> MCP server contrib danb [email protected] danb merged pull request bookstack/api-scripts#22 2025-07-07T14:17:37+02:00 44855867: https://codeberg.org/bookstack/api-scripts/pulls/22 MCP server contrib MCP server contrib danb [email protected] danb commented on pull request bookstack/api-scripts#22 2025-07-07T14:17:29+02:00 44855858: https://codeberg.org/bookstack/api-scripts/pulls/22#issuecomment-5744276 MCP server contrib <p dir="auto">Thanks <a href="/pnocera" class="mention" rel="nofollow">@pnocera</a>!</p> MCP server contrib <p dir="auto">Thanks <a href="/pnocera" class="mention" rel="nofollow">@pnocera</a>!</p> danb [email protected] pnocera created pull request bookstack/api-scripts#22 2025-07-04T18:11:37+02:00 44277593: https://codeberg.org/bookstack/api-scripts/pulls/22 22#WIP: MCP server contrib# 22#WIP: MCP server contrib# pnocera [email protected] danb pushed to main at bookstack/api-scripts 2025-03-23T20:58:23+01:00 25743546: https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd <a href="https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd" rel="nofollow">97f2da1f5605b8c32d15ad4857764ed737730bfd</a> Added bsfs to community project list <a href="https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd">97f2da1f5605b8c32d15ad4857764ed737730bfd</a> Added bsfs to community project list danb [email protected] danb closed issue bookstack/api-scripts#16 2024-10-27T23:39:18+01:00 19319714: https://codeberg.org/bookstack/api-scripts/issues/16#issuecomment-2404970 severely broken community api listing concerns severely broken community api listing concerns danb [email protected] danb closed issue bookstack/api-scripts#21 2024-10-27T23:38:33+01:00 19319693: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404968 self signed cert support / localhost self signed cert support / localhost danb [email protected] danb commented on issue bookstack/api-scripts#21 2024-10-27T23:38:32+01:00 19319691: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404967 self signed cert support / localhost <p dir="auto">Hi <a href="/vmario89" class="mention" rel="nofollow">@vmario89</a>,<br/> These scripts are supposed to be simple jumping off points to be taken &amp; modified as desired, I&#39;m not really looking to expand them to account for environment specific edge cases, or document full steps for all possible considerations, we already have a note in the readme to advise the access will be that of the API user.</p> self signed cert support / localhost <p dir="auto">Hi <a href="/vmario89" class="mention" rel="nofollow">@vmario89</a>,<br/> These scripts are supposed to be simple jumping off points to be taken &amp; modified as desired, I&#39;m not really looking to expand them to account for environment specific edge cases, or document full steps for all possible considerations, we already have a note in the readme to advise the access will be that of the API user.</p> danb [email protected] vmario89 commented on issue bookstack/api-scripts#21 2024-10-27T23:20:53+01:00 19319484: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404947 self signed cert support / localhost <p dir="auto">furthermore it might help to add some hints to readme to have a dedicated sitemap-generator user which only created stuff of public visibility:</p> <p dir="auto">_First, we create a dedicated user <code>sitemap-generator</code> + role <code>sitemap-generator</code>. This user only sees the pages that are public and should also be included in the sitemap. The user receives a secure password and active 2FA protection. We also activate the <code>sitemap-generator-api-token</code> API token for the user via the admin account. We also set the following read permissions for the user, including the <code>System access API </code>authorization.</p> self signed cert support / localhost <p dir="auto">furthermore it might help to add some hints to readme to have a dedicated sitemap-generator user which only created stuff of public visibility:</p> <p dir="auto">_First, we create a dedicated user <code>sitemap-generator</code> + role <code>sitemap-generator</code>. This user only sees the pages that are public and should also be included in the sitemap. The user receives a secure password and active 2FA protection. We also activate the <code>sitemap-generator-api-token</code> API token for the user via the admin account. We also set the following read permissions for the user, including the <code>System access API </code>authorization.</p> vmario89 [email protected] vmario89 opened issue bookstack/api-scripts#21 2024-10-27T23:18:29+01:00 19319424: https://codeberg.org/bookstack/api-scripts/issues/21 <p dir="auto">Hi,<br/> for an unsecure deployment a.t.m i had to reconcile the following part of <strong>bookstack-sitemap-generator</strong> to avoid throwing exception of the script:</p> <pre class="code-block"><code class="chroma language-text display"> $opts = [ &#39;http&#39; =&gt; [ &#39;header&#39; =&gt; &#34;Authorization: Token {$clientId}:{$clientSecret}&#34; ], &#39;ssl&#39; =&gt; [ &#39;verify_peer&#39; =&gt; false, &#39;allow_self_signed&#39;=&gt; true ] ]; </code></pre><p dir="auto">maybe its worth to add this as export BS_INSECURE or similar, to allow requests to untrusted certs</p> 21#self signed cert support / localhost# vmario89 [email protected]