GitBook Change Requests API

Create, list, review, merge, and update change requests for collaborative editing.

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

POST /spaces/{spaceId}/change-requests Create a change request in a space · Create a new change request in a space #
Ask an LLM
“How do I create a draft change request for a space before editing its content?”
“Can I pre-populate a new change request with a template or link it to a site finding?”
Tell an agent
Create a change request in space {space}.
Create a change request in {space} titled {subject} using template {template}.
GET /spaces/{spaceId}/change-requests List change requests in a space · List all change requests for a space #
Ask an LLM
“Which change requests exist in a particular space?”
“Can I filter a space's change requests by status or by who created them?”
Tell an agent
List change requests in space {space}.
Show change requests in {space} with status {status}.
GET /spaces/{spaceId}/change-requests/{changeRequestId} Get a change request in a space · Get a change request by its ID #
Ask an LLM
“What is the status and subject of a specific change request?”
“Can I look up one change request by its ID?”
Tell an agent
Get change request {change_request} in space {space}.
Show the status of change request {change_request} in {space}.
PATCH /spaces/{spaceId}/change-requests/{changeRequestId} Update a change request's subject or status · Update a change request's subject, description, or status #
Ask an LLM
“Can I rename a change request or change its status without merging it?”
“How do I add a description to an existing change request?”
Tell an agent
Set the subject of change request {change_request} in {space} to {subject}.
Change the status of change request {change_request} in {space} to {status}.
POST /spaces/{spaceId}/change-requests/{changeRequestId}/merge Merge a change request into live content · Merge a change request into the space's live content #
Ask an LLM
“How do I make the changes in a change request live?”
“What happens if merging a change request results in conflicts?”
Tell an agent
Merge change request {change_request} into space {space}.
Apply the content of change request {change_request} to {space} and publish it.
POST /spaces/{spaceId}/change-requests/{changeRequestId}/update Sync a change request with live content · Sync a change request with the latest live space content #
Ask an LLM
“How do I pull the latest live content into an open change request?”
“Can I rebase a change request before merging it to reduce conflicts?”
Tell an agent
Sync change request {change_request} in {space} with the latest live content.
Rebase change request {change_request} on {space} onto the current primary revision.
GET /spaces/{spaceId}/change-requests/{changeRequestId}/pdf Download a change request as a PDF · Get a temporary URL to download a change request's content as PDF #
Ask an LLM
“Can I export a change request's draft content as a PDF?”
“Is there a time-limited link to share a change request as a PDF?”
Tell an agent
Get a PDF download link for change request {change_request} in {space}.
Export only page {page} of change request {change_request} in {space} as PDF.
GET /orgs/{organizationId}/change-requests List change requests organization-wide · List all change requests across an entire organization #
Ask an LLM
“Which change requests exist across my whole organization?”
“Can I find all change requests assigned to a specific reviewer across every space?”
Tell an agent
List change requests across organization {org}.
Show organization-wide change requests in {org} with status {status}.

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-change-requests-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-change-requests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitBook Change Requests 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 (116 KB total) ---
# Full source: https://artifacts.apis.io/gitbook/openapi/gitbook-change-requests-api-openapi.yml