Custom Hostnames

Get the details about a custom hostname.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired

The custom hostname, for example "docs.gitbook.com"

Responses
chevron-right
200

OK

application/json
get
/custom-hostnames/{hostname}

Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired

The custom hostname, for example "docs.gitbook.com"

Body
targetone ofRequired
or
Responses
post
/custom-hostnames/{hostname}

Remove a custom hostname from a content or organization. The custom hostname will continue to point to the content or organization unless it is used for another one.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired

The custom hostname, for example "docs.gitbook.com"

Responses
delete
/custom-hostnames/{hostname}

No content

Revalidate a custom hostname's DNS records and status.

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired

The custom hostname, for example "docs.gitbook.com"

Responses
patch
/custom-hostnames/{hostname}

No content

Test if a custom hostname can be used for a site or organization.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
hostnamestringRequired

The custom hostname, for example "docs.gitbook.com"

Body
targetone ofRequired
or
Responses
post
/custom-hostnames/{hostname}/test

No content

Last updated

Was this helpful?