Custom hostnames
Serve your GitBook content from fully branded, custom hostnames.
Attributes
objectstring · enumRequiredPossible values:
hostnamestring · max: 512RequiredPattern:
Custom hostname for the site, for e.g. docs.mycompany.com
^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$targetone ofRequired
or
isActivebooleanRequired
statusone ofOptional
string · enumOptionalPossible values:
The CustomHostname object
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired
The custom hostname, for example "docs.gitbook.com"
Responses
204
Custom hostname did not exist
205
Custom hostname has been removed
delete
/custom-hostnames/{hostname}No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired
The custom hostname, for example "docs.gitbook.com"
Responses
204
DNS validation has been retriggered
400
The current custom hostname is inactive and cannot be revalidated
application/json
409
The current custom hostname status does not allow DNS revalidation
application/json
patch
/custom-hostnames/{hostname}No content
Last updated
Was this helpful?