For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

List all topics

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

Query parameters
fromstring · date-timeOptional

Filter stats to answers created at or after this timestamp.

tostring · date-timeOptional

Filter stats to answers created at or before this timestamp.

citedPagestring[]Optional

Filter to answers that cited one of these pages as a source, each given as {spaceId}/{pageId}.

Responses
200

OK

application/json
get/orgs/{organizationId}/sites/{siteId}/topics
GET /v1/orgs/{organizationId}/sites/{siteId}/topics HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "items": [
    {
      "object": "context-topic",
      "id": "text",
      "label": "text",
      "parent": {
        "id": "text",
        "label": "text"
      },
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z",
      "icon": "gear",
      "summary": {
        "object": "document",
        "data": {},
        "nodes": [
          {
            "object": "block",
            "type": "paragraph",
            "data": {},
            "nodes": [
              {
                "object": "text",
                "leaves": [
                  {
                    "object": "leaf",
                    "text": "Hello world",
                    "marks": []
                  }
                ]
              }
            ]
          }
        ]
      },
      "usageSettings": {
        "changeRequests": true
      },
      "pages": 1,
      "records": 1,
      "findings": {
        "open": 1,
        "total": 1
      },
      "questions": {
        "total": 1,
        "answers": 1,
        "feedback": {
          "positive": 1,
          "negative": 1,
          "unrated": 1
        },
        "answered": {
          "yes": 1,
          "partially": 1,
          "no": 1
        },
        "relevance": {
          "relevant": 1,
          "spam": 1,
          "off-topic": 1,
          "unclear": 1
        },
        "types": {
          "exploring": 1,
          "how-to": 1,
          "troubleshooting": 1,
          "reference": 1,
          "unknown": 1
        },
        "channelTypes": {
          "ANY_ADDITIONAL_PROPERTY": 1
        },
        "channels": {
          "ANY_ADDITIONAL_PROPERTY": 1
        },
        "visitorTypes": {
          "human": 1,
          "agent": 1,
          "bot": 1,
          "unknown": 1
        },
        "intents": {
          "can-it": 1,
          "how-to": 1,
          "how-it-works": 1,
          "details": 1,
          "troubleshoot": 1,
          "pricing": 1,
          "trust": 1,
          "fit": 1,
          "other": 1,
          "unlabelled": 1
        },
        "siteSaid": {
          "covered": 1,
          "limited": 1,
          "unsupported": 1,
          "no-answer": 1,
          "needs-support": 1,
          "unlabelled": 1
        },
        "escalations": {
          "docs": 1,
          "team": 1,
          "support": 1,
          "none": 1,
          "unlabelled": 1
        },
        "goals": 1,
        "weeklyPulse": [
          1
        ]
      },
      "urls": {
        "location": "https://example.com"
      }
    }
  ]
}

Last updated

Was this helpful?