# GitBook integration

> Documentation platform for spaces, sites, and AI-powered docs — manage content, pages, change requests, and Git Sync.

- Authentication: apiKey

## Tools (42)

- **Apply Template To Space**: Apply a content template to a space or to a change request inside it.
- **Ask AI In Organization**: Ask GitBook's AI a natural-language question scoped to an organization's content.
- **Ask AI In Site**: Ask a site's AI a natural-language question; streamed SSE response.
- **Create Change Request**: Create a new change request (draft) in a space.
- **Create Space**: Create a new space in an organization.
- **Delete Space**: Soft-delete a space (purged after 7 days).
- **Duplicate Space**: Create a new space copying content from an existing one.
- **Export To Git Repository**: Trigger a GitBook → Git export from a space.
- **Get Authenticated User**: Return profile details of the user identified by the personal access token.
- **Get Change Request**: Get a change request by ID or number.
- **Get Collection**: Get a collection by ID.
- **Get Current Revision**: Get the current revision of a space (full content tree).
- **Get File By ID**: Get a single file's metadata and download URL.
- **Get Organization**: Get a single organization by ID.
- **Get Page By ID**: Get a page's body and metadata by page ID.
- **Get Page By Path**: Get a page by its slug/path within a space.
- **Get Published Site Content**: Get the complete published profile of a site (structure, customization, scripts).
- **Get Site**: Get a single site's settings and metadata.
- **Get Space**: Get a space by its ID.
- **Get User By ID**: Return public profile of a GitBook user.
- **Import Git Repository**: Trigger a Git → GitBook import for a space.
- **List Change Request Comments**: List comments on a change request.
- **List Change Requests**: List change requests in a space, filtered by status/creator/reviewer/topic.
- **List Collection Spaces**: List all spaces inside a collection.
- **List Organization Collections**: List all collections (space groupings) in an organization.
- **List Organization Members**: List members of an organization.
- **List Organizations**: List all organizations the authenticated user belongs to.
- **List Organization Spaces**: List all spaces in an organization.
- **List Pages In Space**: List the page tree of a space's current revision.
- **List Sites**: List published sites in an organization.
- **List Space Files**: List uploaded files (images, attachments) in a space.
- **Merge Change Request**: Merge a change request into the live space revision.
- **Post Change Request Comment**: Post a comment on a change request.
- **Resolve Published URL**: Resolve a public docs URL to the site, space, and page it serves.
- **Resolve URL To Content**: Resolve a GitBook URL to the underlying space, collection, or page.
- **Search Organization Content**: Search across every space the user can see in an organization.
- **Search Site Content**: Search inside a site, optionally scoped to a subset of site spaces.
- **Search Space Content**: Full-text search inside a single space.
- **Submit Change Request Review**: Submit a review (approve / request changes / comment) on a change request.
- **Sync Change Request With Primary**: Pull live revision changes into a change request to resolve drift.
- **Update Change Request**: Update a change request's subject, description, links, or status.
- **Update Space**: Update space metadata.

## Related prompts

- [Catch stale GitBook pages every Monday and queue them in Linear](https://www.generalinput.com/prompts/catch-stale-gitbook-pages-every-monday-and-queue-them-in-linear.md)
- [Send a GitBook onboarding kit when a HubSpot deal closes won](https://www.generalinput.com/prompts/send-a-gitbook-onboarding-kit-when-a-hubspot-deal-closes-won.md)
- [Turn last week's Zendesk tickets into GitBook doc drafts](https://www.generalinput.com/prompts/turn-last-weeks-zendesk-tickets-into-gitbook-doc-drafts.md)
- [Weekly release notes from Linear to GitBook](https://www.generalinput.com/prompts/weekly-release-notes-from-linear-to-gitbook.md)
- [Open a docs follow-up when a PR merges with the needs-docs label](https://www.generalinput.com/prompts/open-a-docs-follow-up-when-a-pr-merges-with-the-needs-docs-label.md)

Connect GitBook in General Input: https://www.generalinput.com/apps/gitbook