For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get a documentation site by its ID

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.

Available in MCP
get
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 of · nullableOptional
or
or
objectOptional
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:
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
lastScanAtstring · date-timeOptional

When GitBook last completed a scan of the site's content gaps. Absent until the site has been scanned at least once.

adsone ofOptional
or
or
or
get/orgs/{organizationId}/sites/{siteId}
GET /v1/orgs/{organizationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "site",
  "id": "text",
  "type": "basic",
  "appliedType": "basic",
  "title": "text",
  "icon": {
    "icon": {
      "light": "https://example.com",
      "dark": "https://example.com"
    }
  },
  "hostname": "text",
  "basename": "text",
  "proxy": {
    "origin": "text",
    "target": "text"
  },
  "visibility": "public",
  "defaultLevel": "admin",
  "permissions": {
    "view": true,
    "access": true,
    "edit": true,
    "create": true,
    "admin": true,
    "installIntegration": true,
    "viewAdaptiveSchema": true,
    "editAdaptiveSchema": true
  },
  "published": true,
  "siteSpaces": 1,
  "gitSync": {
    "repoName": "text",
    "installationStatus": "unauthenticated",
    "installationProvider": "github",
    "installationId": "text",
    "parentInstallationId": "text",
    "url": "text",
    "operation": {
      "state": "running",
      "direction": "export",
      "startedAt": "2026-01-01T00:00:00.000Z",
      "endedAt": "2026-01-01T00:00:00.000Z",
      "error": "text",
      "errorAction": {
        "label": "text",
        "url": "https://example.com"
      }
    },
    "operationTimeout": 1,
    "updatedAt": "2026-01-01T00:00:00.000Z"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastScanAt": "2026-01-01T00:00:00.000Z",
  "adaptiveContent": {
    "enabled": true
  },
  "ads": {
    "status": "pending",
    "submittable": true
  },
  "styleguide": {
    "kind": "space",
    "space": "text"
  },
  "features": [
    {
      "id": "sites-adaptive-content",
      "plan": "basic",
      "frozen": true,
      "customizations": [
        "header-logo"
      ]
    }
  ],
  "urls": {
    "location": "https://example.com",
    "app": "https://example.com",
    "published": "https://example.com",
    "preview": "https://example.com",
    "login": "https://example.com",
    "logout": "https://example.com"
  }
}

Last updated

Was this helpful?

Powered by GitBook