How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitBook Critical API

The critical API from GitBook — 12 operation(s) for critical.

GitBook Critical API is one of 65 APIs that GitBook publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 7 JSON Schema definitions.

Tagged areas include critical. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, and 7 JSON Schemas.

This API exposes 13 operations across 12 paths, and defines 211 schemas. It is described by OpenAPI 3.2.0, at version 0.0.1-beta.

Requests are made against a single base URL, {host}/v1.

13 operations 12 paths 211 schemas 12 GET1 PATCH

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.0.1-beta
Server
{host}/v1
Authentication
HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 6

GitBook Critical API declares 6 security schemes for authenticating requests. It accepts HTTP bearer tokens (user). It accepts HTTP bearer tokens (user-internal). It accepts HTTP bearer tokens (user-staff). It accepts HTTP bearer tokens (integration). It accepts HTTP bearer tokens (integration-installation). It supports OAuth 2.0 (oauth) using the authorizationCode flow, exposing 29 scopes. By default, every request must be authenticated.

Paths & Operations 13

Across 12 paths, the API surfaces 13 operations — 12 GET, 1 PATCH. Each is listed below with its method, path, parameters, and response codes.

critical 13
GET
/user
Get profile of authenticated user
getAuthenticatedUser → 200404
GET
/users/{userId}
Get a user by its ID
getUserById 1 param → 200404
PATCH
/users/{userId}
Update a user by its ID
updateUserById 1 param body → 200404
GET
/spaces/{spaceId}
Get full details of a space by its ID
getSpaceById 2 params → 200
GET
/spaces/{spaceId}/comments
List all top-level comments posted on a space
listCommentsInSpace 8 params → 200
GET
/spaces/{spaceId}/commenters
List all users who have posted comments in a space
listCommentersInSpace 3 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/commenters
List all users who have commented in a change request
listCommentersInChangeRequest 4 params → 200
GET
/orgs
Get the list of organizations for the currently authenticated user
listOrganizationsForAuthenticatedUser 2 params → 200
GET
/orgs/{organizationId}
Get an organization by its ID
getOrganizationById 1 param → 200404
GET
/orgs/{organizationId}/members/{userId}
Get an organization member by its ID
getMemberInOrganizationById 2 params → 200
GET
/orgs/{organizationId}/integrations/installations-status
List all integration statuses
listOrganizationIntegrationsStatus 6 params → 200
GET
/orgs/{organizationId}/sites
List all documentation sites in an organization
listSites 7 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/site-spaces
List all spaces linked to a site as content sources
listSiteSpaces 6 params → 200

Schemas 211

The contract defines 211 schemas that model the data the API accepts and returns. The most detailed are Space (28 properties), Organization (27 properties), Site (23 properties), OrganizationBilling (22 properties). Each schema is shown below with its type and property counts.

BlockReason
string
A short description giving context on the reason for the block.
IntegrationInstallationStatus
string
Expression
string
Expression to evaluate
DocumentBlockDivider
object
5 properties 4 required
BillingCreditsBundle
string
The AI credit bundle to top up every month
DocumentBlockIf
object
6 properties 4 required
BillingProduct
string
Name of the product
MarkdownDocument
object
1 property 1 required
ContentRefPage
object
3 properties 2 required
DocumentBlockDrawing
object
6 properties 4 required
MergeRulesConfigurationRules
object
The merge rules are composed of individual rules that must all pass.
2 properties 2 required
CustomizationThemedURL
object
2 properties 2 required
CardsImageObjectFit
string
Object fit for image display in card views
OrganizationSupportCost
What support costs the organization, per ticket or per hour of agent time, used to estimate how much AI answers save in site insights.
DocumentBlocksEssentials
DocumentTableDefinitionCheckbox
DocumentInlineExpression
object
5 properties 4 required
BillingInterval
string
Interval for a billing subscription
IntegrationExternalLinks
array
External urls configured by the developer of the integration
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
VisitorAuth
ContentRef
A relative reference to content in GitBook.
OrganizationPricePair
object
Pricing pair for monthly and yearly intervals
2 properties 2 required
DocumentText
object
3 properties 2 required
GitSyncInstallationStatus
string
SiteTitle
string
Title of the site
IntegrationConfigurations
object
3 properties
DocumentMarkBold
object
2 properties 2 required
DocumentBlockHint
object
6 properties 4 required
ContentRefURL
object
2 properties 2 required
DocumentInlineIcon
object
5 properties 4 required
DocumentTableDefinitionSelect
EmojiReaction
object
An emoji reaction by one or many users
3 properties 3 required
InstalledIntegrationTarget
The resource on which an integration is installed.
DocumentBlockFile
object
6 properties 4 required
Site
object
23 properties 13 required
OrganizationCommunityType
string
GitSyncOperationErrorAction
object
An action the user can take to resolve a failed Git Sync operation.
2 properties 2 required
MergeRulesSpaceConfiguration
SiteAds
DocumentBlockIntegration
object
6 properties 4 required
URL
string
DocumentBlock
IntegrationCategory
string
DocumentInlineAnnotation
object
7 properties 5 required
VisitorAuthIntegrationBackend
object
1 property 1 required
IntegrationSummary
string
Long form markdown summary of the integration
DocumentBlocksTopLevels
DocumentBlockEmbed
object
6 properties 4 required
BillingTrialStatus
string
- notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended…
DocumentBlockReusableContent
object
6 properties 4 required
DocumentTableDefinitionFiles
DefaultLevel
Default level for a piece of content
DocumentMarkSubscript
object
2 properties 2 required
MergeRulesConfigurationInherit
object
The merge rules inherits from the organization configuration.
1 property 1 required
ContentRefTag
object
3 properties 2 required
OrganizationType
string
PreviousGitSyncState
object
What is still known about a target's Git Sync after its installation was removed. Never returned alongside gitSync, which describes a live installation.
1 property 1 required
OpenAPIWebhookPointer
object
Pointer to a webhook in the OpenAPI spec.
2 properties 2 required
DocumentBlockOpenAPI
object
6 properties 4 required
InstalledIntegration
object
An integration installation, its current status, and the resource it targets.
3 properties 3 required
ContentRefCollection
object
2 properties 2 required
DocumentTableDefinitionContentRef
IntegrationConfigurationSchema
object
Schema for a configuration
2 properties 1 required
DocumentBlockQuote
object
6 properties 3 required
Space
object
28 properties 17 required
IntegrationScope
string
IntegrationTitle
string
Title of the integration
SiteAdsTopic
string
Topic of the content
SitePointer
object
2 properties 2 required
IntegrationBlockMarkdown
OrganizationMember
object
11 properties 10 required
GitSyncProvider
string
The provider of the Git Sync installation.
IntegrationTarget
string
The target on which the integration can operate and needs to be configured for
IntegrationBlock
object
6 properties 2 required
DocumentBlockTable
object
6 properties 5 required
IntegrationVisibility
string
DocumentAction
object
Action to perform when an inline button is clicked.
DocumentBlockTabs
object
6 properties 3 required
DocumentBlockParagraph
object
6 properties 3 required
ContentImportSource
DocumentInlineEmoji
object
5 properties 4 required
DocumentMarkKeyboard
object
2 properties 2 required
IntegrationBlocks
array
Custom blocks defined by this integration.
DocumentTableSelectOption
object
3 properties 3 required
IntegrationConfiguration
GitSyncState
object
11 properties 3 required
DocumentTableCellSpan
integer
Number of rows or columns covered by a table cell merge
SiteSpace
object
14 properties 7 required
GitSyncOperationState
string
running: The operation is still running failure: The operation failed success: The operation was successful timeout: The operation timed out
OrganizationHostname
string
Default hostname for the organization's public content, e.g. .gitbook.io
ContentImportTarget
object
3 properties 1 required
DocumentTableCellMerge
object
Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document mod…
3 properties 3 required
IntegrationConfigurationComponent
object
ContentKit component for configuration
1 property 1 required
IntegrationCategories
array
Categories for which the integration is listed in the marketplace
SiteCustomizationFeature
string
A list of all premium customizations.
DocumentBlockListUnordered
object
6 properties 3 required
UserContributor
object
Contributor towards content.
3 properties 3 required
DocumentBlockHeading
object
7 properties 4 required
OpenAPIOperationPointer
object
Pointer to an operation in the OpenAPI spec.
2 properties 2 required
DocumentInlineMath
object
5 properties 4 required
MemberRoleOrGuest
The role of a member in an organization, null for guests
SiteFeatureKey
string
The site feature identifier
IntegrationContentSource
object
Definition of a content source provided by the integration.
5 properties 3 required
DocumentBlockOpenAPISchemas
object
6 properties 4 required
AICreditThreshold
An AI credit threshold from 5% to 50%, or null when disabled.
PlainObject
DocumentTableDefinitionRating
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
DocumentBlockPrompt
object
6 properties 4 required
EmojiReactions
array
DocumentBlockExpandable
object
7 properties 5 required
MergeRule
OrganizationEmailDomains
array
Icon
string
Name of the icon
IntegrationDescription
string
Description of the integration
OrganizationBilling
object
22 properties 13 required
DocumentTableDefinition
ContentRefUser
object
2 properties 2 required
MemberRole
string
"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review…
DocumentBlockOpenAPIWebhook
object
6 properties 4 required
SiteProxy
object
2 properties 2 required
Organization
object
27 properties 12 required
DocumentInlineMention
object
5 properties 4 required
IntegrationPropertyTitle
string
Property title for an integration configuration property
VisitorAuthCustomBackend
object
1 property 1 required
Integration
object
20 properties 14 required
IntegrationScopes
array
Permissions that should be granted to the integration
DocumentMarkSuperscript
object
2 properties 2 required
DocumentBlockUpdates
object
6 properties 4 required
ContentKitDefaultAction
OrganizationPricing
object
Pricing information for an organization
2 properties 2 required
DocumentBlockCode
object
6 properties 4 required
DocumentInlineImage
object
5 properties 4 required
DocumentTableDefinitionNumber
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
DocumentInlineButton
object
5 properties 4 required
DocumentTableDefinitionText
DocumentBlockCodeLine
object
6 properties 4 required
OrganizationAISettings
object
AI preferences. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.
13 properties
ContentKitAction
OrganizationTitle
string
Name of the organization
SiteFeature
object
A site feature and the plan it is available on.
4 properties 3 required
ContentVisibility
string
public: Anyone can access the content, and the content is indexed by search engines. unlisted: Anyone can access the content, and the content is not indexed by…
JSONDocument
object
4 properties 3 required
DocumentBlockUpdate
object
6 properties 4 required
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
ContentRefFile
object
3 properties 2 required
BlockSource
string
Source for an organization block
SiteBasename
string
Basename for the site. For e.g. api
List
object
2 properties
OrganizationDefaultContent
The default content for the organization
SiteHostname
string
Custom hostname for the site, for e.g. docs.mycompany.com
DocumentBlockColumns
object
6 properties 5 required
DocumentBlockListTasks
object
6 properties 3 required
DocumentMarkCode
object
2 properties 2 required
OpenAPISchemasPointer
object
Pointer to schemas in the OpenAPI spec.
3 properties 1 required
TranslationLanguage
string
DocumentTableImageRecord
A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
VerticalAlignment
string
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
GitSyncOperationDirection
string
TableCellTarget
object
Details about the table cell this comment is attached to, if any.
2 properties 2 required
DocumentTableViewCards
object
8 properties 3 required
ContentRefOpenAPI
object
2 properties 2 required
CustomizationFavicon
OrganizationUseCase
string
SiteVisibility
string
The visibility setting of the site determines the audience of the site. public: Anyone can access the site, and the site is indexed by search engines. unlisted…
ContentRefSpace
object
2 properties 2 required
SiteSpacePath
string
Path to the space on the site
SiteProxyOrigin
string
Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
ContentRefReusableContent
object
3 properties 2 required
DocumentTableDefinitionBase
object
2 properties 2 required
Comment
DocumentBlockTabsItem
object
7 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
ContentImportRun
object
14 properties 2 required
SiteAdaptiveContent
object
1 property 1 required
DocumentTextMark
DocumentTableViewGrid
object
7 properties 3 required
MergeRulesStandaloneConfiguration
Document
DocumentMarkColor
object
3 properties 3 required
DocumentTableRecord
object
2 properties 2 required
DocumentBlockOpenAPIOperation
object
6 properties 4 required
EntityId
string
A unique entity identifier
Emoji
string
Unicode codepoint or character of the emoji
DocumentInline
DocumentBlockMath
object
5 properties 4 required
DocumentMarkItalic
object
2 properties 2 required
DocumentBlockContentRef
object
5 properties 4 required
DocumentBlockListItem
object
6 properties 3 required
DocumentTableDefinitionImage
Length
User
object
6 properties 4 required
SiteType
string
The type of the site
DocumentTextColor
string
Allowed color tokens for color marks (text and background; background reuses this enum). Named colors are fixed palette keys. $ tokens are semantic: resolved f…
DocumentBlockListOrdered
object
6 properties 4 required
SpaceTitle
string
Title of the space
LocalizedString128
object
Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.
MergeRulesConfigurationNone
object
The merge rules are disabled, change requests can be merged without review.
1 property 1 required
SpaceEditMode
string
Determines how a Space can be edited. live: Users can directly edit the space locked: All edits are locked for this space.
IntegrationContentSecurityPolicy
Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as headers when processing the script fetch event and the bloc…
DocumentInlineLink
object
6 properties 4 required
BillingMeterAddon
object
1 property 1 required
DocumentFragment
object
5 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-critical-api-openapi.yml Raw ↑

Other APIs GitBook publishes across the network.

GitBook Change Request Content API
GitBook Change Request Reviewers API
GitBook Change Requests API
GitBook Collections API
GitBook Custom Hostnames API
GitBook Imports API
GitBook Integrations API
GitBook Organization Members API
GitBook Organizations API
GitBook Site Spaces API
GitBook Space Content API
GitBook Spaces API
Where this information came from

This is an independent, third-party profile of GitBook Critical API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.