GitBook Organizations API

Create and configure organizations to group users, spaces, and collections.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 20

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 /orgs List organizations I belong to · Get the list of organizations for the currently authenticated user #
Ask an LLM
“Which GitBook organizations does my account belong to?”
“Can I see all the organizations I'm a member of?”
Tell an agent
List the organizations I'm a member of.
Show my organizations, {limit} per page.
POST /orgs Create a new organization · Create an organization #
Ask an LLM
“How do I create a new organization for our company in GitBook?”
“Can I create an organization along with a default documentation site?”
Tell an agent
Create a new organization called {title}.
Create a new organization {title} restricted to the email domains {emailDomains}.
GET /orgs/{organizationId} Get an organization · Get an organization by its ID #
Ask an LLM
“What are the details of one organization?”
“Can I look up an organization by its ID?”
Tell an agent
Get organization {organizationId}.
Show the details of organization {organizationId}.
PATCH /orgs/{organizationId} Update an organization · Update an organization #
Ask an LLM
“How do I change an organization's name or default role?”
“Can I set a custom hostname for an organization?”
Tell an agent
Rename organization {organizationId} to {title}.
Set the default role in organization {organizationId} to {defaultRole}.
GET /orgs/{organizationId}/audit-event-actions List audit event actions for an org · List organization audit event actions #
Ask an LLM
“Which audit event actions are supported for my organization?”
“What audit action identifiers can I filter organization audit events by?”
Tell an agent
List the audit event actions for organization {organizationId}.
Show the supported audit event action identifiers for org {organizationId}.
GET /orgs/{organizationId}/audit-events List an organization's audit events · List organization audit events #
Ask an LLM
“Who changed what in my organization recently?”
“Can I filter organization audit events by action or actor?”
Tell an agent
List audit events for organization {organizationId}.
Show audit events in org {organizationId} for actor {actor}.
GET /orgs/{organizationId}/audit-events/{auditEventId} Get one organization audit event · Get an organization audit event #
Ask an LLM
“What exactly happened in a specific organization audit event?”
“Can I read the full payload of one audit event?”
Tell an agent
Get audit event {auditEventId} in organization {organizationId}.
Show the full payload of audit event {auditEventId} for org {organizationId}.
GET /orgs/{organizationId}/styleguides List style guides in an organization · List all style guides in an organization #
Ask an LLM
“Which style guides exist in my organization?”
“What sites reference each style guide?”
Tell an agent
List the style guides in organization {organizationId}.
Show every style guide in org {organizationId} and the sites that reference each.
GET /orgs/{organizationId}/styleguide-templates List built-in style guide templates · List all built-in style guide templates #
Ask an LLM
“What starter templates can I use to create a style guide?”
“Which built-in style guide templates are available?”
Tell an agent
List the built-in style guide templates for organization {organizationId}.
Show the starter templates I can seed a new style guide with in org {organizationId}.
GET /orgs/{organizationId}/subscription Get an organization's subscription plan · Get an organization's subscription #
Ask an LLM
“Is my organization on a trial, free or paid plan?”
“When does my organization's trial end, and where do I upgrade?”
Tell an agent
Get the subscription for organization {organizationId}.
Show whether org {organizationId} is on a trial, free or paid plan.
DELETE /orgs/{organizationId}/link-invites/{inviteId} Revoke an organization invite · Deletes an organization invite #
Ask an LLM
“How do I revoke an invite to my organization?”
“Can I cancel an organization invite before it's accepted?”
Tell an agent destructive · confirm first
Revoke invite {inviteId} in organization {organizationId}.
Cancel the organization invite {inviteId} for org {organizationId}.
POST /orgs/{organizationId}/join Join an organization by email domain · Join an organization #
Ask an LLM
“How do I join an organization if my email domain matches?”
“Can I join an organization I'm eligible for based on my email domain?”
Tell an agent
Join organization {organizationId}.
Accept the invite and join org {organizationId} using my email domain.
GET /orgs/{organizationId}/search Search content across an organization · Search content in an organization #
Ask an LLM
“How do I search documentation across an entire organization?”
“Can I search an organization's content by keyword?”
Tell an agent
Search organization {organizationId} for {query}.
Find {query} across all sites in org {organizationId}.
GET /orgs/{organizationId}/agent-instructions Get an organization's Docs agent instructions · Get Docs agent instructions for an organization #
Ask an LLM
“What instructions does the Docs agent follow in my organization?”
“Can I read the organization agent's instructions?”
Tell an agent
Get the Docs agent instructions for organization {organizationId}.
Show the organization agent's instructions in org {organizationId}.
PUT /orgs/{organizationId}/agent-instructions Update an organization's Docs agent instructions · Update Docs agent instructions for an organization #
Ask an LLM
“How do I change what the Docs agent does in my organization?”
“Can I set new instructions for the organization agent?”
Tell an agent
Set the Docs agent instructions in organization {organizationId} to {instructions}.
Update the organization agent's instructions for org {organizationId} to {instructions}.
GET /orgs/{organizationId}/agent/conversations List AI agent conversations in an organization · List AI agent conversations in an organization #
Ask an LLM
“Which AI agent conversations have I had in my organization?”
“Can I see all my organization agent conversations?”
Tell an agent
List my AI agent conversations in organization {organizationId}.
Show the organization agent conversations I've started in org {organizationId}.
PUT /orgs/{organizationId}/agent/conversations/{conversationId} Provision an organization agent conversation · Provision an AI agent conversation in an organization #
Ask an LLM
“How do I prepare a conversation with the organization agent?”
“Why does the agent fail when I connect to a conversation that wasn't provisioned?”
Tell an agent
Provision agent conversation {conversationId} in organization {organizationId}.
Prepare the organization agent for conversation {conversationId} in org {organizationId}.
PATCH /orgs/{organizationId}/agent/conversations/{conversationId} Rename an organization agent conversation · Update an AI agent conversation in an organization #
Ask an LLM
“How do I rename an organization agent conversation?”
“Can I give a title to an organization agent conversation?”
Tell an agent
Rename agent conversation {conversationId} in organization {organizationId} to {title}.
Give organization agent conversation {conversationId} in org {organizationId} the title {title}.
DELETE /orgs/{organizationId}/agent/conversations/{conversationId} Delete an organization agent conversation · Delete an agent conversation in an organization #
Ask an LLM
“How do I delete one of my organization agent conversations?”
“Can I remove an organization agent conversation permanently?”
Tell an agent destructive · confirm first
Delete agent conversation {conversationId} in organization {organizationId}.
Remove my organization agent conversation {conversationId} from org {organizationId}.
GET /email-domains/{emailDomain}/orgs Find organizations by email domain · Get all organizations by email domain #
Ask an LLM
“Which organizations accept a given email domain?”
“Can I look up organizations by email domain?”
Tell an agent
Find organizations that accept the email domain {emailDomain}.
List organizations for email domain {emailDomain}.

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