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 Site Customization API

Update your site's branding, styling, and layout to match your organization's identity. This includes theming elements like color palette, logos, and more.{% openapi-schemas spec="gitbook" schemas="SiteCustomizationSettings" grouped="false" %} The SiteCustomizationSettings object{% endopenapi-schemas %}

GitBook Site Customization 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 site-customization. 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 5 operations across 2 paths, and defines 73 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.

5 operations 2 paths 73 schemas 1 DELETE2 GET1 PATCH1 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 Site Customization 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 5

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

site-customization 5

Update your site's branding, styling, and layout to match your organization's identity. This includes theming elements like color palette, logos, and more. {% openapi-schemas spec…

GET
/orgs/{organizationId}/sites/{siteId}/customization
Get the branding and visual customization settings for a site
getSiteCustomizationById 3 params → 200400
PUT
/orgs/{organizationId}/sites/{siteId}/customization
Update the branding and visual customization settings for a site
updateSiteCustomizationById 2 params body → 200400
GET
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
Get the customization overrides for a site space
getSiteSpaceCustomizationById 4 params → 200400
PATCH
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
Override branding and customization settings for a specific site space
overrideSiteSpaceCustomizationById 3 params body → 200400
DELETE
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
Delete a site space customization settings
deleteSiteSpaceCustomizationById 3 params → 204205400

Schemas 73

The contract defines 73 schemas that model the data the API accepts and returns. The most detailed are SiteCustomizationSettingsBase (20 properties), SubscriptionNotice (8 properties), CustomizationHeaderItem (6 properties), CustomizationAnnouncement (5 properties). Each schema is shown below with its type and property counts.

CustomizationAnnouncement
object
5 properties 3 required
CustomizationSidebarBackgroundStyle
string
- default: No background, content sits directly against sidebar edge. - filled: Muted background color that extends to sidebar edges.
Expression
string
Expression to evaluate
CustomizationThemedColor
object
2 properties 2 required
ContentRefPage
object
3 properties 2 required
CustomizationCorners
string
CustomizationThemedURL
object
2 properties 2 required
CustomizationLinksStyle
string
The style used for regular links in the main content, header and footer. Sidebar items are styled separately. - default: Links are colored in the primary color…
CustomizationFontDefinitionInput
object
Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules.
4 properties 4 required
CustomizationTheme
string
The theme to apply to the site. Supercedes the old header preset themes. - clean: Modern theme featuring translucency and minimally-styled elements. - muted: S…
SubscriptionTrial
object
The current or last trial of an organization.
3 properties 3 required
ContentRef
A relative reference to content in GitBook.
SiteTitle
string
Title of the site
LocalizedString
object
Localized string value, keyed by locale. Contains overrides for non-default languages only.
ContentRefURL
object
2 properties 2 required
CustomizationPageActionType
string
Type of a built-in page action that can be displayed in the page actions menu of a published page.
CustomizationIconsStyle
string
CustomizationCodeTheme
string
URL
string
CustomizationSuggestedQuestions
array
Suggested questions to display at the start of the chosen AI mode.
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…
CustomizationHeaderItem
object
6 properties 3 required
ContentRefTag
object
3 properties 2 required
ContentRefCollection
object
2 properties 2 required
CustomizationThemedCodeTheme
object
2 properties 2 required
SiteCustomizationSettingsInput
CustomizationHeaderPreset
string
The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
CustomizationAIMode
string
CustomizationSuggestedQuestion
string
CustomizationHeadingFont
Font used for headings. null means headings use the main font (styling.font).
CustomizationAnnouncementMessage
string
The text content of the announcement.
CustomizationBackground
string
The background style has been deprecated and will be removed in a future release. Use the tint settings instead.
CustomizationDefaultThemeMode
string
CustomizationLocale
string
Language for the UI element
CustomizationFont
FontFace
object
A single font-face declaration specifying the weight and source files for a particular variation of the font.
2 properties 2 required
FontWeight
integer
Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black).
SiteExternalLinksTarget
string
How external links should open when clicked. - self: External links open in the current tab. - blank: External links open in a new browser tab.
ContentRefUser
object
2 properties 2 required
SiteSocialAccountPlatform
string
The platform of the social handle.
CustomizationAIInstructions
string
Additional instructions for the AI Assistant, injected after the base system prompt. Use them to adjust tone of voice and contribute site-specific knowledge. T…
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
SiteCustomizationSettingsBase
object
20 properties 17 required
SiteSocialAccount
object
3 properties 3 required
ContentRefFile
object
3 properties 2 required
CustomizationContentLink
object
3 properties 2 required
Color
string
TranslationLanguage
string
CustomizationMonospaceFont
ContentRefOpenAPI
object
2 properties 2 required
CustomizationFavicon
FontSource
object
A font file referenced within a font-face declaration, specifying the file's location and format.
2 properties 1 required
LocalizedString64
object
Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.
ContentRefSpace
object
2 properties 2 required
SiteCustomizationSettings
ContentRefReusableContent
object
3 properties 2 required
CustomizationTint
object
1 property 1 required
CustomizationSidebarListStyle
string
- default: Simple list items without special styling, groups are inset with a line. - pill: Rounded capsule shape around selected/active items. - line: Continu…
CustomizationSearchStyle
string
The style of the search button. - prominent: large search bar in the middle of the header, with less room for other header items, - subtle: small search bar in…
CustomizationDepth
string
The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site. - subtle: Subtle shadows and minimal elevation. - flat:…
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
EntityId
string
A unique entity identifier
Emoji
string
Unicode codepoint or character of the emoji
CustomizationDefaultFont
string
CustomizationAIGreeting
string
Initial greeting displayed by the AI Assistant when a visitor starts a conversation.
CustomizationDefaultMonospaceFont
string
CustomizationFooterGroup
object
3 properties 2 required
SiteSocialAccounts
array
The social accounts of the site.
FontFamily
string
The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
LocalizedString128
object
Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.
SiteSocialAccountHandle
string
A handle on a social platform, without prefixes like the @ symbol.
CustomizationContentLinkTitle
string

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-site-customization-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 Site Customization 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.