BookStack
Books, chapters and pages of your BookStack wiki
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- BookStack URLRequiredHTTPS URL
- Token IDRequired
- Token SecretSecretRequired
Where to find them
- In BookStack click your name (top right) → “My Account” → “Access & Security”. If there is no “API Tokens” section, your role lacks the “Access system API” permission (by default only Admin has it): an administrator can tick it in “Settings” → “Roles” → your role → “System Permissions”.
- Under “API Tokens” click “Create Token”, type a “Name” (e.g. Maua.Culturewire), leave “Expiry Date” empty (the token then lasts 100 years) or pick a date, and click “Save”.
- Copy the “Token ID” and the “Token Secret”: the secret is shown only once.
- Paste them here, together with the address you open BookStack at. The token acts as your user: agents can read and change what you can. To revoke it, click “Edit” next to it under “API Tokens” and then “Delete Token”. The link below opens the API documentation of BookStack's demo: your own instance has it at <your address>/api/docs.
Tools (1)
BookStack API request
BOOKSTACK_SEND_REQUESTAuthenticated call to the BookStack API ({url}/api). Any endpoint of the API is allowed. Lists come as {"data": […], "total": n} with 100 items by default: page with count (at most 500) and offset, sort with sort=-updated_at and filter with filter[field]=value (filter[name:like]=%vpn% for part of a name). Examples: GET /books, GET /books/{id} (its chapters and pages in “contents”), GET /chapters?filter[book_id]={id}, GET /chapters/{id} (with its pages), GET /pages?filter[book_id]={id} (or filter[chapter_id]={id}), GET /pages/{id} (the content as html, and as markdown when it was written in the Markdown editor), GET /search?query=vpn (shelves, books, chapters and pages; BookStack's search syntax works, e.g.
Required scopes
No scopes required
Input
BookStack API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

