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

Resolve and manage content URLs.

GitBook URLs 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 URLs. 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 4 operations across 3 paths, and defines 192 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.

4 operations 3 paths 192 schemas 3 GET1 POST

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 URLs 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 4

Across 3 paths, the API surfaces 4 operations — 3 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

URLs 4

Manage official endpoints, direct deep links, or short links for your content. This allows you to keep track of multiple custom URLs or vanity links under one system.

GET
/urls/content
Resolve a URL to a content (space, collection, page)
getContentByUrl 1 param → 200
GET
/urls/embed
Resolve a URL to an embed
getEmbedByUrl 1 param → 200
GET
/urls/publisheddeprecated
Resolve a URL of a published content
getPublishedContentByUrl 3 params → 200404
POST
/urls/published
Resolve a URL of a published content
resolvePublishedContentByUrl body → 200404

Schemas 192

The contract defines 192 schemas that model the data the API accepts and returns. The most detailed are Space (28 properties), ChangeRequest (26 properties), PublishedSiteContent (16 properties), ContentImportRun (14 properties). Each schema is shown below with its type and property counts.

RevisionPageLayoutOptionsCoverMask
string
Mask applied to the cover image.
ChangeRequestChangeCounts
object
Exact semantic entity and page-document block counts for a change request at its current head and base revisions.
4 properties 2 required
Expression
string
Expression to evaluate
DocumentBlockDivider
object
5 properties 4 required
ComputedContentSourceRevision
DocumentBlockIf
object
6 properties 4 required
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
CardsImageObjectFit
string
Object fit for image display in card views
DocumentBlocksEssentials
DocumentTableDefinitionCheckbox
DocumentFragment
object
5 properties 2 required
DocumentInlineExpression
object
5 properties 4 required
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
ContentRef
A relative reference to content in GitBook.
VisitorAuth
DocumentText
object
3 properties 2 required
GitSyncInstallationStatus
string
DocumentMarkBold
object
2 properties 2 required
ComputedContentDependencySpace
object
2 properties 2 required
ContentRefURL
object
2 properties 2 required
DocumentBlockHint
object
6 properties 4 required
DocumentInlineIcon
object
5 properties 4 required
DocumentTableDefinitionSelect
DocumentBlockFile
object
6 properties 4 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
URL
string
DocumentBlock
DocumentInlineAnnotation
object
7 properties 5 required
ComputedContentSourceRevisionOpenAPI
VisitorAuthIntegrationBackend
object
1 property 1 required
DocumentBlocksTopLevels
DocumentBlockEmbed
object
6 properties 4 required
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
RevisionPageComputed
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
RevisionPageBase
object
8 properties 2 required
RevisionPageLayoutOptionsCoverSize
string
Size of the cover image.
ComputedContentDependency
object
Dependency for a computation, before its resolution.
1 property 1 required
DocumentTableDefinitionContentRef
ComputedContentDependencyTranslation
object
2 properties 2 required
DocumentBlockQuote
object
6 properties 3 required
RevisionPageMetaLinkTarget
Space
object
28 properties 17 required
ChangeRequestChangeCountsByType
object
Counts of entities grouped by how they changed relative to the change request base.
3 properties 3 required
TranslationResult
object
Result of a translation.
3 properties 3 required
ChangeRequestLinks
array
External links associated with the change request.
IntegrationBlockMarkdown
GitSyncProvider
string
The provider of the Git Sync installation.
IntegrationBlock
object
6 properties 2 required
DocumentBlockTable
object
6 properties 5 required
RevisionPageTag
object
A reference to a tag with optional primary flag for page-level tags.
2 properties 1 required
GitSyncBlob
object
2 properties 2 required
PublishedSiteContentLookup
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
PublishedSiteContent
object
16 properties 10 required
DocumentMarkKeyboard
object
2 properties 2 required
RevisionPageDocumentCoverTextColor
string
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
Collection
object
9 properties 7 required
RevisionPageMetaLinks
object
2 properties
RevisionPageLayoutOptions
object
13 properties 13 required
GitSyncOperationState
string
running: The operation is still running failure: The operation failed success: The operation was successful timeout: The operation timed out
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
ChangeRequestLinkInput
object
External link associated with a change request.
3 properties 1 required
DocumentBlockListUnordered
object
6 properties 3 required
ComputedContentSourceDocumentOpenAPI
DocumentBlockHeading
object
7 properties 4 required
ComputedContentSourceDocument
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
OpenAPISpecVisibility
string
The visibility setting of the OpenAPI spec. private: The spec is not publicly available. public: The spec is available to anyone with a public link.
DocumentBlockOpenAPISchemas
object
6 properties 4 required
PlainObject
DocumentTableDefinitionRating
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
ChangeRequestLinkExpanded
External ticket data resolved for this link by a configured connector.
DocumentBlockPrompt
object
6 properties 4 required
DocumentBlockExpandable
object
7 properties 5 required
MergeRule
Icon
string
Name of the icon
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
DocumentInlineMention
object
5 properties 4 required
VisitorAuthCustomBackend
object
1 property 1 required
RevisionPageDocumentCover
object
6 properties 1 required
DocumentMarkSuperscript
object
2 properties 2 required
RevisionPageLink
DocumentBlockUpdates
object
6 properties 4 required
ContentKitDefaultAction
DocumentBlockCode
object
6 properties 4 required
DocumentInlineImage
object
5 properties 4 required
DocumentTableDefinitionNumber
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
ComputedContentSourceDocumentTranslation
object
Parameters for a document translation computed content source
3 properties 3 required
DocumentTableDefinitionText
DocumentBlockCodeLine
object
6 properties 4 required
Variables
object
ChangeRequestStatus
string
ContentKitAction
RevisionPageDocument
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…
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
ContentRefFile
object
3 properties 2 required
Embed
DocumentBlockListTasks
object
6 properties 3 required
OpenAPISchemasPointer
object
Pointer to schemas in the OpenAPI spec.
3 properties 1 required
PublishedContentRedirect
DocumentBlockColumns
object
6 properties 5 required
RevisionPageSlug
string
Page's slug in its direct parent
DocumentMarkCode
object
2 properties 2 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
CollectionDescription
string
Description of the collection
RevisionPageGroup
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
GitSyncOperationDirection
string
VariableValue
DocumentTableViewCards
object
8 properties 3 required
ChangeRequestSubject
string
Subject of the change request
ContentRefOpenAPI
object
2 properties 2 required
ComputedContentSourceIntegration
object
Parameters for a computed content managed by an integration
3 properties 2 required
ContentRefSpace
object
2 properties 2 required
ContentRefReusableContent
object
3 properties 2 required
ComputedContentDependencyResolved
Dependency for a computation, with its resolved value.
DocumentTableDefinitionBase
object
2 properties 2 required
ChangeRequestLinkTitle
string
Optional title to display for the link.
DocumentBlockTabsItem
object
7 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
ContentImportRun
object
14 properties 2 required
DocumentTextMark
ComputedContentDependencyOpenAPI
object
2 properties 2 required
DocumentTableViewGrid
object
7 properties 3 required
Document
DocumentMarkColor
object
3 properties 3 required
MergeRulesStandaloneConfiguration
DocumentTableRecord
object
2 properties 2 required
DocumentBlockOpenAPIOperation
object
6 properties 4 required
ComputedContentSourceRevisionTranslation
object
Parameters for a translation computed content source
3 properties 3 required
ComputedContentSourceOpenAPIBase
object
Generic parameters from an OpenAPI computed content source
2 properties 2 required
Emoji
string
Unicode codepoint or character of the emoji
DocumentInline
DocumentBlockMath
object
5 properties 4 required
ChangeRequest
object
26 properties 14 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
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…
ChangeRequestLink
CollectionTitle
string
Title of the collection
DocumentBlockListOrdered
object
6 properties 4 required
SpaceTitle
string
Title of the space
MergeRulesConfigurationNone
object
The merge rules are disabled, change requests can be merged without review.
1 property 1 required
RevisionPageLayoutOptionsWidth
string
Width of the page.
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
TranslationRef
object
2 properties 2 required
SiteVisitorPayload
object
An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.
4 properties
DocumentInlineButton
object
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-urls-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 URLs 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.