GitBook Collections API

Organize and manage grouped sets of spaces.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /collections/{collectionId} Get a collection · Get a collection by its ID #
Ask an LLM
“How do I look up a collection by its ID?”
“What title and description does a collection have?”
Tell an agent
Get collection {collectionId}.
Show me the details of collection {collectionId}.
PATCH /collections/{collectionId} Update a collection · Update a collection #
Ask an LLM
“Can I change the title or description of a collection?”
“Is it possible to set a default content level for a collection?”
Tell an agent
Rename collection {collectionId} to {title}.
Set the default level of collection {collectionId} to {defaultLevel}.
DELETE /collections/{collectionId} Delete a collection · Delete a collection #
Ask an LLM
“How do I delete a collection?”
“Can I remove a collection I no longer use?”
Tell an agent destructive · confirm first
Delete collection {collectionId}.
Remove the collection {collectionId} from my organization.
GET /collections/{collectionId}/spaces List the spaces in a collection · List all collection spaces #
Ask an LLM
“Which spaces are in a particular collection?”
“Can I page through the spaces of one collection?”
Tell an agent
List the spaces in collection {collectionId}.
Show {limit} spaces per page for collection {collectionId}.
POST /collections/{collectionId}/move Reorder a collection · Move a collection to a new position #
Ask an LLM
“How do I move a collection to a different position?”
“Can I insert a collection under a parent collection?”
Tell an agent
Move collection {collectionId} to position {position}.
Insert collection {collectionId} under parent {parent}.
POST /collections/{collectionId}/transfer Transfer a collection to another organization · Transfer a collection #
Ask an LLM
“How do I hand over a collection to another organization?”
“Can I move a collection to a different organization?”
Tell an agent
Transfer collection {collectionId} to organization {organization}.
Hand collection {collectionId} over to {organization}.
GET /orgs/{organizationId}/collections List an organization's collections · List all collections #
Ask an LLM
“What collections exist in my organization?”
“Can I include nested collections when listing them?”
Tell an agent
List all collections in organization {organizationId}.
List collections in {organizationId} with nested set to {nested}.
POST /orgs/{organizationId}/collections Create a collection · Create a collection #
Ask an LLM
“How do I create a new collection in an organization?”
“Can a new collection be a child of an existing one?”
Tell an agent
Create a collection titled {title} in organization {organizationId}.
Create collection {title} under parent {parent} in {organizationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitbook:gitbook-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitbook-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitBook Collections API
  description: The GitBook API
  termsOfService: https://policies.gitbook.com
  contact:
    name: API Support
    url: https://gitbook.com/support
    email: support@gitbook.com
  version: 0.0.1-beta
servers:
- url: '{host}/v1'
  variables:
    host:
      default: https://api.gitbook.com
security:
- user: []
- user-internal: []
- user-staff: []
- integration: []
- integration-installation: []
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/gitbook/openapi/gitbook-collections-api-openapi.yml