New: AI Insights are here.
See what your users are asking.
Ctrlk
Pricing Log in Sign up
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Docs sites

Manage your published docs sites.

The Docs Sites API lets you programmatically manage published documentation sites within your organization. You can list and update all sites created under a specific organization, making it easy to audit or interact with site metadata at scale.

The Site object

Attributes
objectstring · enumRequiredPossible values:
idstringRequired

Unique identifier of the site

typestring · enumRequired

The type of the site

Possible values:
appliedTypestring · enumRequired

The currently applied type of the site. For example, frozen sites will have this set to Basic.

Possible values:
titlestring · min: 2 · max: 128Required

Title of the site

iconone ofOptional
or
or
objectOptional
or
nullOptional
hostnamestring · max: 512Optional

Custom hostname for the site, for e.g. docs.mycompany.com

Pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

visibilitystring · enumRequired

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
permissionsModelstring · enumRequired

Permissions resolution mode for the site.

Possible values:
defaultLevelone ofRequired

Default level for a piece of content

string · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
or
nullOptional
or
string · enumOptionalPossible values:
publishedbooleanRequired

Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.

siteSpacesnumberRequired
createdAtstring · date-timeRequired
adsone ofOptional
or
or
or

The Site object

List all documentation sites in an organization

get

Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

spacestringOptional

Identifier of the space to filter the sites by

titlestringOptional

Filter sites by their title

publishedbooleanOptional

Filter sites by their published status

Responses
200

OK

application/json
countnumberOptional

Total count of objects in the list

get/orgs/{organizationId}/sites
200

OK

Create a new documentation site in an organization

post

Creates a new documentation site within the organization. Optionally links one or more existing spaces as content sources at creation time. The site is created in an unpublished state; call the publish endpoint separately to make it publicly accessible.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
Body
typestring · enumOptional

The type of the site, defaults to Basic

Possible values:
titlestring · min: 2 · max: 128Optional

Title of the site

visibilitystring · enumOptional

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
spacesstring[]Optional

ID of spaces to be added to the site

Responses
post/orgs/{organizationId}/sites
201

Site created

Get a documentation site by its ID

get

Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
200

OK

application/json
objectstring · enumRequiredPossible values:
idstringRequired

Unique identifier of the site

typestring · enumRequired

The type of the site

Possible values:
appliedTypestring · enumRequired

The currently applied type of the site. For example, frozen sites will have this set to Basic.

Possible values:
titlestring · min: 2 · max: 128Required

Title of the site

iconone ofOptional
or
or
objectOptional
or
nullOptional
hostnamestring · max: 512Optional

Custom hostname for the site, for e.g. docs.mycompany.com

Pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

visibilitystring · enumRequired

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
permissionsModelstring · enumRequired

Permissions resolution mode for the site.

Possible values:
defaultLevelone ofRequired

Default level for a piece of content

string · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
or
nullOptional
or
string · enumOptionalPossible values:
publishedbooleanRequired

Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.

siteSpacesnumberRequired
createdAtstring · date-timeRequired
adsone ofOptional
or
or
or
get/orgs/{organizationId}/sites/{siteId}

Delete a site

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
delete/orgs/{organizationId}/sites/{siteId}

No content

Update the properties of a documentation site

patch

Updates a documentation site's configuration. Use this to rename a site, change its access level, or point it at a reverse-proxy path such as https://company.com/docs.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Body
titlestring · min: 2 · max: 128Optional

Title of the site

visibilitystring · enumOptional

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

permissionsModelstring · enumOptional

Permissions resolution mode for the site.

Possible values:
defaultLevelone ofOptional

Default level for a piece of content

string · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
or
nullOptional
or
string · enumOptionalPossible values:
defaultSiteSpacestringOptional

ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.

defaultSiteSectionstringOptional

ID of the site-section to be used as the default.

proxyone ofOptional

Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like https://company.com/docs. Use null to remove the proxy.

string · max: 512Optional

Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.

Pattern: ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
or
nullOptional
styleguideone ofOptional

Attach an existing styleguide to the site by the ID of the styleguide space, or null to detach the current one. The space must be a styleguide owned by the same organization.

stringOptional
or
nullOptional
Responses
200

OK

application/json
objectstring · enumRequiredPossible values:
idstringRequired

Unique identifier of the site

typestring · enumRequired

The type of the site

Possible values:
appliedTypestring · enumRequired

The currently applied type of the site. For example, frozen sites will have this set to Basic.

Possible values:
titlestring · min: 2 · max: 128Required

Title of the site

iconone ofOptional
or
or
objectOptional
or
nullOptional
hostnamestring · max: 512Optional

Custom hostname for the site, for e.g. docs.mycompany.com

Pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

visibilitystring · enumRequired

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
permissionsModelstring · enumRequired

Permissions resolution mode for the site.

Possible values:
defaultLevelone ofRequired

Default level for a piece of content

string · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
or
nullOptional
or
string · enumOptionalPossible values:
publishedbooleanRequired

Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.

siteSpacesnumberRequired
createdAtstring · date-timeRequired
adsone ofOptional
or
or
or
patch/orgs/{organizationId}/sites/{siteId}
200

OK

Get the visitor attributes JSON schema for an adaptive content site

get

Returns the JSON schema that defines the visitor attributes expected by an adaptive content site. Adaptive content uses these attributes (e.g., user role, plan tier) to conditionally show or hide content sections. Use this to understand what visitor data must be provided when rendering adaptive content.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
200

The JSON schema that defines the attributes expected from a visitor of the Adaptive content site.

application/json
objectstring · enumRequiredPossible values:
updatedAtstring · date-timeRequired

When the adaptive schema was updated.

get/orgs/{organizationId}/sites/{siteId}/adaptive-schema

Update the visitor attributes JSON schema for an adaptive content site

put

Replaces the JSON schema that defines expected visitor attributes for adaptive content. The schema controls which attributes (e.g., role, subscription tier) can be used in conditional expressions to show or hide content for specific visitors. After updating, existing conditional expressions are evaluated against the new schema.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Body
Responses
200

The site adaptive schema has been updated.

application/json
objectstring · enumRequiredPossible values:
updatedAtstring · date-timeRequired

When the adaptive schema was updated.

put/orgs/{organizationId}/sites/{siteId}/adaptive-schema

List condition templates for adaptive content expressions in a site

get

Returns pre-generated condition templates derived from the site's visitor attributes schema. These templates can be used as building blocks when writing adaptive content expressions to conditionally show or hide content for different visitor types. Use this to discover available conditions before authoring adaptive rules.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
200

List of template conditions generated based on the site visitor schema.

application/json
get/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions
200

List of template conditions generated based on the site visitor schema.

Get the full published profile of a site including structure and customization

get

Returns the complete profile needed to render the published experience of a site. Use this when building a site renderer or preview rather than fetching each resource individually.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

Responses
200

OK

application/json
objectstring · enumRequiredPossible values:
structureone ofRequired
or
get/orgs/{organizationId}/sites/{siteId}/published

Publish a site to make it publicly accessible

post

Makes the site publicly accessible at its configured URL by publishing it. If the organization's plan requires an upgrade, the response includes a Stripe checkout session ID instead of the site object. Use unpublish to take the site offline again.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
200

Site published successfully

application/json
or
post/orgs/{organizationId}/sites/{siteId}/publish
200

Site published successfully

Take a site offline by unpublishing it

post

Removes the site from public access by unpublishing it. The site's configuration and content are preserved; use the publish endpoint to make it accessible again. Use this when you need to temporarily hide a site or take it down for maintenance.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Responses
200

Site unpublished successfully

application/json
objectstring · enumRequiredPossible values:
idstringRequired

Unique identifier of the site

typestring · enumRequired

The type of the site

Possible values:
appliedTypestring · enumRequired

The currently applied type of the site. For example, frozen sites will have this set to Basic.

Possible values:
titlestring · min: 2 · max: 128Required

Title of the site

iconone ofOptional
or
or
objectOptional
or
nullOptional
hostnamestring · max: 512Optional

Custom hostname for the site, for e.g. docs.mycompany.com

Pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

visibilitystring · enumRequired

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
permissionsModelstring · enumRequired

Permissions resolution mode for the site.

Possible values:
defaultLevelone ofRequired

Default level for a piece of content

string · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
or
nullOptional
or
string · enumOptionalPossible values:
publishedbooleanRequired

Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.

siteSpacesnumberRequired
createdAtstring · date-timeRequired
adsone ofOptional
or
or
or
post/orgs/{organizationId}/sites/{siteId}/unpublish
200

Site unpublished successfully

Move a site space, section, or section group to a new position

patch

Reorders an item in the site's navigation structure by moving a site space, section, or section group to a specified position relative to another item. Use this to reorganize the navigation order after adding new sections or to reflect a new content hierarchy.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Body
Responses
200

Item successfully moved

application/json

A site structure item can be a site space, a site section or a site section group. It is used to represent the structure of a site.

or
or
patch/orgs/{organizationId}/sites/{siteId}/structure/sort

Full-text search across all content in a site

post

Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Body
and
anyOptional
or
or
or
Responses
200

OK

application/json
countnumberOptional

Total count of objects in the list

post/orgs/{organizationId}/sites/{siteId}/search
200

OK

Create or retrieve the styleguide space for a site

post

Ensures the site has a dedicated styleguide space and returns a reference to it. The styleguide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a styleguide already exists, this is idempotent and returns the existing reference.

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

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

Body
templatestringOptional

Built-in template id to seed the styleguide content with. Omit (or send no body) to create a blank styleguide.

Responses
200

Styleguide created or already exists.

application/json
kindstring · enumRequiredPossible values:
spacestringRequired
post/orgs/{organizationId}/sites/{siteId}/styleguide

Last updated

Was this helpful?

AltStyle によって変換されたページ (->オリジナル) /