PostHog visual_review API

The visual_review API from PostHog — 22 operation(s) for visual_review.

Operations 25

GET /api/projects/{project_id}/visual_review/repos/ #
POST /api/projects/{project_id}/visual_review/repos/ #
GET /api/projects/{project_id}/visual_review/repos/{id}/ #
PATCH /api/projects/{project_id}/visual_review/repos/{id}/ #
GET /api/projects/{project_id}/visual_review/repos/{id}/baselines/ #
GET /api/projects/{project_id}/visual_review/repos/{id}/quarantine/ #
POST /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/ #
POST /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/expire/ #
GET /api/projects/{project_id}/visual_review/repos/{id}/thumbnails/{identifier}/ #
GET /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/ #
GET /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/counts/ #
GET /api/projects/{project_id}/visual_review/repos/{repo_id}/snapshots/{run_type}/{identifier}/ #
GET /api/projects/{project_id}/visual_review/runs/ #
POST /api/projects/{project_id}/visual_review/runs/ #
GET /api/projects/{project_id}/visual_review/runs/{id}/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/add-snapshots/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/approve/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/auto-approve/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/complete/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/recompute/ #
GET /api/projects/{project_id}/visual_review/runs/{id}/snapshot-history/ #
GET /api/projects/{project_id}/visual_review/runs/{id}/snapshots/ #
POST /api/projects/{project_id}/visual_review/runs/{id}/tolerate/ #
GET /api/projects/{project_id}/visual_review/runs/{id}/tolerated-hashes/ #
GET /api/projects/{project_id}/visual_review/runs/counts/ #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog-visual-review-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-visual-review-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog actions Visual Review API
  version: 1.0.0
  description: ''
servers:
- url: https://app.posthog.com/api
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: visual_review
paths:
  /api/projects/{project_id}/visual_review/repos/:
    get:
      operationId: visual_review_repos_list
      description: List all projects for the team.
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRepoList'
          description: ''
      x-explicit-tags:
      - visual_review
    post:
      operationId: visual_review_repos_create
      description: Create a new repo.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRepoInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateRepoInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateRepoInput'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Repo'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/:
    get:
      operationId: visual_review_repos_retrieve
      description: Get a repo by ID.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Repo'
          description: ''
      x-explicit-tags:
      - visual_review
    patch:
      operationId: visual_review_repos_partial_update
      description: Update a repo's settings.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedUpdateRepoRequestInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedUpdateRepoRequestInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedUpdateRepoRequestInput'
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Repo'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/baselines/:
    get:
      operationId: visual_review_repos_baselines_retrieve
      description: 'Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `truncated` and returns the most recently active when exceeded. Filtering / faceting / search are all done client-side; this endpoint takes no filter query params.'
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaselineOverview'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/quarantine/:
    get:
      operationId: visual_review_repos_quarantine_list
      description: 'List quarantined identifiers. Without filter: active only. With identifier: full history.'
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - in: query
        name: identifier
        schema:
          type: string
        description: Filter by identifier (returns full history)
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: query
        name: run_type
        schema:
          type: string
        description: Filter by run type
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedQuarantinedIdentifierEntryList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/:
    post:
      operationId: visual_review_repos_quarantine_create
      description: Quarantine a snapshot identifier for a specific run type.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: run_type
        schema:
          type: string
          pattern: ^[^/]+$
        required: true
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuarantinedIdentifierEntry'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/expire/:
    post:
      operationId: visual_review_repos_quarantine_expire_create
      description: Expire all active quarantine entries for an identifier.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: run_type
        schema:
          type: string
          pattern: ^[^/]+$
        required: true
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/QuarantineInput'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '204':
          description: No response body
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{id}/thumbnails/{identifier}/:
    get:
      operationId: visual_review_repos_thumbnails_retrieve
      description: Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - in: path
        name: identifier
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          description: WebP thumbnail image
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/:
    get:
      operationId: visual_review_repos_runs_list
      description: List runs in this repo, optionally filtered by review state.
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: repo_id
        schema:
          type: string
        required: true
      - in: query
        name: review_state
        schema:
          type: string
        description: Filter by review state
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRunList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/counts/:
    get:
      operationId: visual_review_repos_runs_counts_retrieve
      description: Review state counts for runs in this repo.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: repo_id
        schema:
          type: string
        required: true
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewStateCounts'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/repos/{repo_id}/snapshots/{run_type}/{identifier}/:
    get:
      operationId: visual_review_repos_snapshots_list
      description: Deduped baseline timeline for a snapshot identity. Newest first.
      parameters:
      - in: path
        name: identifier
        schema:
          type: string
        description: Snapshot identifier; clients must percent-encode before sending
        required: true
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: repo_id
        schema:
          type: string
        required: true
      - in: path
        name: run_type
        schema:
          type: string
        description: Run type (storybook, playwright)
        required: true
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSnapshotHistoryEntryList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/:
    get:
      operationId: visual_review_runs_list
      description: List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.
      parameters:
      - in: query
        name: branch
        schema:
          type: string
        description: Filter by branch name
      - in: query
        name: commit_sha
        schema:
          type: string
        description: Filter by full commit SHA
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - in: query
        name: pr_number
        schema:
          type: integer
        description: Filter by GitHub PR number
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: query
        name: review_state
        schema:
          type: string
        description: Filter by review state
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRunList'
          description: ''
      x-explicit-tags:
      - visual_review
    post:
      operationId: visual_review_runs_create
      description: Create a new run from a CI manifest.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRunInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateRunInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateRunInput'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRunResult'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/:
    get:
      operationId: visual_review_runs_retrieve
      description: Get run status and summary.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/add-snapshots/:
    post:
      operationId: visual_review_runs_add_snapshots_create
      description: Add a batch of snapshots to a pending run (shard-based flow).
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddSnapshotsInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddSnapshotsInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddSnapshotsInput'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddSnapshotsResult'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/approve/:
    post:
      operationId: visual_review_runs_approve_create
      description: 'Approve visual changes for snapshots in this run.


        With approve_all=true, approves all changed+new snapshots and returns

        signed baseline YAML. With specific snapshots, approves only those.'
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApproveRunRequestInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ApproveRunRequestInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ApproveRunRequestInput'
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoApproveResult'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/auto-approve/:
    post:
      operationId: visual_review_runs_auto_approve_create
      description: 'CLI auto-approve: approve all and return baseline YAML for local write.'
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoApproveResult'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/complete/:
    post:
      operationId: visual_review_runs_complete_create
      description: 'Complete a run: detect removals, verify uploads, trigger diff processing.'
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/recompute/:
    post:
      operationId: visual_review_runs_recompute_create
      description: Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecomputeResult'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/snapshot-history/:
    get:
      operationId: visual_review_runs_snapshot_history_list
      description: Recent change history for a snapshot identifier across runs.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - in: query
        name: identifier
        schema:
          type: string
        description: Snapshot identifier
        required: true
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSnapshotHistoryEntryList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/snapshots/:
    get:
      operationId: visual_review_runs_snapshots_list
      description: Get all snapshots for a run with diff results.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSnapshotList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/tolerate/:
    post:
      operationId: visual_review_runs_tolerate_create
      description: Mark a changed snapshot as a known tolerated alternate.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkToleratedInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/MarkToleratedInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MarkToleratedInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Snapshot'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/{id}/tolerated-hashes/:
    get:
      operationId: visual_review_runs_tolerated_hashes_list
      description: List known tolerated hashes for a snapshot identifier.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      - in: query
        name: identifier
        schema:
          type: string
        description: Snapshot identifier
        required: true
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedToleratedHashEntryList'
          description: ''
      x-explicit-tags:
      - visual_review
  /api/projects/{project_id}/visual_review/runs/counts/:
    get:
      operationId: visual_review_runs_counts_retrieve
      description: Review state counts for the runs list.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - visual_review
      security:
      - PersonalAPIKeyAuth:
        - visual_review:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewStateCounts'
          description: ''
      x-explicit-tags:
      - visual_review
components:
  schemas:
    PaginatedRunList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/Run'
    RecomputeResult:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/Run'
        counts_changed:
          type: boolean
        unresolved:
          type: integer
        ci_rerun_triggered:
          type: boolean
        ci_rerun_error:
          type:
          - string
          - 'null'
      required:
      - ci_rerun_triggered
      - counts_changed
      - run
      - unresolved
    PaginatedToleratedHashEntryList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/ToleratedHashEntry'
    UploadTarget:
      type: object
      properties:
        content_hash:
          type: string
        url:
          type: string
        fields:
          type: object
          additionalProperties:
            type: string
      required:
      - content_hash
      - fields
      - url
    AutoApproveResult:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/Run'
        baseline_content:
          type: string
      required:
      - baseline_content
      - run
    BaselineSparklineDay:
      type: object
      properties:
        clean:
          type: integer
        tolerated:
          type: integer
        changed:
          type: integer
        quarantined:
          type: integer
      required:
      - changed
      - clean
      - quarantined
      - tolerated
    Artifact:
      type: object
      properties:
        id:
          type: string
          format: uuid
        content_hash:
          type: string
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        download_url:
          type:
          - string
          - 'null'
      required:
      - content_hash
      - download_url
      - height
      - id
      - width
    Snapshot:
      type: object
      properties:
        current_artifact:
          allOf:
          - $ref: '#/components/schemas/Artifact'
        baseline_artifact:
          allOf:
          - $ref: '#/components/schemas/Artifact'
        diff_artifact:
          allOf:
          - $ref: '#/components/schemas/Artifact'
        reviewed_by:
          allOf:
          - $ref: '#/components/schemas/UserBasicInfo'
        id:
          type: string
          format: uuid
        identifier:
          type: string
        result:
          type: string
        classification_reason:
          type: string
        diff_percentage:
          type:
          - number
          - 'null'
          format: double
        diff_pixel_count:
          type:
          - integer
          - 'null'
        review_state:
          type: string
        reviewed_at:
          type:
          - string
          - 'null'
          format: date-time
        approved_hash:
          type: string
        tolerated_hash_id:
          type:
          - string
          - 'null'
          format: uuid
        is_quarantined:
          type: boolean
        metadata:
          type: object
          additionalProperties: true
      required:
      - approved_hash
      - classification_reason
      - diff_percentage
      - diff_pixel_count
      - id
      - identifier
      - result
      - review_state
      - reviewed_at
    ApproveRunRequestInput:
      type: object
      properties:
        snapshots:
          type: array
          items:
            $ref: '#/components/schemas/ApproveSnapshotInput'
        approve_all:
          type: boolean
        commit_to_github:
          type: boolean
    Repo:
      type: object
      properties:
        id:
          type: string
          format: uuid
        team_id:
          type: integer
        repo_external_id:
          type: integer
        repo_full_name:
          type: string
        baseline_file_paths:
          type: object
          additionalProperties:
            type: string
        enable_pr_comments:
          type: boolean
        created_at:
          type: string
          format: date-time
      required:
      - baseline_file_paths
      - created_at
      - enable_pr_comments
      - id
      - repo_external_id
      - repo_full_name
      - team_id
    QuarantinedIdentifierEntry:
      type: object
      properties:
        created_by:
          allOf:
          - $ref: '#/components/schemas/UserBasicInfo'
        id:
          type: string
          format: uuid
        identifier:
          type: string
        run_type:
          type: string
        reason:
          type: string
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - created_at
      - expires_at
      - id
      - identifier
      - reason
      - run_type
      - updated_at
    CreateRunResult:
      type: object
      properties:
        run_id:
          type: string
          format: uuid
        uploads:
          type: array
          items:
            $ref: '#/components/schemas/UploadTarget'
      required:
      - run_id
      - uploads
    AddSnapshotsResult:
      type: object
      properties:
        added:
          type: integer
        uploads:
          type: array
          items:
            $ref: '#/components/schemas/UploadTarget'
      required:
      - added
      - uploads
    UserBasicInfo:
      type: object
      properties:
        id:
          type: integer
        first_name:
          type: string
        email:
          type: string
      required:
      - email
      - first_name
      - id
    PaginatedRepoList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type:
          - string
          - 'null

# --- truncated at 32 KB (45 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/openapi/posthog-visual-review-api-openapi.yml