> ## 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 change history

> The commits on the portal's saved (main) or draft code, newest first: who changed it, when and why.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/portals/{portal_id}/history
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}/history:
    get:
      tags:
        - portals
      summary: List a portal's change history
      description: >-
        The commits on the portal's saved (main) or draft code, newest first:
        who changed it, when and why.
      operationId: portals_list_history
      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
        - description: main (saved) or draft (being edited)
          in: query
          name: ref
          required: false
          schema:
            default: main
            enum:
              - main
              - draft
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalHistory'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PortalHistory:
      properties:
        commits:
          items:
            $ref: '#/components/schemas/PortalCommit'
          title: Commits
          type: array
      required:
        - commits
      title: PortalHistory
      type: object
    PortalCommit:
      properties:
        author:
          title: Author
          type: string
        message:
          title: Message
          type: string
        sha:
          title: Sha
          type: string
        timestamp:
          description: Epoch seconds
          title: Timestamp
          type: integer
      required:
        - sha
        - message
        - author
        - timestamp
      title: PortalCommit
      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.