# GitBook API

- [Quickstart](https://gitbook.com/docs/developers/gitbook-api/quickstart.md): Learn how to use the GitBook API within minutes
- [API reference](https://gitbook.com/docs/developers/gitbook-api/api-reference.md): Explore the endpoints available from GitBook’s API
- [Organizations](https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations.md): Manage your organizations and group your members, spaces, and resources under one collaborative structure.
- [Organization members](https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations/organization-members.md): Handle all aspects of membership within an organization, from listing to role management.
- [Organization invites](https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations/organization-invites.md): Streamline the invitation process for new members joining your organization.
- [Organization AI ask](https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations/organization-ai-ask.md): Unlock AI-driven answers for your organization's content and data.
- [Docs sites](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites.md): Manage your published docs sites.
- [Site share links](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-share-links.md): Control how you share docs externally by managing share links for a site.
- [Site structure](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-structure.md): Retrieve and manipulate the entire hierarchical layout of a site.
- [Site auth](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-auth.md): Manage the authentication needed for publishing your site.
- [Site preview](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-preview.md): Fetch an up-to-date preview of your site before publishing.
- [Site customization](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-customization.md): Customize the look and feel of your docs site.
- [Site agent settings](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-agent-settings.md): Configure site-specific issue remediation behavior and agent instructions.
- [Site spaces](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-spaces.md): Control which spaces are linked and displayed in a docs site.
- [Site sections](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-sections.md): Create and organize high-level sections for your docs site.
- [Site section groups](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-section-groups.md): Group and manage sections of your docs for easier organization.
- [Site redirects](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-redirects.md): Establish redirects for pages that have moved or changed in your docs site.
- [Site MCP servers](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-mcp-servers.md): Configure external MCP servers used by your site.
- [Site channels](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-channels.md): Configure site channels for your docs site.
- [Site ads](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-ads.md): Control and customize ad placements on your docs site.
- [Site permissions](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-permissions.md): Manage which members and teams can access or contribute to a docs site.
- [Site insights](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-insights.md): Analyze traffic and engagement metrics for your docs site.
- [Site AI](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-ai.md): Build conversational AI agents for your docs site.
- [Site AI ask](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-ai-ask.md): Allow AI-driven queries within a specific docs site.
- [Site context](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-context.md): Manage context records, connections, and topics for a docs site.
- [Site questions](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-questions.md): Review questions, answers, and sources generated for a docs site.
- [Collections](https://gitbook.com/docs/developers/gitbook-api/api-reference/collections.md): Organize and manage grouped sets of spaces for better content structure.
- [Collection permissions](https://gitbook.com/docs/developers/gitbook-api/api-reference/collections/collection-permissions.md): Manage which members and teams can access or contribute to a collection of spaces.
- [Spaces](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces.md): Create, maintain, and remove content spaces.
- [Space content](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/space-content.md): Import, export, and search content in a space.
- [Space comments](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/space-comments.md): Integrate and manage user comments in a space.
- [Space embeds](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/space-embeds.md): Render or resolve embedded content within a space.
- [Space permissions](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/space-permissions.md): Manage which members and teams roles and permissions on a per-space basis.
- [Space integrations](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/space-integrations.md): Connect external tools and plugins to enhance your space functionality.
- [Git](https://gitbook.com/docs/developers/gitbook-api/api-reference/spaces/git.md): Connect Git repositories to your space for seamless version control.
- [Change requests](https://gitbook.com/docs/developers/gitbook-api/api-reference/change-requests.md): Review and collaborate on proposed documentation changes before merging.
- [Change request content](https://gitbook.com/docs/developers/gitbook-api/api-reference/change-requests/change-request-content.md): Manage the actual content changes associated with a change request.
- [Change request contributors](https://gitbook.com/docs/developers/gitbook-api/api-reference/change-requests/change-request-contributors.md): See who's participating in the change request.
- [Change request reviewers](https://gitbook.com/docs/developers/gitbook-api/api-reference/change-requests/change-request-reviewers.md): Assign or list requested reviewers for a change request.
- [Change request comments](https://gitbook.com/docs/developers/gitbook-api/api-reference/change-requests/change-request-comments.md): Engage in threaded conversations on proposed changes.
- [Translations](https://gitbook.com/docs/developers/gitbook-api/api-reference/translations.md): Configure multi-language support and translation options for your documentation.
- [Glossary](https://gitbook.com/docs/developers/gitbook-api/api-reference/translations/glossary.md): Manage custom terms translations used by the translation feature.
- [Imports](https://gitbook.com/docs/developers/gitbook-api/api-reference/imports.md): Import content into GitBook.
- [Integrations](https://gitbook.com/docs/developers/gitbook-api/api-reference/integrations.md): Install and handle third-party integrations for extended GitBook functionality.
- [URLs](https://gitbook.com/docs/developers/gitbook-api/api-reference/urls.md): Configure where and how your GitBook content can be accessed.
- [OpenAPI](https://gitbook.com/docs/developers/gitbook-api/api-reference/openapi.md): Upload, access, or version-control your OpenAPI specifications directly in GitBook.
- [OpenAPI spec versions](https://gitbook.com/docs/developers/gitbook-api/api-reference/openapi/openapi-spec-versions.md): Track changes to your OpenAPI documents by versioning them.
- [Custom fonts](https://gitbook.com/docs/developers/gitbook-api/api-reference/custom-fonts.md): Bring your own fonts to personalize your documentation style.
- [Subdomains](https://gitbook.com/docs/developers/gitbook-api/api-reference/subdomains.md): Manage and configure organization-specific subdomains for your docs.
- [Users](https://gitbook.com/docs/developers/gitbook-api/api-reference/users.md): Retrieve and manage user information and profiles.
- [Teams](https://gitbook.com/docs/developers/gitbook-api/api-reference/teams.md): Create and manage teams as reusable groups of users.
- [Team members](https://gitbook.com/docs/developers/gitbook-api/api-reference/teams/team-members.md): Control membership at the team level for cohesive role management.
- [SSO](https://gitbook.com/docs/developers/gitbook-api/api-reference/sso.md): Configure Single Sign-On solutions to unify your organization's authentication.
- [Storage](https://gitbook.com/docs/developers/gitbook-api/api-reference/storage.md): Upload and store files directly within your GitBook organization.
- [Custom hostnames](https://gitbook.com/docs/developers/gitbook-api/api-reference/custom-hostnames.md): Serve your GitBook content from fully branded, custom hostnames.
- [System info](https://gitbook.com/docs/developers/gitbook-api/api-reference/system-info.md): Programmatically check GitBook API system status and version details.
- [GitBook API](https://gitbook.com/docs/developers/gitbook-api/api-reference/gitbook-api.md)
- [Authentication](https://gitbook.com/docs/developers/gitbook-api/authentication.md): Authenticate your requests with your user account when using the GitBook API
- [Rate limiting](https://gitbook.com/docs/developers/gitbook-api/rate-limiting.md): Learn about the rate limits the GitBook API enforces
- [Pagination](https://gitbook.com/docs/developers/gitbook-api/pagination.md): Learn how to view and navigate paginate paginated results from the GitBook API
- [Errors](https://gitbook.com/docs/developers/gitbook-api/errors.md): Learn about errors the GitBook API might return
- [Concepts](https://gitbook.com/docs/developers/gitbook-api/concepts.md): Learn about different GitBook concepts related to the GitBook API
- [Guides](https://gitbook.com/docs/developers/gitbook-api/guides.md): Read specific guides on using the GitBook API


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/developers/gitbook-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
