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

# Archive a portal

> Ask the person before calling this: an archived portal is hidden and its code, versions and addresses can't be changed (who may sign in still can). Its code and versions are kept, and it stays live unless `unpublish` is true, which also takes its addresses offline and removes its custom domains (`domains_removing` names any still being taken down).



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/portals/{portal_id}/archive
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/portals/{portal_id}/archive:
    post:
      tags:
        - portals
      summary: Archive a portal
      description: >-
        Ask the person before calling this: an archived portal is hidden and its
        code, versions and addresses can't be changed (who may sign in still
        can). Its code and versions are kept, and it stays live unless
        `unpublish` is true, which also takes its addresses offline and removes
        its custom domains (`domains_removing` names any still being taken
        down).
      operationId: portals_archive
      parameters:
        - description: >-
            The portal's id, as GET /v1/portals (or the portal_list MCP tool)
            returns it
          in: path
          name: portal_id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                unpublish:
                  default: false
                  description: >-
                    Also take it offline: its live addresses stop serving and
                    custom domains are removed
                  title: Unpublish
                  type: boolean
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArchivedPortal'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ArchivedPortal:
      properties:
        domains_removing:
          description: >-
            Custom domains whose certificate could not be taken down yet: they
            no longer serve the portal, and are removed shortly
          items:
            type: string
          title: Domains Removing
          type: array
        hosts_removed:
          title: Hosts Removed
          type: integer
        status:
          const: archived
          default: archived
          title: Status
          type: string
        unpublished:
          title: Unpublished
          type: boolean
      required:
        - unpublished
        - hosts_removed
        - domains_removing
      title: ArchivedPortal
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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