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

Get the published content authentication configuration for a site

Retrieves the authentication settings that protect a site's published content. Use this to review the current auth method before making changes or troubleshooting access issues.

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
anyOptional
or
and
get/orgs/{organizationId}/sites/{siteId}/publishing/auth
GET /v1/orgs/{organizationId}/sites/{siteId}/publishing/auth HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "backend": "custom",
  "object": "publishing-auth",
  "privateKey": "text",
  "fallbackURL": "https://example.com",
  "logoutURL": "https://example.com",
  "integration": "text"
}

Last updated

Was this helpful?

Powered by GitBook