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 Organizations API

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

GitBook Organizations 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 Organization. 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 20 operations across 15 paths, and defines 200 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.

20 operations 15 paths 200 schemas 2 DELETE12 GET2 PATCH2 POST2 PUT

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 Organizations 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 20

Across 15 paths, the API surfaces 20 operations — 2 DELETE, 12 GET, 2 PATCH, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Organizations 20

The Organizations API provides a robust way to handle the administrative structure of your GitBook workspace. By creating and configuring organizations, you can group multiple use…

GET
/orgs
Get the list of organizations for the currently authenticated user
listOrganizationsForAuthenticatedUser 2 params → 200
POST
/orgs
Create an organization
createOrganization 2 params body → 201
GET
/orgs/{organizationId}
Get an organization by its ID
getOrganizationById 1 param → 200404
PATCH
/orgs/{organizationId}
Update an organization
updateOrganizationById 1 param body → 200400
GET
/orgs/{organizationId}/audit-event-actions
List organization audit event actions
listOrganizationAuditEventActions 1 param → 200401403404
GET
/orgs/{organizationId}/audit-events
List organization audit events
listOrganizationAuditEvents 8 params → 200400401403404
GET
/orgs/{organizationId}/audit-events/{auditEventId}
Get an organization audit event
getOrganizationAuditEvent 2 params → 200401403404
GET
/orgs/{organizationId}/styleguides
List all style guides in an organization
listOrganizationStyleguides 1 param → 200
GET
/orgs/{organizationId}/styleguide-templates
List all built-in style guide templates
listStyleguideTemplates 1 param → 200
GET
/orgs/{organizationId}/subscription
Get an organization's subscription
getOrganizationSubscription 1 param → 200404
DELETE
/orgs/{organizationId}/link-invites/{inviteId}
Deletes an organization invite
deleteOrganizationInviteById 2 params → 204205
POST
/orgs/{organizationId}/join
Join an organization
joinOrganization 1 param → 204400404
GET
/orgs/{organizationId}/search
Search content in an organization
searchOrganizationContent 4 params → 200
GET
/orgs/{organizationId}/agent-instructions
Get Docs agent instructions for an organization
getOrganizationAgentInstructions 1 param → 200
PUT
/orgs/{organizationId}/agent-instructions
Update Docs agent instructions for an organization
updateOrganizationAgentInstructions 1 param body → 200
GET
/orgs/{organizationId}/agent/conversations
List AI agent conversations in an organization
listOrganizationAgentConversations 3 params → 200
PUT
/orgs/{organizationId}/agent/conversations/{conversationId}
Provision an AI agent conversation in an organization
provisionOrganizationAgentConversation 2 params → 204
PATCH
/orgs/{organizationId}/agent/conversations/{conversationId}
Update an AI agent conversation in an organization
updateOrganizationAgentConversation 2 params body → 200
DELETE
/orgs/{organizationId}/agent/conversations/{conversationId}
Delete an agent conversation in an organization
deleteOrganizationAgentConversation 2 params → 205
GET
/email-domains/{emailDomain}/orgs
Get all organizations by email domain
getOrganizationsForEmailDomain 1 param → 200

Schemas 200

The contract defines 200 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.

SearchPageResult
object
Search result representing a page in a space.
10 properties 8 required
BlockReason
string
A short description giving context on the reason for the block.
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
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
DocumentBlocksEssentials
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.
DocumentTableDefinitionCheckbox
DocumentFragment
object
5 properties 2 required
DocumentInlineExpression
object
5 properties 4 required
BillingInterval
string
Interval for a billing subscription
SubscriptionTrial
object
The current or last trial of an organization.
3 properties 3 required
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
OptOutUpdate
Set false to disable, or null to remove the opt-out. Omit to leave unchanged.
ContentRef
A relative reference to content in GitBook.
VisitorAuth
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
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
DocumentBlockFile
object
6 properties 4 required
Site
object
23 properties 13 required
OrganizationCommunityType
string
SearchSpaceResult
object
Search result representing a space.
5 properties 5 required
DocumentBlockIntegration
object
6 properties 4 required
MergeRulesSpaceConfiguration
GitSyncOperationErrorAction
object
An action the user can take to resolve a failed Git Sync operation.
2 properties 2 required
SiteAds
URL
string
DocumentBlock
SiteOnboardingAudience
string
Who the user wants to be able to access their site.
DocumentInlineAnnotation
object
7 properties 5 required
VisitorAuthIntegrationBackend
object
1 property 1 required
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
ContentRefCollection
object
2 properties 2 required
DocumentTableDefinitionContentRef
StyleguideTemplates
object
1 property 1 required
DocumentBlockQuote
object
6 properties 3 required
Space
object
28 properties 17 required
SiteAdsTopic
string
Topic of the content
SitePointer
object
2 properties 2 required
GitSyncProvider
string
The provider of the Git Sync installation.
AuditEventTarget
object
3 properties 2 required
DocumentBlockTable
object
6 properties 5 required
DocumentAction
object
Action to perform when an inline button is clicked.
DocumentBlockTabs
object
6 properties 3 required
DocumentBlockParagraph
object
6 properties 3 required
DocumentInlineEmoji
object
5 properties 4 required
ContentImportSource
DocumentMarkKeyboard
object
2 properties 2 required
DocumentTableSelectOption
object
3 properties 3 required
GitSyncState
object
11 properties 3 required
DocumentTableCellSpan
integer
Number of rows or columns covered by a table cell merge
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
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
OrganizationSubscription
object
An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.
7 properties 5 required
ContentImportTarget
object
3 properties 1 required
DocumentBlockListUnordered
object
6 properties 3 required
SiteCustomizationFeature
string
A list of all premium customizations.
OrganizationStyleguide
object
A style guide space and all the sites referencing it.
2 properties 2 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
DocumentBlockOpenAPISchemas
object
6 properties 4 required
PlainObject
DocumentTableDefinitionRating
AICreditThreshold
An AI credit threshold from 5% to 50%, or null when disabled.
SiteOnboardingInterest
string
Something the user is interested in doing with the site.
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
AuditEventDetails
DocumentBlockPrompt
object
6 properties 4 required
AuditEvent
object
8 properties 8 required
SiteOnboardingPreferences
object
Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices.
3 properties 3 required
DocumentBlockExpandable
object
7 properties 5 required
MergeRule
OrganizationEmailDomains
array
Icon
string
Name of the icon
AgentConversation
object
7 properties 5 required
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
VisitorAuthCustomBackend
object
1 property 1 required
StyleguideTemplate
object
A built-in style guide starter template used to seed and preview a style guide.
5 properties 3 required
AuditEventActor
object
4 properties 2 required
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
OrganizationAISettingsUpdate
object
Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.
9 properties
OrganizationStyleguides
object
1 property 1 required
SearchResultScore
number
Relevance score for a search result. Higher is better and the score is unbounded.
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
JSONDocument
object
4 properties 3 required
DocumentBlockUpdate
object
6 properties 4 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…
SiteFeature
object
A site feature and the plan it is available on.
4 properties 3 required
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
ContentRefFile
object
3 properties 2 required
BlockSource
string
Source for an organization block
DocumentBlockListTasks
object
6 properties 3 required
OrganizationDefaultContent
The default content for the organization
List
object
2 properties
OpenAPISchemasPointer
object
Pointer to schemas in the OpenAPI spec.
3 properties 1 required
DocumentBlockColumns
object
6 properties 5 required
SiteHostname
string
Custom hostname for the site, for e.g. docs.mycompany.com
DocumentMarkCode
object
2 properties 2 required
SiteBasename
string
Basename for the site. For e.g. api
VerticalAlignment
string
DocumentTableImageRecord
A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
TranslationLanguage
string
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
GitSyncOperationDirection
string
DocumentTableViewCards
object
8 properties 3 required
ContentRefOpenAPI
object
2 properties 2 required
CustomizationFavicon
SearchSectionResult
object
Search result representing a section in a page.
7 properties 6 required
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
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
DocumentBlockTabsItem
object
7 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
AuditEventAction
object
3 properties 3 required
ContentImportRun
object
14 properties 2 required
SiteAdaptiveContent
object
1 property 1 required
DocumentTextMark
DocumentTableViewGrid
object
7 properties 3 required
MergeRulesStandaloneConfiguration
DocumentMarkColor
object
3 properties 3 required
SubscriptionNotice
object
A notice about the organization's subscription to relay to the user, such as how many days are left in their trial. It is returned by the operations whose feat…
8 properties 6 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
OrganizationAgentInstructions
object
5 properties 5 required
DocumentMarkItalic
object
2 properties 2 required
DocumentBlockContentRef
object
5 properties 4 required
DocumentBlockListItem
object
6 properties 3 required
DocumentTableDefinitionImage
Length
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
SiteOnboardingSource
string
Where the user's docs are coming from today.
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.
DocumentInlineLink
object
6 properties 4 required
CreateOrganization
object
3 properties 1 required
BillingMeterAddon
object
1 property 1 required
DocumentInlineButton
object
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-organizations-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 Site Spaces API
GitBook Space Content API
GitBook Spaces API
GitBook URLs API
Where this information came from

This is an independent, third-party profile of GitBook Organizations 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.