GitBook · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitBook Site Redirects API

7 actions 7 updates phrasing extends openapi/gitbook-site-redirects-api-openapi.yml
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.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 7

$.info
$.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].get
$.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].put
$.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].post
$.paths['/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}'].delete
$.paths['/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}'].patch
$.paths['/orgs/{organizationId}/sites/{siteId}/redirect'].get

OpenAPI Overlay

Raw ↑
# 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 Redirects API
  version: 1.0.0
extends: openapi/gitbook-site-redirects-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: 6
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].get
  update:
    x-apievangelist-phrasing:
      intent: List URL redirects on a site
      effect: read
      questions:
      - Which source-to-destination redirects are configured on my site?
      - Can I list only the draft redirects that haven't been published yet?
      instructions:
      - text: List all redirects on site {siteId} in {organizationId}.
        slots:
          siteId: path.siteId
          organizationId: path.organizationId
      - text: Show redirects on {siteId} in {organizationId} matching {search}.
        slots:
          siteId: path.siteId
          organizationId: path.organizationId
          search: query.search
      method: generated
      generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].put
  update:
    x-apievangelist-phrasing:
      intent: Create, update or delete many site redirects at once
      effect: write
      questions:
      - Can I publish a batch of draft redirects in one request?
      - How many redirects can I create, update or delete in a single bulk upsert?
      instructions:
      - text: 'Apply this batch of redirect changes to site {siteId} in {organizationId}: {redirects}.'
        slots:
          siteId: path.siteId
          organizationId: path.organizationId
          redirects: requestBody.redirects
      - text: Bulk upsert redirects {redirects} on {siteId} in {organizationId}.
        slots:
          redirects: requestBody.redirects
          siteId: path.siteId
          organizationId: path.organizationId
      method: generated
      generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirects'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a URL redirect for a site
      effect: write
      questions:
      - How do I redirect an old page path to a new destination URL?
      - Can a new redirect be made a permanent redirect for public traffic?
      instructions:
      - text: Create a redirect from {source} to {destination} on site {siteId} in {organizationId}.
        slots:
          source: requestBody.source
          destination: requestBody.destination
          siteId: path.siteId
          organizationId: path.organizationId
      - text: Make a permanent redirect {source} → {destination} on {siteId} in {organizationId}.
        slots:
          source: requestBody.source
          destination: requestBody.destination
          siteId: path.siteId
          organizationId: path.organizationId
      method: generated
      generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a site redirect
      effect: destructive
      questions:
      - How do I remove a redirect rule from my site?
      - Can I delete a single redirect by its ID?
      instructions:
      - text: Delete redirect {siteRedirectId} from site {siteId} in {organizationId}.
        slots:
          siteRedirectId: path.siteRedirectId
          siteId: path.siteId
          organizationId: path.organizationId
      - text: Remove the {siteRedirectId} redirect on {siteId} in {organizationId}.
        slots:
          siteRedirectId: path.siteRedirectId
          siteId: path.siteId
          organizationId: path.organizationId
      method: generated
      generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a site redirect
      effect: write
      questions:
      - How do I change the destination of an existing redirect?
      - Can I make an existing redirect permanent or draft?
      instructions:
      - text: Change the destination of redirect {siteRedirectId} on {siteId} in {organizationId} to {destination}.
        slots:
          siteRedirectId: path.siteRedirectId
          siteId: path.siteId
          organizationId: path.organizationId
          destination: requestBody.destination
      - text: 'Set redirect {siteRedirectId} on {siteId} in {organizationId} to permanent: {permanent}.'
        slots:
          siteRedirectId: path.siteRedirectId
          siteId: path.siteId
          organizationId: path.organizationId
          permanent: requestBody.permanent
      method: generated
      generated: '2026-11-26'
- target: $.paths['/orgs/{organizationId}/sites/{siteId}/redirect'].get
  update:
    x-apievangelist-phrasing:
      intent: Resolve a site redirect by source path
      effect: read
      questions:
      - Where does a given source path on my site currently redirect to?
      - Can I resolve a redirect's destination without listing all of them?
      instructions:
      - text: Resolve the redirect for {source} on site {siteId} in {organizationId}.
        slots:
          source: query.source
          siteId: path.siteId
          organizationId: path.organizationId
      - text: Show the destination of {source} on {siteId} in {organizationId}.
        slots:
          source: query.source
          siteId: path.siteId
          organizationId: path.organizationId
      method: generated
      generated: '2026-11-26'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitbook-site-redirects-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

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.

A second provider on the same verified email joins the account you already have.