Feed of "bookstack/api-scripts" https://codeberg.org/bookstack/api-scripts Examples of BookStack API scripts Wed, 20 May 2026 13:56:38 +0200 danb closed pull request bookstack/api-scripts#20 https://codeberg.org/bookstack/api-scripts/pulls/20#issuecomment-13715189 Adding a Ruby example, exporting list of all pages for use in CSV/Excel <![CDATA[Adding a Ruby example, exporting list of all pages for use in CSV/Excel]]> danb 128015282: https://codeberg.org/bookstack/api-scripts/pulls/20#issuecomment-13715189 Sat, 25 Apr 2026 00:37:17 +0200 danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db <a href="https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db">b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db</a> Updated old GitHub links to Codeberg <![CDATA[b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db Updated old GitHub links to Codeberg]]> danb 128013137: https://codeberg.org/bookstack/api-scripts/commit/b2e6524245f7c230a1bbaa4fa8abe7a2f8ff82db Sat, 25 Apr 2026 00:32:06 +0200 danb closed issue bookstack/api-scripts#25 https://codeberg.org/bookstack/api-scripts/issues/25#issuecomment-13715054 Update GitHub references in script files <![CDATA[Update GitHub references in script files]]> danb 128013128: https://codeberg.org/bookstack/api-scripts/issues/25#issuecomment-13715054 Sat, 25 Apr 2026 00:32:06 +0200 danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/compare/fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c...db527a7cd9c129834257b07b02af1752f8d69f02 <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 <![CDATA[db527a7cd9c129834257b07b02af1752f8d69f02 Merge pull request 'README.md aktualisiert' (#26) from Man-in-Black/bookstack-api-scripts:main into main a9dc95b7456c2b82a13f5e0cd6c963a5adde7302 README.md aktualisiert]]> danb 128012306: https://codeberg.org/bookstack/api-scripts/compare/fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c...db527a7cd9c129834257b07b02af1752f8d69f02 Sat, 25 Apr 2026 00:26:43 +0200 danb merged pull request bookstack/api-scripts#26 https://codeberg.org/bookstack/api-scripts/pulls/26 README.md aktualisiert <![CDATA[README.md aktualisiert]]> danb 128012294: https://codeberg.org/bookstack/api-scripts/pulls/26 Sat, 25 Apr 2026 00:26:39 +0200 danb commented on pull request bookstack/api-scripts#26 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> <![CDATA[README.md aktualisiert

Great, thanks @Man-in-Black !

]]>
danb 128012264: https://codeberg.org/bookstack/api-scripts/pulls/26#issuecomment-13714967 Sat, 25 Apr 2026 00:26:34 +0200
Man-in-Black created pull request bookstack/api-scripts#26 https://codeberg.org/bookstack/api-scripts/pulls/26 26#README.md aktualisiert# <![CDATA[

added BookStack user management

]]>
Man-in-Black 127570730: https://codeberg.org/bookstack/api-scripts/pulls/26 Thu, 23 Apr 2026 23:36:05 +0200
danb opened issue bookstack/api-scripts#25 https://codeberg.org/bookstack/api-scripts/issues/25 25#Update GitHub references in script files# <![CDATA[

In many readme files there are references to GitHub for accessing/downloading files.
These need to be updated.

]]>
danb 115549653: https://codeberg.org/bookstack/api-scripts/issues/25 Fri, 27 Mar 2026 15:22:25 +0100
danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/compare/6b57b000dc3886b486962e7b63ed2be0d41b0b58...fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c <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 <![CDATA[fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c Merge branch 'main' of codeberg.org:bookstack/api-scripts 9c9b10284d7f7baedd4b4d2dbd15d7ea550f50e5 Added php-users-to-csv example]]> danb 115548816: https://codeberg.org/bookstack/api-scripts/compare/6b57b000dc3886b486962e7b63ed2be0d41b0b58...fd47b7293d33cd88ab5cd3496b9f3c7427f9d64c Fri, 27 Mar 2026 15:21:27 +0100 danb commented on pull request bookstack/api-scripts#24 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> <![CDATA[Added Home Assistant integration to the community projects list

Thanks @MattFryer!

]]>
danb 102882584: https://codeberg.org/bookstack/api-scripts/pulls/24#issuecomment-10968155 Tue, 24 Feb 2026 22:32:34 +0100
danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58 <a href="https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58">6b57b000dc3886b486962e7b63ed2be0d41b0b58</a> Added Home Assistant integration to the community projects list <![CDATA[6b57b000dc3886b486962e7b63ed2be0d41b0b58 Added Home Assistant integration to the community projects list]]> danb 102881786: https://codeberg.org/bookstack/api-scripts/commit/6b57b000dc3886b486962e7b63ed2be0d41b0b58 Tue, 24 Feb 2026 22:30:15 +0100 danb merged pull request bookstack/api-scripts#24 https://codeberg.org/bookstack/api-scripts/pulls/24 Added Home Assistant integration to the community projects list <![CDATA[Added Home Assistant integration to the community projects list]]> danb 102881783: https://codeberg.org/bookstack/api-scripts/pulls/24 Tue, 24 Feb 2026 22:30:15 +0100 MattFryer created pull request bookstack/api-scripts#24 https://codeberg.org/bookstack/api-scripts/pulls/24 24#Added Home Assistant integration to the community projects list# <![CDATA[

As requested on Reddit

]]>
MattFryer 102294242: https://codeberg.org/bookstack/api-scripts/pulls/24 Mon, 23 Feb 2026 14:32:49 +0100
danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/compare/8c53c61b7b26ed026a3b2a8778680ec79a58048e...dd2ac3e266d10f6560d55617ff923f8ec0ae2380 <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 <![CDATA[dd2ac3e266d10f6560d55617ff923f8ec0ae2380 Merge pull request 'Add bookstack-sdk-php to community project' (#23) from guiziweb/api-scripts:guiziweb-patch-1 into main 1b1c007b8ea59ae11c6782fe3ae978f6f0f050c4 Actualiser README.md]]> danb 67796504: https://codeberg.org/bookstack/api-scripts/compare/8c53c61b7b26ed026a3b2a8778680ec79a58048e...dd2ac3e266d10f6560d55617ff923f8ec0ae2380 Fri, 24 Oct 2025 14:33:44 +0200 danb merged pull request bookstack/api-scripts#23 https://codeberg.org/bookstack/api-scripts/pulls/23 Add bookstack-sdk-php to community project <![CDATA[Add bookstack-sdk-php to community project]]> danb 67796495: https://codeberg.org/bookstack/api-scripts/pulls/23 Fri, 24 Oct 2025 14:33:44 +0200 danb commented on pull request bookstack/api-scripts#23 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> <![CDATA[Add bookstack-sdk-php to community project

Awesome, thanks @guiziweb!

]]>
danb 67796486: https://codeberg.org/bookstack/api-scripts/pulls/23#issuecomment-7882391 Fri, 24 Oct 2025 14:33:39 +0200
guiziweb created pull request bookstack/api-scripts#23 https://codeberg.org/bookstack/api-scripts/pulls/23 23#Add bookstack-sdk-php to community project# <![CDATA[

Add PHP SDK for the BookStack API.

]]>
guiziweb 67715303: https://codeberg.org/bookstack/api-scripts/pulls/23 Fri, 24 Oct 2025 07:45:17 +0200
danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e <a href="https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e">8c53c61b7b26ed026a3b2a8778680ec79a58048e</a> Update README.md <![CDATA[8c53c61b7b26ed026a3b2a8778680ec79a58048e Update README.md]]> danb 44856230: https://codeberg.org/bookstack/api-scripts/commit/8c53c61b7b26ed026a3b2a8778680ec79a58048e Mon, 07 Jul 2025 14:18:46 +0200 danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/compare/97f2da1f5605b8c32d15ad4857764ed737730bfd...cc7ed78be528948c34d63e4accc41fd10203a757 <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 <![CDATA[cc7ed78be528948c34d63e4accc41fd10203a757 Merge pull request 'MCP server contrib' (#22) from pnocera/api-scripts:main into main cf305628428e4677711f73507414373335a643a0 MCP server contrib]]> danb 44855876: https://codeberg.org/bookstack/api-scripts/compare/97f2da1f5605b8c32d15ad4857764ed737730bfd...cc7ed78be528948c34d63e4accc41fd10203a757 Mon, 07 Jul 2025 14:17:38 +0200 danb merged pull request bookstack/api-scripts#22 https://codeberg.org/bookstack/api-scripts/pulls/22 MCP server contrib <![CDATA[MCP server contrib]]> danb 44855867: https://codeberg.org/bookstack/api-scripts/pulls/22 Mon, 07 Jul 2025 14:17:37 +0200 danb commented on pull request bookstack/api-scripts#22 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> <![CDATA[MCP server contrib

Thanks @pnocera!

]]>
danb 44855858: https://codeberg.org/bookstack/api-scripts/pulls/22#issuecomment-5744276 Mon, 07 Jul 2025 14:17:29 +0200
pnocera created pull request bookstack/api-scripts#22 https://codeberg.org/bookstack/api-scripts/pulls/22 22#WIP: MCP server contrib# <![CDATA[22#WIP: MCP server contrib#]]> pnocera 44277593: https://codeberg.org/bookstack/api-scripts/pulls/22 Fri, 04 Jul 2025 18:11:37 +0200 danb pushed to main at bookstack/api-scripts https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd <a href="https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd">97f2da1f5605b8c32d15ad4857764ed737730bfd</a> Added bsfs to community project list <![CDATA[97f2da1f5605b8c32d15ad4857764ed737730bfd Added bsfs to community project list]]> danb 25743546: https://codeberg.org/bookstack/api-scripts/commit/97f2da1f5605b8c32d15ad4857764ed737730bfd Sun, 23 Mar 2025 20:58:23 +0100 danb closed issue bookstack/api-scripts#16 https://codeberg.org/bookstack/api-scripts/issues/16#issuecomment-2404970 severely broken community api listing concerns <![CDATA[severely broken community api listing concerns]]> danb 19319714: https://codeberg.org/bookstack/api-scripts/issues/16#issuecomment-2404970 Sun, 27 Oct 2024 23:39:18 +0100 danb closed issue bookstack/api-scripts#21 https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404968 self signed cert support / localhost <![CDATA[self signed cert support / localhost]]> danb 19319693: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404968 Sun, 27 Oct 2024 23:38:33 +0100 danb commented on issue bookstack/api-scripts#21 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> <![CDATA[self signed cert support / localhost

Hi @vmario89,
These scripts are supposed to be simple jumping off points to be taken & modified as desired, I'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.

]]>
danb 19319691: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404967 Sun, 27 Oct 2024 23:38:32 +0100
vmario89 commented on issue bookstack/api-scripts#21 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> <![CDATA[self signed cert support / localhost

furthermore it might help to add some hints to readme to have a dedicated sitemap-generator user which only created stuff of public visibility:

_First, we create a dedicated user sitemap-generator + role sitemap-generator. 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 sitemap-generator-api-token API token for the user via the admin account. We also set the following read permissions for the user, including the System access API authorization.

]]>
vmario89 19319484: https://codeberg.org/bookstack/api-scripts/issues/21#issuecomment-2404947 Sun, 27 Oct 2024 23:20:53 +0100
vmario89 opened issue bookstack/api-scripts#21 https://codeberg.org/bookstack/api-scripts/issues/21 21#self signed cert support / localhost# <![CDATA[

Hi,
for an unsecure deployment a.t.m i had to reconcile the following part of bookstack-sitemap-generator to avoid throwing exception of the script:

    $opts = [
		'http' => [
			'header' => "Authorization: Token {$clientId}:{$clientSecret}"
		],
		'ssl' => [ 
			'verify_peer' => false, 
			'allow_self_signed'=> true ]
		];

maybe its worth to add this as export BS_INSECURE or similar, to allow requests to untrusted certs

]]>
vmario89 19319424: https://codeberg.org/bookstack/api-scripts/issues/21 Sun, 27 Oct 2024 23:18:29 +0100