> ## 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.

# Put a portal live

> Ask the person before calling this: this makes a deployed version what the portal's public address serves. Deploy it first with the portal_deploy_preview MCP tool: nothing deployed is a 409. Uses `label` as the subdomain if given; a subdomain in use is a 409, a bad one a 422. An archived portal is a 409. To go back to an earlier version, send its `commit_id` (GET /v1/portals/{portal_id}/versions). A staff grant (a Statisfy person in your workspace) can't call this: it speaks for your workspace.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/portals/{portal_id}/go-live
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}/go-live:
    post:
      tags:
        - portals
      summary: Put a portal live
      description: >-
        Ask the person before calling this: this makes a deployed version what
        the portal's public address serves. Deploy it first with the
        portal_deploy_preview MCP tool: nothing deployed is a 409. Uses `label`
        as the subdomain if given; a subdomain in use is a 409, a bad one a 422.
        An archived portal is a 409. To go back to an earlier version, send its
        `commit_id` (GET /v1/portals/{portal_id}/versions). A staff grant (a
        Statisfy person in your workspace) can't call this: it speaks for your
        workspace.
      operationId: portals_go_live
      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:
                commit_id:
                  anyOf:
                    - pattern: ^[0-9a-f]{40}$
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    The deployed version to go live with. Left out: the live
                    one, else the newest deployed one
                  title: Commit Id
                label:
                  anyOf:
                    - maxLength: 63
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    Also serve it at this subdomain (<label>.<Statisfy's portal
                    domain>). Left out: the answer is the portal's permanent
                    address. Every address of the portal serves the live version
                  title: Label
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalHostView'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PortalHostView:
      properties:
        hostname:
          description: The full hostname, such as help.acme.com or acme-x1y2.statisfy.app
          title: Hostname
          type: string
        is_primary:
          description: The address the portal's links use
          title: Is Primary
          type: boolean
        is_system:
          description: 'The portal''s permanent address: it can''t be removed'
          title: Is System
          type: boolean
        kind:
          description: A Statisfy subdomain, or your own domain
          enum:
            - subdomain
            - custom
          title: Kind
          type: string
        live:
          description: The live portal is served here
          title: Live
          type: boolean
        status:
          description: >-
            active, pending_verification, provisioning_certificate, failed or
            disabled (custom domains go through the middle two)
          title: Status
          type: string
        url:
          description: https://<hostname>/
          title: Url
          type: string
      required:
        - hostname
        - kind
        - status
        - url
        - live
        - is_system
        - is_primary
      title: PortalHostView
      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.