> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcebot.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a repository wiki

> Reports whether a repository has a [wiki](/docs/features/wiki) of generated docs, and links to it. Use it to show a link to a repository's docs only when they exist.

> [!NOTE]
>
> This endpoint is [rate limited](https://docs.sourcebot.dev/docs/api-reference/rate-limiting.md). Each call counts toward your daily request limit.


## OpenAPI

````yaml /api-reference/sourcebot-public.openapi.json get /api/wiki
openapi: 3.0.3
info:
  title: Sourcebot Public API
  version: v6.1.0
  description: >-
    OpenAPI description for the public Sourcebot REST endpoints used for search,
    repository listing, and file browsing. API keys are the standard integration
    mechanism, and OAuth bearer tokens are EE-only.
servers: []
security:
  - bearerToken: []
  - apiKeyHeader: []
  - {}
tags:
  - name: Search & Navigation
    description: Code search and symbol navigation endpoints.
  - name: Connections
    description: Code host connection metadata.
  - name: Repositories
    description: Repository listing and metadata endpoints.
  - name: Git
    description: Git history, diff, and file content endpoints.
  - name: Scoped Access Tokens
    description: >-
      Mint and revoke short-lived credentials restricted to specific
      repositories.
  - name: System
    description: System health and version endpoints.
  - name: Enterprise (EE)
    description: Enterprise endpoints for user management and audit logging.
paths:
  /api/wiki:
    get:
      tags:
        - Repositories
      summary: Get a repository wiki
      description: >-
        Reports whether a repository has a [wiki](/docs/features/wiki) of
        generated docs, and links to it. Use it to show a link to a repository's
        docs only when they exist.
      operationId: getWiki
      parameters:
        - schema:
            type: string
            description: The fully-qualified repository name.
          required: true
          description: The fully-qualified repository name.
          name: repo
          in: query
      responses:
        '200':
          description: Whether the repository has a wiki, with a link when it does.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicGetWikiResponse'
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
        '404':
          description: Repository not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
        '500':
          description: Unexpected failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
components:
  schemas:
    PublicGetWikiResponse:
      type: object
      properties:
        exists:
          type: boolean
          description: Whether the repository has a wiki with at least one doc.
        url:
          type: string
          description: >-
            The wiki's home page in the Sourcebot web app. Omitted when `exists`
            is `false`.
        docCount:
          type: integer
          description: The number of docs in the wiki, including its README overview.
        lastUpdatedAt:
          type: string
          description: >-
            When a scan last updated the wiki, in ISO 8601. A scan updates each
            doc it checks against the code, even when the doc's text stays the
            same. Omitted when no scan has updated a doc.
        lastUpdatedCommit:
          type: string
          description: >-
            The SHA of the repository's commit that the wiki was last updated
            against. Present when `lastUpdatedAt` is.
      required:
        - exists
        - docCount
    PublicApiServiceError:
      type: object
      properties:
        statusCode:
          type: number
        errorCode:
          type: string
        message:
          type: string
      required:
        - statusCode
        - errorCode
        - message
      description: Structured error response returned by Sourcebot public API endpoints.
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`. The token may
        be a Sourcebot API key, OAuth access token, or scoped access token,
        subject to endpoint requirements.
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-Sourcebot-Api-Key
      description: >-
        Header of the form `X-Sourcebot-Api-Key: <token>`, where `<token>` is
        your API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.