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

# Revoke a Pages preview link

> Revokes a preview token for a site in the API key's workspace. This REST-only endpoint has no MCP-tool equivalent; the token belongs only in the JSON body.



## OpenAPI

````yaml /openapi.json delete /api/pages/{siteId}/preview-links
openapi: 3.1.0
info:
  title: Goosy Bear API
  version: 1.0.0-beta
  summary: Manage workspace content, projects, Data tables, Pages, library and credits.
  description: >-
    BETA. This API is in beta: paths, request shapes and response envelopes may
    change, and every response carries an `x-goosy-api: beta` header for as long
    as that is true. Pin the OpenAPI document you generated against and
    re-generate when it changes.
servers:
  - url: https://app.goosybear.ai
    description: Production
security:
  - tenantApiKey: []
paths:
  /api/pages/{siteId}/preview-links:
    delete:
      tags:
        - pages
      summary: Revoke a Pages preview link
      description: >-
        Revokes a preview token for a site in the API key's workspace. This
        REST-only endpoint has no MCP-tool equivalent; the token belongs only in
        the JSON body.
      operationId: revokePagePreviewLink
      parameters:
        - name: siteId
          in: path
          required: true
          description: The UUID of a site in the API key's workspace.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  pattern: ^[A-Za-z0-9_-]{43}$
              required:
                - token
              additionalProperties: false
      responses:
        '200':
          description: The request succeeded. Read the `data` Result field.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      siteId:
                        type: string
                        format: uuid
                    required:
                      - siteId
                    additionalProperties: false
                required:
                  - ok
                  - data
                additionalProperties: false
        '400':
          description: >-
            The site id or JSON request body did not match the endpoint's strict
            schema.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePreviewLinkError'
        '401':
          description: No bearer credential, or one that did not resolve.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePreviewLinkError'
        '403':
          description: >-
            The key is not workspace-restricted, programmatic access is
            unavailable, or its holder lacks `pages.manage`.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePreviewLinkError'
        '429':
          description: >-
            The API key is over its rate limit. Wait for `Retry-After` before
            retrying.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
            Retry-After:
              description: Whole seconds to wait before retrying.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePreviewLinkError'
        '500':
          description: An unexpected server error occurred while handling the request.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            Cache-Control:
              description: >-
                Always `no-store`; preview tokens and their outcome are never
                cacheable.
              schema:
                type: string
                const: no-store
            Referrer-Policy:
              description: >-
                Always `no-referrer`; a preview token must not be sent in a
                referrer header.
              schema:
                type: string
                const: no-referrer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePreviewLinkError'
components:
  schemas:
    PagePreviewLinkError:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            retry_after_seconds:
              type: integer
              minimum: 1
          required:
            - code
            - message
          additionalProperties: false
      required:
        - ok
        - error
      additionalProperties: false
      description: A Pages preview-link request that did not succeed.
  securitySchemes:
    tenantApiKey:
      type: http
      scheme: bearer
      description: >-
        An API key minted at Settings › API & MCP. Send it as `Authorization:
        Bearer <key>`. A key carries its holder's own permissions, resolved on
        every call — revoking a membership closes the key's reach immediately.
        Keep it in an environment variable (`GOOSY_API_KEY`), never in a
        committed file.

````