URLs

Configure where and how your GitBook content can be accessed.

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.

Resolve a URL to a content (space, collection, page)

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
urlstringRequired

URL to resolve

Responses
200

OK

application/json
Responseone of
or
get
/urls/content
200

OK

Resolve a URL to an embed

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
urlstringRequired

URL to resolve

Responses
200

OK

application/json
Responseall of
and
anyOptional
or
or
get
/urls/embed
200

OK

Deprecated

Resolve a URL of a published content.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
urlstring · uri · max: 2048Required

URL to resolve

visitorAuthTokenstringOptional

JWT token generated for a authenticated access session

redirectOnErrorbooleanOptional

When true redirects the user to the authentication/fallback URL if the access token is invalid

Default: false
Responses
200

OK

application/json
Responseone of
or
get
/urls/published

Resolve a URL of a published content.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
urlstring · uri · max: 2048Required

URL to resolve

redirectOnErrorbooleanOptional

When true redirects the user to the authentication/fallback URL if the access token is invalid

Default: false
Responses
200

OK

application/json
Responseone of
or
post
/urls/published

Last updated

Was this helpful?