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

# List a portal's versions

> The portal's newest 50 builds, newest first, with their status and preview address once deployed.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/portals/{portal_id}/versions
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}/versions:
    get:
      tags:
        - portals
      summary: List a portal's versions
      description: >-
        The portal's newest 50 builds, newest first, with their status and
        preview address once deployed.
      operationId: portals_list_versions
      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
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalVersions'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PortalVersions:
      properties:
        versions:
          items:
            $ref: '#/components/schemas/PortalVersion'
          title: Versions
          type: array
      required:
        - versions
      title: PortalVersions
      type: object
    PortalVersion:
      properties:
        commit_sha:
          description: The commit it was built from
          title: Commit Sha
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Why the build failed
          title: Error
        id:
          title: Id
          type: string
        preview_url:
          anyOf:
            - type: string
            - type: 'null'
          description: Where this version is deployed for preview, once it is
          title: Preview Url
        status:
          description: building, built, published or failed
          title: Status
          type: string
      required:
        - id
        - commit_sha
        - status
        - error
        - preview_url
        - created_at
      title: PortalVersion
      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.