Configure and manage subdomains for your organization.
The subdomain, for example "my-company" in "my-company.gitbook.io"
^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$
curl -L \ --url 'https://api.gitbook.com/v1/subdomains/{subdomain}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "object": "subdomain", "subdomain": "text", "target": { "type": "organization", "organization": "text" }, "isActive": true }
Was this helpful?