Generated by API Evangelist
Written by API Evangelist tooling for GitBook's API. It is a proposal applied on top of the contract, not a document GitBook publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for GitBook Site Publishing Auth API
version: 1.0.0
extends: openapi/gitbook-site-publishing-auth-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-26'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/publishing/auth'].get
update:
x-apievangelist-phrasing:
intent: Get a site's published content auth settings
effect: read
questions:
- What authentication method is protecting my site's published content?
- Can I check the current auth config before changing it?
instructions:
- text: Show the published content auth settings for site {siteId} in org {organizationId}.
slots:
siteId: path.siteId
organizationId: path.organizationId
- text: Check how site {siteId} in org {organizationId} protects its published content.
slots:
siteId: path.siteId
organizationId: path.organizationId
method: generated
generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/publishing/auth'].patch
update:
x-apievangelist-phrasing:
intent: Change a site's published content auth settings
effect: write
questions:
- How do I turn on or off authentication for a published site?
- Can I set a fallback URL for visitors who fail site auth?
instructions:
- text: Set the published content auth fallback URL of site {siteId} in org {organizationId} to {fallbackURL}.
slots:
siteId: path.siteId
organizationId: path.organizationId
fallbackURL: requestBody.fallbackURL
- text: Update the logout URL for site {siteId} in org {organizationId} to {logoutURL}.
slots:
siteId: path.siteId
organizationId: path.organizationId
logoutURL: requestBody.logoutURL
method: generated
generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate'].post
update:
x-apievangelist-phrasing:
intent: Rotate a site's publishing auth private key
effect: destructive
questions:
- How do I rotate the JWT signing key used for site SSO?
- Will tokens signed with the old auth key stop working after regeneration?
instructions:
- text: Regenerate the private key for site {siteId} in org {organizationId}.
slots:
siteId: path.siteId
organizationId: path.organizationId
- text: Rotate the publishing auth credentials of site {siteId} in org {organizationId}.
slots:
siteId: path.siteId
organizationId: path.organizationId
method: generated
generated: '2026-11-26'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.